MassProperties Class Reference

This class contains the mass, center of mass, and inertia of a rigid body B. More...

#include <MassProperties.h>

List of all members.

Public Member Functions

 MassProperties ()
 MassProperties (const Real &m, const Vec3 &com, const Inertia &inertia)
MassPropertiessetMassProperties (const Real &m, const Vec3 &com, const Inertia &inertia)
 Set mass, center of mass, and inertia.
const Real & getMass () const
const Vec3getMassCenter () const
const InertiagetInertia () 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.

Detailed Description

This class contains the mass, center of mass, and inertia of a rigid body B.

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.


Constructor & Destructor Documentation

MassProperties (  )  [inline]
MassProperties ( const Real &  m,
const Vec3 com,
const Inertia inertia 
) [inline]

Member Function Documentation

Inertia calcCentralInertia (  )  const [inline]
Inertia calcShiftedInertia ( const Vec3 newOriginB  )  const [inline]
MassProperties calcShiftedMassProps ( const Vec3 newOriginB  )  const [inline]
Inertia calcTransformedInertia ( const Transform X_BC  )  const [inline]
MassProperties calcTransformedMassProps ( const Transform X_BC  )  const [inline]
const Inertia& getInertia (  )  const [inline]
const Real& getMass (  )  const [inline]
const Vec3& getMassCenter (  )  const [inline]
bool isExactlyCentral (  )  const [inline]
bool isExactlyMassless (  )  const [inline]
bool isNearlyCentral ( const Real &  tol = SignificantReal  )  const [inline]
bool isNearlyMassless ( const Real &  tol = SignificantReal  )  const [inline]
MassProperties reexpress ( const Rotation R_BC  )  const [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.

Referenced by MassProperties::MassProperties().

Mat66 toMat66 (  )  const [inline]

Caution: this does not have the same layout in memory as a SpatialMat, although it has the same logical layout.

References SimTK::crossMat(), Mat< M, N, ELT, CS, RS >::getSubMat(), Inertia::toMat33(), and Mat< M, N, ELT, CS, RS >::updSubMat().

SpatialMat toSpatialMat (  )  const [inline]

The documentation for this class was generated from the following file:

Generated on Wed Dec 30 11:05:22 2009 for SimTKcore by  doxygen 1.6.1