Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
RotoTransNodes.h
1
#ifndef BIORBD_UTILS_ROTOTRANSNODES_H
2
#define BIORBD_UTILS_ROTOTRANSNODES_H
3
4
#include "biorbdConfig.h"
5
6
#include <memory>
7
#include <vector>
8
9
namespace
BIORBD_NAMESPACE {
10
namespace
utils {
11
class
String
;
12
class
Matrix
;
13
class
RotoTransNode
;
14
}
// namespace utils
15
16
namespace
rigidbody {
17
class
GeneralizedCoordinates
;
18
22
class
BIORBD_API
RotoTransNodes
{
23
public
:
27
RotoTransNodes
();
28
33
RotoTransNodes
(
const
RotoTransNodes
& other);
34
38
virtual
~RotoTransNodes
();
39
44
RotoTransNodes
DeepCopy
()
const
;
45
50
void
DeepCopy
(
const
RotoTransNodes
& other);
51
55
void
addRT
();
56
61
virtual
void
addRT
(
const
utils::RotoTransNode
& RotoTrans);
62
67
size_t
nbRTs
()
const
;
68
73
size_t
size
()
const
;
74
79
std::vector<utils::String>
RTsNames
();
80
85
const
std::vector<utils::RotoTransNode>&
RTs
()
const
;
86
92
std::vector<utils::RotoTransNode>
RTs
(
const
utils::String
& segmentName);
93
99
const
utils::RotoTransNode
&
RT
(
size_t
idx);
100
107
std::vector<utils::RotoTransNode>
RTs
(
108
const
GeneralizedCoordinates
& Q,
109
bool
updateKin =
true
);
110
118
utils::RotoTransNode
119
RT
(
const
GeneralizedCoordinates
& Q,
size_t
idx,
bool
updateKin =
true
);
120
128
std::vector<utils::RotoTransNode>
segmentRTs
(
129
const
GeneralizedCoordinates
& Q,
130
size_t
idx,
131
bool
updateKin =
true
);
132
139
std::vector<utils::Matrix>
RTsJacobian
(
140
const
GeneralizedCoordinates
& Q,
141
bool
updateKin =
true
);
142
145
virtual
void
clear
();
146
147
protected
:
148
std::shared_ptr<std::vector<utils::RotoTransNode>>
m_RTs
;
149
};
150
151
}
// namespace rigidbody
152
}
// namespace BIORBD_NAMESPACE
153
154
#endif
// BIORBD_UTILS_ROTOTRANSNODES_H
BIORBD_NAMESPACE::rigidbody::GeneralizedCoordinates
Class GeneralizedCoordinates.
Definition
GeneralizedCoordinates.h:15
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::RTsJacobian
std::vector< utils::Matrix > RTsJacobian(const GeneralizedCoordinates &Q, bool updateKin=true)
Return the jacobian of the RTs.
Definition
RotoTransNodes.cpp:125
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::RT
const utils::RotoTransNode & RT(size_t idx)
Return the RTs of a specified index.
Definition
RotoTransNodes.cpp:74
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::size
size_t size() const
Return the number of RTs in the set.
Definition
RotoTransNodes.cpp:55
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::nbRTs
size_t nbRTs() const
Return the number of RTs in the set.
Definition
RotoTransNodes.cpp:53
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::DeepCopy
RotoTransNodes DeepCopy() const
Deep copy of the RTs data.
Definition
RotoTransNodes.cpp:30
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::addRT
void addRT()
Add a new RT to the set.
Definition
RotoTransNodes.cpp:44
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::RTsNames
std::vector< utils::String > RTsNames()
Return the names of the RTs.
Definition
RotoTransNodes.cpp:150
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::m_RTs
std::shared_ptr< std::vector< utils::RotoTransNode > > m_RTs
All the RTs.
Definition
RotoTransNodes.h:148
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::segmentRTs
std::vector< utils::RotoTransNode > segmentRTs(const GeneralizedCoordinates &Q, size_t idx, bool updateKin=true)
Return all the RTs on a specified segment.
Definition
RotoTransNodes.cpp:103
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::RTs
const std::vector< utils::RotoTransNode > & RTs() const
Return all the RTs in the local reference of the segment.
Definition
RotoTransNodes.cpp:58
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::RotoTransNodes
RotoTransNodes()
Construct RT set.
Definition
RotoTransNodes.cpp:18
BIORBD_NAMESPACE::rigidbody::RotoTransNodes::clear
virtual void clear()
Return to an internal state similar to initial declaration.
Definition
RotoTransNodes.cpp:159
BIORBD_NAMESPACE::utils::Matrix
A wrapper for the Eigen::MatrixXd.
Definition
Matrix.h:18
BIORBD_NAMESPACE::utils::RotoTransNode
A RotoTrans which is attached to a segment.
Definition
RotoTransNode.h:17
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
include
RigidBody
RotoTransNodes.h
Generated by
1.18.0