Characteristics of a segment, namely the mass, the center of mass, the inertia, the length and its me...
std::shared_ptr< biorbd::utils::Scalar > m_length
Length of the segment.
std::shared_ptr< biorbd::rigidbody::Mesh > m_mesh
Mesh of the segment.
biorbd::rigidbody::SegmentCharacteristics DeepCopy() const
Deep copy of the segment characteristics.
void setCoM(const biorbd::utils::Vector3d &com)
setCoM Change the position of the center of mass
A class that holds the geometry of a segment.
void setLength(const biorbd::utils::Scalar &val)
Set the segment length.
SegmentCharacteristics()
Construct segment characteristics.
double mass() const
Returns the segment mass.
biorbd::utils::Vector3d CoM() const
CoM Returns the position of the center of mass in the local reference frame.
const biorbd::utils::Scalar & length() const
Returns the segment length.
const RigidBodyDynamics::Math::Matrix3d & inertia() const
Returns the segment inertia matrix.
const biorbd::rigidbody::Mesh & mesh() const
Returns the segment mesh.