#include <RBDyn/RBDyn/MultiBody.h>
Public Member Functions | |
MultiBody () | |
MultiBody (std::vector< Body > bodies, std::vector< Joint > joints, std::vector< int > pred, std::vector< int > succ, std::vector< int > parent, std::vector< sva::PTransformd > Xt) | |
int | nrBodies () const |
int | nrJoints () const |
const std::vector< Body > & | bodies () const |
void | bodies (std::vector< Body > b) |
Set bodies of the multibody system. More... | |
const Body & | body (int num) const |
void | body (int num, const Body &b) |
Set the body num in bodies list. More... | |
const std::vector< Joint > & | joints () const |
const Joint & | joint (int num) const |
const std::vector< int > & | predecessors () const |
int | predecessor (int num) const |
const std::vector< int > & | successors () const |
int | successor (int num) const |
const std::vector< int > & | parents () const |
int | parent (int num) const |
const std::vector< sva::PTransformd > & | transforms () const |
void | transforms (std::vector< sva::PTransformd > Xt) |
const sva::PTransformd & | transform (int num) const |
void | transform (int num, const sva::PTransformd &Xt) |
Set the transformation from the body base to joint num. More... | |
int | bodyIndexByName (const std::string &name) const |
int | jointIndexByName (const std::string &name) const |
const std::unordered_map< std::string, int > & | bodyIndexByName () const |
const std::unordered_map< std::string, int > & | jointIndexByName () const |
int | jointPosInParam (int i) const |
int | jointPosInDof (int i) const |
const std::vector< int > & | jointsPosInParam () const |
const std::vector< int > & | jointsPosInDof () const |
int | nrParams () const |
int | nrDof () const |
void | sBodies (std::vector< Body > b) |
const Body & | sBody (int num) const |
void | sBody (int num, const Body &b) |
const Joint & | sJoint (int num) const |
int | sPredecessor (int num) const |
int | sSuccessor (int num) const |
int | sParent (int num) const |
void | sTransforms (std::vector< sva::PTransformd > Xt) |
const sva::PTransformd & | sTransform (int num) const |
void | sTransform (int num, const sva::PTransformd &Xt) |
int | sJointPosInParam (int i) const |
int | sJointPosInDof (int i) const |
int | sBodyIndexByName (const std::string &name) const |
int | sJointIndexByName (const std::string &name) const |
Protected Attributes | |
std::vector< Body > | bodies_ |
std::vector< Joint > | joints_ |
std::vector< int > | pred_ |
std::vector< int > | succ_ |
std::vector< int > | parent_ |
std::vector< sva::PTransformd > | Xt_ |
Transformation from the body base to joint i. More... | |
std::unordered_map< std::string, int > | bodyNameToInd_ |
std::unordered_map< std::string, int > | jointNameToInd_ |
std::vector< int > | jointPosInParam_ |
Position of joint i in parameter vector. More... | |
std::vector< int > | jointPosInDof_ |
Position of joint i in dof vector (velocity, acceleration...). More... | |
int | nrParams_ |
int | nrDof_ |
Kinematic tree of a multibody system. Same representation as featherstone except joint 0 is the root joint.
rbd::MultiBody::MultiBody | ( | ) |
rbd::MultiBody::MultiBody | ( | std::vector< Body > | bodies, |
std::vector< Joint > | joints, | ||
std::vector< int > | pred, | ||
std::vector< int > | succ, | ||
std::vector< int > | parent, | ||
std::vector< sva::PTransformd > | Xt | ||
) |
bodies | Bodies of the multibody system. |
joints | Joints of the mutibody system. |
pred | Predeccesor body index of each joint. |
succ | Successor body index of each joint. |
parent | Parent body index of each body. |
Xt | Transformation from the body base to joint i. |
|
inline |
|
inline |
Set bodies of the multibody system.
|
inline |
|
inline |
Set the body num in bodies list.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the transformation from the body base to joint num.
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
Position of joint i in dof vector (velocity, acceleration...).
|
protected |
Position of joint i in parameter vector.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Transformation from the body base to joint i.