|
Biorbd Release_1.13.0
|
Characteristics of a segment, namely the mass, the center of mass, the inertia, the length and its mesh geometry. More...
#include <SegmentCharacteristics.h>
Public Member Functions | |
| SegmentCharacteristics () | |
| Construct segment characteristics. | |
| SegmentCharacteristics (const utils::Scalar &mass, const utils::Vector3d &com, const utils::Matrix3d &inertia) | |
| Construct segment characteristics. | |
| SegmentCharacteristics (const utils::Scalar &mass, const utils::Vector3d &com, const utils::Matrix3d &inertia, const Mesh &mesh) | |
| Construct segment characteristics. | |
| SegmentCharacteristics | DeepCopy () const |
| Deep copy of the segment characteristics. | |
| void | DeepCopy (const SegmentCharacteristics &other) |
| Copy the segment characteristics. | |
| void | setLength (const utils::Scalar &val) |
| Set the segment length. | |
| utils::Scalar | length () const |
| Returns the segment length. | |
| void | setMass (const utils::Scalar &newMass) |
| Set the new mass. | |
| utils::Scalar | mass () const |
| Returns the segment mass. | |
| utils::Vector3d | CoM () const |
| CoM Returns the position of the center of mass in the local reference frame. | |
| void | setCoM (const utils::Vector3d &com) |
| setCoM Change the position of the center of mass | |
| Mesh & | mesh () |
| Returns the segment mesh. | |
| const Mesh & | mesh () const |
| Returns the segment mesh. | |
| const utils::Matrix3d | inertia () const |
| Returns the segment inertia matrix. | |
| void | setInertia (const utils::Matrix3d &inertia) |
| Set the matrix of inertia. | |
Protected Attributes | |
| std::shared_ptr< utils::Scalar > | m_length |
| Length of the segment. | |
| std::shared_ptr< Mesh > | m_mesh |
| Mesh of the segment. | |
Characteristics of a segment, namely the mass, the center of mass, the inertia, the length and its mesh geometry.
Definition at line 28 of file SegmentCharacteristics.h.
| rigidbody::SegmentCharacteristics::SegmentCharacteristics | ( | ) |
Construct segment characteristics.
Definition at line 12 of file SegmentCharacteristics.cpp.
| rigidbody::SegmentCharacteristics::SegmentCharacteristics | ( | const utils::Scalar & | mass, |
| const utils::Vector3d & | com, | ||
| const utils::Matrix3d & | inertia ) |
Construct segment characteristics.
| mass | The mass of the segment |
| com | The position of the center of Mass |
| inertia | The inertia matrix |
Definition at line 16 of file SegmentCharacteristics.cpp.
| rigidbody::SegmentCharacteristics::SegmentCharacteristics | ( | const utils::Scalar & | mass, |
| const utils::Vector3d & | com, | ||
| const utils::Matrix3d & | inertia, | ||
| const Mesh & | mesh ) |
Construct segment characteristics.
| mass | The mass of the segment |
| com | The position of the center of Mass |
| inertia | The inertia matrix |
| mesh | The mesh geometry of the segment |
Definition at line 23 of file SegmentCharacteristics.cpp.
| utils::Vector3d rigidbody::SegmentCharacteristics::CoM | ( | ) | const |
CoM Returns the position of the center of mass in the local reference frame.
Definition at line 60 of file SegmentCharacteristics.cpp.
| rigidbody::SegmentCharacteristics rigidbody::SegmentCharacteristics::DeepCopy | ( | ) | const |
Deep copy of the segment characteristics.
Definition at line 32 of file SegmentCharacteristics.cpp.
| void rigidbody::SegmentCharacteristics::DeepCopy | ( | const SegmentCharacteristics & | other | ) |
Copy the segment characteristics.
| other | The characteristics to copy |
Definition at line 39 of file SegmentCharacteristics.cpp.
| const utils::Matrix3d rigidbody::SegmentCharacteristics::inertia | ( | ) | const |
Returns the segment inertia matrix.
Definition at line 74 of file SegmentCharacteristics.cpp.
| utils::Scalar rigidbody::SegmentCharacteristics::length | ( | ) | const |
Returns the segment length.
Definition at line 50 of file SegmentCharacteristics.cpp.
| utils::Scalar rigidbody::SegmentCharacteristics::mass | ( | ) | const |
Returns the segment mass.
Definition at line 58 of file SegmentCharacteristics.cpp.
| rigidbody::Mesh & rigidbody::SegmentCharacteristics::mesh | ( | ) |
Returns the segment mesh.
Definition at line 68 of file SegmentCharacteristics.cpp.
| const rigidbody::Mesh & rigidbody::SegmentCharacteristics::mesh | ( | ) | const |
Returns the segment mesh.
Definition at line 70 of file SegmentCharacteristics.cpp.
| void rigidbody::SegmentCharacteristics::setCoM | ( | const utils::Vector3d & | com | ) |
setCoM Change the position of the center of mass
| com | The new position for the CoM |
Definition at line 64 of file SegmentCharacteristics.cpp.
| void rigidbody::SegmentCharacteristics::setInertia | ( | const utils::Matrix3d & | inertia | ) |
Set the matrix of inertia.
| inertia | The new matrix of inertia |
Definition at line 78 of file SegmentCharacteristics.cpp.
| void rigidbody::SegmentCharacteristics::setLength | ( | const utils::Scalar & | val | ) |
Set the segment length.
| val | Value of the new length |
Definition at line 46 of file SegmentCharacteristics.cpp.
| void rigidbody::SegmentCharacteristics::setMass | ( | const utils::Scalar & | newMass | ) |
Set the new mass.
| newMass | The new mass |
Definition at line 54 of file SegmentCharacteristics.cpp.
|
protected |
Length of the segment.
Definition at line 135 of file SegmentCharacteristics.h.
|
protected |
Mesh of the segment.
Definition at line 136 of file SegmentCharacteristics.h.