Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
RotoTransNode.cpp
1
#define BIORBD_API_EXPORTS
2
#include "Utils/RotoTransNode.h"
3
4
#include "Utils/String.h"
5
6
using namespace
BIORBD_NAMESPACE;
7
8
utils::RotoTransNode::RotoTransNode
() : utils::
RotoTrans
(), utils::
Node
() {
9
setType
();
10
}
11
12
utils::RotoTransNode::RotoTransNode
(
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
20
utils::RotoTransNode
utils::RotoTransNode::DeepCopy
()
const
{
21
utils::RotoTransNode
copy;
22
copy.
DeepCopy
(*
this
);
23
return
copy;
24
}
25
26
void
utils::RotoTransNode::DeepCopy
(
const
RotoTransNode
&other) {
27
this->utils::RotoTrans::operator=(other);
28
utils::Node::DeepCopy
(other);
29
}
30
31
void
utils::RotoTransNode::setType
() {
32
*
m_typeOfNode
= utils::NODE_TYPE::ROTOTRANS;
33
}
34
35
void
utils::RotoTransNode::operator=
(
const
utils::RotoTrans
&other) {
36
*
this
=
RotoTransNode
(other,
""
,
""
);
37
}
38
39
utils::RotoTrans
utils::RotoTransNode::operator*
(
40
const
utils::RotoTransNode
&other)
const
{
41
return
this->utils::RotoTrans::operator*(other);
42
}
43
44
utils::RotoTransNode
utils::operator*(
45
const
utils::RotoTrans
&other,
46
const
utils::RotoTransNode
&me) {
47
return
utils::RotoTransNode
(
48
other.operator*(me), me.utils::Node::name(), me.
parent
());
49
}
BIORBD_NAMESPACE::utils::Node::Node
Node()
Construct Node.
Definition
Node.cpp:8
BIORBD_NAMESPACE::utils::Node::name
const String & name() const
Return the name of the node.
Definition
Node.cpp:43
BIORBD_NAMESPACE::utils::Node::m_typeOfNode
std::shared_ptr< NODE_TYPE > m_typeOfNode
The type of the node.
Definition
Node.h:92
BIORBD_NAMESPACE::utils::Node::DeepCopy
void DeepCopy(const Node &other)
Deep copy of the node in another node.
Definition
Node.cpp:35
BIORBD_NAMESPACE::utils::Node::parent
const String & parent() const
Return the parent name of the node.
Definition
Node.cpp:45
BIORBD_NAMESPACE::utils::RotoTransNode
A RotoTrans which is attached to a segment.
Definition
RotoTransNode.h:17
BIORBD_NAMESPACE::utils::RotoTransNode::DeepCopy
RotoTransNode DeepCopy() const
Deep copy of a RotoTransNode.
Definition
RotoTransNode.cpp:20
BIORBD_NAMESPACE::utils::RotoTransNode::RotoTransNode
RotoTransNode()
Construct a RotoTransNode.
Definition
RotoTransNode.cpp:8
BIORBD_NAMESPACE::utils::RotoTransNode::operator*
RotoTrans operator*(const RotoTransNode &other) const
operator* Matrix multiplication
Definition
RotoTransNode.cpp:39
BIORBD_NAMESPACE::utils::RotoTransNode::operator=
void operator=(const RotoTrans &other)
Assign a RotoTrans to this RotoTransNode (name and parent are reset).
Definition
RotoTransNode.cpp:35
BIORBD_NAMESPACE::utils::RotoTransNode::setType
void setType()
Set the type to ROTOTRANS.
Definition
RotoTransNode.cpp:31
BIORBD_NAMESPACE::utils::RotoTrans
Homogenous matrix to describe translations and rotations simultaneously.
Definition
RotoTrans.h:33
BIORBD_NAMESPACE::utils::RotoTrans::RotoTrans
RotoTrans(const RigidBodyDynamics::Math::Matrix4d &matrix=RigidBodyDynamics::Math::Matrix4d::Identity())
Construct RotoTrans matrix.
Definition
RotoTrans.cpp:14
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
src
Utils
RotoTransNode.cpp
Generated by
1.18.0