#include <MassProperties.h>
The center of mass is a vector from B's origin, expressed in the B frame. The inertia is taken about the B origin, and expressed in B.
Public Member Functions | |
MassProperties () | |
MassProperties (const Real &m, const Vec3 &com, const Inertia &inertia) | |
MassProperties & | setMassProperties (const Real &m, const Vec3 &com, const Inertia &inertia) |
Set mass, center of mass, and inertia. | |
const Real & | getMass () const |
const Vec3 & | getMassCenter () const |
const Inertia & | getInertia () const |
Inertia | calcCentralInertia () const |
Inertia | calcShiftedInertia (const Vec3 &newOriginB) const |
Inertia | calcTransformedInertia (const Transform &X_BC) const |
MassProperties | calcShiftedMassProps (const Vec3 &newOriginB) const |
MassProperties | calcTransformedMassProps (const Transform &X_BC) const |
MassProperties | reexpress (const Rotation &R_BC) const |
bool | isExactlyMassless () const |
bool | isNearlyMassless (const Real &tol=SignificantReal) const |
bool | isExactlyCentral () const |
bool | isNearlyCentral (const Real &tol=SignificantReal) const |
SpatialMat | toSpatialMat () const |
Mat66 | toMat66 () const |
Caution: this does not have the same layout in memory as a SpatialMat, although it has the same logical layout. |
MassProperties | ( | ) | [inline] |
MassProperties | ( | const Real & | m, | |
const Vec3 & | com, | |||
const Inertia & | inertia | |||
) | [inline] |
MassProperties& setMassProperties | ( | const Real & | m, | |
const Vec3 & | com, | |||
const Inertia & | inertia | |||
) | [inline] |
Set mass, center of mass, and inertia.
Behaves like an assignment in that a reference to the modified MassProperties object is returned.
const Real& getMass | ( | ) | const [inline] |
Referenced by MobilizedBody::calcBodyMomentumAboutBodyMassCenterInGround().
const Vec3& getMassCenter | ( | ) | const [inline] |
Referenced by MobilizedBody::calcBodyMomentumAboutBodyMassCenterInGround().
const Inertia& getInertia | ( | ) | const [inline] |
Inertia calcCentralInertia | ( | ) | const [inline] |
Referenced by MobilizedBody::calcBodyMomentumAboutBodyMassCenterInGround().
Referenced by MobilizedBody::calcBodyInertiaAboutAnotherBodyStation().
MassProperties calcShiftedMassProps | ( | const Vec3 & | newOriginB | ) | const [inline] |
MassProperties calcTransformedMassProps | ( | const Transform & | X_BC | ) | const [inline] |
MassProperties reexpress | ( | const Rotation & | R_BC | ) | const [inline] |
bool isExactlyMassless | ( | ) | const [inline] |
bool isNearlyMassless | ( | const Real & | tol = SignificantReal |
) | const [inline] |
bool isExactlyCentral | ( | ) | const [inline] |
bool isNearlyCentral | ( | const Real & | tol = SignificantReal |
) | const [inline] |
SpatialMat toSpatialMat | ( | ) | const [inline] |
Mat66 toMat66 | ( | ) | const [inline] |
Caution: this does not have the same layout in memory as a SpatialMat, although it has the same logical layout.