Biorbd Release_1.13.0
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
9namespace BIORBD_NAMESPACE {
10namespace utils {
11class String;
12class Matrix;
13class RotoTransNode;
14} // namespace utils
15
16namespace rigidbody {
18
22class BIORBD_API RotoTransNodes {
23 public:
28
33 RotoTransNodes(const RotoTransNodes& other);
34
38 virtual ~RotoTransNodes();
39
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
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
std::vector< utils::Matrix > RTsJacobian(const GeneralizedCoordinates &Q, bool updateKin=true)
Return the jacobian of the RTs.
const utils::RotoTransNode & RT(size_t idx)
Return the RTs of a specified index.
size_t size() const
Return the number of RTs in the set.
size_t nbRTs() const
Return the number of RTs in the set.
RotoTransNodes DeepCopy() const
Deep copy of the RTs data.
std::vector< utils::String > RTsNames()
Return the names of the RTs.
std::shared_ptr< std::vector< utils::RotoTransNode > > m_RTs
All the RTs.
std::vector< utils::RotoTransNode > segmentRTs(const GeneralizedCoordinates &Q, size_t idx, bool updateKin=true)
Return all the RTs on a specified segment.
const std::vector< utils::RotoTransNode > & RTs() const
Return all the RTs in the local reference of the segment.
virtual void clear()
Return to an internal state similar to initial declaration.
A wrapper for the Eigen::MatrixXd.
Definition Matrix.h:18
A RotoTrans which is attached to a segment.
Wrapper around the std::string class with augmented functionality.
Definition String.h:18