#include <RBDyn/RBDyn/Body.h>
Body representation. Hold body id, name and spatial rigid body inertia of one body.
◆ Body() [1/3]
◆ Body() [2/3]
rbd::Body::Body |
( |
const sva::RBInertiad & |
rbInertia, |
|
|
std::string |
name |
|
) |
| |
|
inline |
- Parameters
-
rbInertia | Body spatial rigid body inertia. |
name | Body name, must be unique in a multibody. |
◆ Body() [3/3]
rbd::Body::Body |
( |
double |
mass, |
|
|
const Eigen::Vector3d & |
com, |
|
|
const Eigen::Matrix3d & |
inertia, |
|
|
std::string |
name |
|
) |
| |
|
inline |
- Parameters
-
mass | Body mass. |
com | Body center of mass. |
inertia | Body inertia matrix at body origin. |
name | Body name, must be unique in a multibody. |
◆ inertia()
const sva::RBInertiad& rbd::Body::inertia |
( |
| ) |
const |
|
inline |
- Returns
- Body spatial rigid body inertia.
◆ name()
const std::string& rbd::Body::name |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool rbd::Body::operator!= |
( |
const Body & |
b | ) |
const |
|
inline |
◆ operator==()
bool rbd::Body::operator== |
( |
const Body & |
b | ) |
const |
|
inline |
The documentation for this class was generated from the following file: