Describes all properties of a single body. More...
#include <Body.h>
Public Member Functions | |
Body () | |
Body (const Body &body) | |
Body (const double &mass, const Math::Vector3d &com, const Math::Vector3d &gyration_radii) | |
Constructs a body from mass, center of mass and radii of gyration. More... | |
Body (const double &mass, const Math::Vector3d &com, const Math::Matrix3d &inertia_C) | |
Constructs a body from mass, center of mass, and a 3x3 inertia matrix. More... | |
void | join (const Math::SpatialTransform &transform, const Body &other_body) |
Joins inertial parameters of two bodies to create a composite body. More... | |
Body & | operator= (const Body &body) |
~Body () | |
Public Attributes | |
Math::Vector3d | mCenterOfMass |
The position of the center of mass in body coordinates. More... | |
Math::Matrix3d | mInertia |
Inertia matrix at the center of mass. More... | |
bool | mIsVirtual |
double | mMass |
The mass of the body. More... | |
Describes all properties of a single body.
A Body contains information about mass, the location of its center of mass, and the ineria tensor in the center of mass. This class is designed to use the given information and transform it such that it can directly be used by the spatial algebra.
|
inline |
Constructs a body from mass, center of mass and radii of gyration.
This constructor eases the construction of a new body as all the required parameters can be specified as parameters to the constructor. These are then used to generate the spatial inertia matrix which is expressed at the origin.
mass | the mass of the body |
com | the position of the center of mass in the bodies coordinates |
gyration_radii | the radii of gyration at the center of mass of the body |
|
inline |
Constructs a body from mass, center of mass, and a 3x3 inertia matrix.
This constructor eases the construction of a new body as all the required parameters can simply be specified as parameters to the constructor. These are then used to generate the spatial inertia matrix which is expressed at the origin.
mass | the mass of the body |
com | the position of the center of mass in the bodies coordinates |
inertia_C | the inertia at the center of mass |
|
inline |
Joins inertial parameters of two bodies to create a composite body.
This function can be used to join inertial parameters of two bodies to create a composite body that has the inertial properties as if the two bodies were joined by a fixed joint.
transform | The frame transformation from the origin of the original body to the origin of the added body |
other_body | The other body that will be merged with *this. |
Math::Vector3d RobotDynamics::Body::mCenterOfMass |
Math::Matrix3d RobotDynamics::Body::mInertia |