Biorbd Release_1.13.0
Loading...
Searching...
No Matches
RotoTransNode.cpp
1#define BIORBD_API_EXPORTS
2#include "Utils/RotoTransNode.h"
3
4#include "Utils/String.h"
5
6using namespace BIORBD_NAMESPACE;
7
9 setType();
10}
11
13 const RotoTrans &rt,
14 const utils::String &name,
15 const utils::String &parentName)
16 : utils::RotoTrans(rt), utils::Node(name, parentName) {
17 setType();
18}
19
22 copy.DeepCopy(*this);
23 return copy;
24}
25
27 this->utils::RotoTrans::operator=(other);
29}
30
32 *m_typeOfNode = utils::NODE_TYPE::ROTOTRANS;
33}
34
36 *this = RotoTransNode(other, "", "");
37}
38
40 const utils::RotoTransNode &other) const {
41 return this->utils::RotoTrans::operator*(other);
42}
43
44utils::RotoTransNode utils::operator*(
45 const utils::RotoTrans &other,
46 const utils::RotoTransNode &me) {
48 other.operator*(me), me.utils::Node::name(), me.parent());
49}
Node()
Construct Node.
Definition Node.cpp:8
const String & name() const
Return the name of the node.
Definition Node.cpp:43
std::shared_ptr< NODE_TYPE > m_typeOfNode
The type of the node.
Definition Node.h:92
void DeepCopy(const Node &other)
Deep copy of the node in another node.
Definition Node.cpp:35
const String & parent() const
Return the parent name of the node.
Definition Node.cpp:45
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