gz/math/Inertial.hh
Encapsulates a position and rotation in three space.
Definition: gz/math/Pose3.hh:34
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
bool IsValid(const T _tolerance=IGN_MASSMATRIX3_DEFAULT_TOLERANCE< T >) const
Verify that inertia values are positive semi-definite and satisfy the triangle inequality.
Definition: gz/math/MassMatrix3.hh:595
bool SetPose(const Pose3< T > &_pose)
Set the pose of the center of mass reference frame.
Definition: gz/math/Inertial.hh:103
The Inertial object provides a representation for the mass and inertia matrix of a body B....
Definition: gz/math/Inertial.hh:45
Inertial & operator=(const Inertial< T > &_inertial)
Equal operator.
Definition: gz/math/Inertial.hh:176
const MassMatrix3< T > & MassMatrix() const
Get the mass and inertia matrix.
Definition: gz/math/Inertial.hh:95
bool operator==(const Inertial< T > &_inertial) const
Equality comparison operator.
Definition: gz/math/Inertial.hh:188
Matrix3< T > Moi() const
Get the moment of inertia matrix computer about the body's center of mass and expressed in this Inert...
Definition: gz/math/Inertial.hh:129
const Inertial< T > operator+(const Inertial< T > &_inertial) const
Adds inertial properties to current object. The mass, center of mass location, and inertia matrix are...
Definition: gz/math/Inertial.hh:265
Inertial(const Inertial< T > &_inertial)
Copy constructor.
Definition: gz/math/Inertial.hh:67
The Vector3 class represents the generic vector containing 3 elements. Since it's commonly used to ke...
Definition: gz/math/Vector3.hh:41
const Pose3< T > & Pose() const
Get the pose of the center of mass reference frame.
Definition: gz/math/Inertial.hh:112
Inertial(const MassMatrix3< T > &_massMatrix, const Pose3< T > &_pose)
Constructs an inertial object from the mass matrix for a body B, about its center of mass Bcm,...
Definition: gz/math/Inertial.hh:60
bool SetMassMatrixRotation(const Quaternion< T > &_q, const T _tol=1e-6)
Set the MassMatrix rotation (eigenvectors of inertia matrix) without affecting the MOI in the base co...
Definition: gz/math/Inertial.hh:159
Matrix3< T > MOI() const
Get the moment of inertia matrix computer about the body's center of mass and expressed in this Inert...
Definition: gz/math/Inertial.hh:119
Quaternion< T > Inverse() const
Get the inverse of this quaternion.
Definition: gz/math/Quaternion.hh:132
bool SetInertialRotation(const Quaternion< T > &_q)
Set the inertial pose rotation without affecting the MOI in the base coordinate frame.
Definition: gz/math/Inertial.hh:139
bool SetMassMatrix(const MassMatrix3< T > &_m, const T _tolerance=IGN_MASSMATRIX3_DEFAULT_TOLERANCE< T >)
Set the mass and inertia matrix.
Definition: gz/math/Inertial.hh:84
Inertial< T > & operator+=(const Inertial< T > &_inertial)
Adds inertial properties to current object. The mass, center of mass location, and inertia matrix are...
Definition: gz/math/Inertial.hh:207
A class for inertial information about a rigid body consisting of the scalar mass and a 3x3 symmetric...
Definition: gz/math/MassMatrix3.hh:45
bool operator!=(const Inertial< T > &_inertial) const
Inequality test operator.
Definition: gz/math/Inertial.hh:197
T pow(T... args)