Biorbd Release_1.13.0
Loading...
Searching...
No Matches
RotoTransNode.h
1#ifndef BIORBD_UTILS_ROTO_TRANS_NODE_H
2#define BIORBD_UTILS_ROTO_TRANS_NODE_H
3
4#include "biorbdConfig.h"
5
6#include <memory>
7
8#include "Utils/Node.h"
9#include "Utils/RotoTrans.h"
10
11namespace BIORBD_NAMESPACE {
12namespace utils {
13class String;
17class BIORBD_API RotoTransNode : public RotoTrans, public Node {
18 public:
23
31 const RotoTrans& rt,
32 const String& name,
33 const String& parentName);
34
35#ifdef BIORBD_USE_EIGEN3_MATH
40 template <typename OtherDerived>
41 RotoTransNode(const Eigen::MatrixBase<OtherDerived>& other)
42 : RotoTrans(other) {}
43#endif
44
49 RotoTransNode DeepCopy() const;
50
55 void DeepCopy(const RotoTransNode& other);
56
57#ifndef SWIG
58
64 void operator=(const RotoTrans& other);
65
66#endif
67
73 RotoTrans operator*(const RotoTransNode& other) const;
74
75#ifndef SWIG
76
77#ifdef BIORBD_USE_EIGEN3_MATH
82 template <typename OtherDerived>
83 RotoTransNode& operator=(const Eigen::MatrixBase<OtherDerived>& other) {
84 this->RotoTrans::operator=(other);
85 return *this;
86 }
87#endif
88
89#endif
90
91 protected:
95 void setType();
96};
97
102RotoTransNode operator*(const RotoTrans& other, const RotoTransNode& me);
103
104} // namespace utils
105} // namespace BIORBD_NAMESPACE
106
107#endif // BIORBD_UTILS_ROTO_TRANS_NODE_H
Node()
Construct Node.
Definition Node.cpp:8
const String & name() const
Return the name of the node.
Definition Node.cpp:43
A RotoTrans which is attached to a segment.
RotoTransNode DeepCopy() const
Deep copy of a RotoTransNode.
RotoTransNode()
Construct a RotoTransNode.
RotoTrans operator*(const RotoTransNode &other) const
operator* Matrix multiplication
void operator=(const RotoTrans &other)
Assign a RotoTrans to this RotoTransNode (name and parent are reset).
void setType()
Set the type to ROTOTRANS.
Homogenous matrix to describe translations and rotations simultaneously.
Definition RotoTrans.h:33
RotoTrans(const RigidBodyDynamics::Math::Matrix4d &matrix=RigidBodyDynamics::Math::Matrix4d::Identity())
Construct RotoTrans matrix.
Definition RotoTrans.cpp:14
Wrapper around the std::string class with augmented functionality.
Definition String.h:18