A class for inertial information about a rigid body consisting of the scalar mass, a 3x3 symmetric moment of inertia matrix, and center of mass reference frame pose. More...
#include <ignition/math/Inertial.hh>
Public Member Functions | |
Inertial () | |
Default Constructor. More... | |
Inertial (const MassMatrix3< T > &_massMatrix, const Pose3< T > &_pose) | |
Constructor. More... | |
Inertial (const Inertial< T > &_inertial) | |
Copy constructor. More... | |
virtual | ~Inertial () |
Destructor. More... | |
const MassMatrix3< T > & | MassMatrix () const |
Get the mass and inertia matrix. More... | |
Matrix3< T > | MOI () const |
Get the moment of inertia matrix expressed in the base coordinate frame. More... | |
bool | operator!= (const Inertial< T > &_inertial) const |
Inequality test operator. More... | |
const Inertial< T > | operator+ (const Inertial< T > &_inertial) const |
Adds inertial properties to current object. More... | |
Inertial< T > & | operator+= (const Inertial< T > &_inertial) |
Adds inertial properties to current object. More... | |
Inertial & | operator= (const Inertial< T > &_inertial) |
Equal operator. More... | |
bool | operator== (const Inertial< T > &_inertial) const |
Equality comparison operator. More... | |
const Pose3< T > & | Pose () const |
Get the pose of center of mass reference frame. More... | |
bool | SetMassMatrix (const MassMatrix3< T > &_m) |
Set the mass and inertia matrix. More... | |
bool | SetPose (const Pose3< T > &_pose) |
Set the pose of center of mass reference frame. More... | |
A class for inertial information about a rigid body consisting of the scalar mass, a 3x3 symmetric moment of inertia matrix, and center of mass reference frame pose.
|
inline |
Default Constructor.
|
inline |
Constructor.
[in] | _massMatrix | Mass and inertia matrix. |
[in] | _pose | Pose of center of mass reference frame. |
|
inline |
Copy constructor.
[in] | _inertial | Inertial element to copy |
|
inlinevirtual |
Destructor.
|
inline |
Get the mass and inertia matrix.
Referenced by ignition::math::Inertial< T >::operator+=(), ignition::math::Inertial< T >::operator=(), and ignition::math::Inertial< T >::operator==().
|
inline |
Get the moment of inertia matrix expressed in the base coordinate frame.
Referenced by ignition::math::Inertial< T >::operator+=().
|
inline |
Inequality test operator.
[in] | _inertial | Inertial<T> to test |
|
inline |
Adds inertial properties to current object.
The mass, center of mass location, and inertia matrix are updated as long as the total mass is positive.
[in] | _inertial | Inertial to add. |
|
inline |
Adds inertial properties to current object.
The mass, center of mass location, and inertia matrix are updated as long as the total mass is positive.
[in] | _inertial | Inertial to add. |
References ignition::math::Inertial< T >::MassMatrix(), ignition::math::Inertial< T >::MOI(), ignition::math::Inertial< T >::Pose(), ignition::math::Vector3< T >::X(), ignition::math::Vector3< T >::Y(), and ignition::math::Vector3< T >::Z().
|
inline |
Equal operator.
[in] | _inertial | Inertial to copy. |
References ignition::math::Inertial< T >::MassMatrix(), and ignition::math::Inertial< T >::Pose().
|
inline |
Equality comparison operator.
[in] | _inertial | Inertial to copy. |
References ignition::math::Inertial< T >::MassMatrix(), and ignition::math::Inertial< T >::Pose().
|
inline |
Get the pose of center of mass reference frame.
Referenced by ignition::math::Inertial< T >::operator+=(), ignition::math::Inertial< T >::operator=(), and ignition::math::Inertial< T >::operator==().
|
inline |
Set the mass and inertia matrix.
[in] | _m | New MassMatrix3 object. |
|
inline |
Set the pose of center of mass reference frame.
[in] | _pose | New pose. |