cisst-saw
|
#include <robMass.h>
Public Types | |
enum | Errno { ESUCCESS, EFAILURE } |
Public Member Functions | |
vctFixedSizeMatrix< double, 3, 3 > | ParallelAxis (double m, const vctFixedSizeVector< double, 3 > &t, const vctFixedSizeMatrix< double, 3, 3 > &I) const |
Parallel Axis Theorem. More... | |
robMass () | |
Default constructor. More... | |
robMass (double m, const vctFixedSizeVector< double, 3 > &com, const vctFixedSizeMatrix< double, 3, 3 > &D, const vctFixedSizeMatrix< double, 3, 3 > &V) | |
double | Mass () const |
Return the mass. More... | |
vctFixedSizeVector< double, 3 > | CenterOfMass () const |
Return the center of mass. More... | |
vctFixedSizeMatrix< double, 3, 3 > | MomentOfInertia () const |
Return the moment of inertia tensor in the body frame. More... | |
vctFixedSizeMatrix< double, 3, 3 > | MomentOfInertiaAtCOM () const |
robMass::Errno | ReadMass (std::istream &is) |
Read the mass from a input stream. More... | |
robMass::Errno | WriteMass (std::ostream &os) const |
Write the mass from a output stream. More... | |
enum robMass::Errno |
robMass::robMass | ( | ) |
Default constructor.
Set the mass, center of mass and inertia to zero
robMass::robMass | ( | double | m, |
const vctFixedSizeVector< double, 3 > & | com, | ||
const vctFixedSizeMatrix< double, 3, 3 > & | D, | ||
const vctFixedSizeMatrix< double, 3, 3 > & | V | ||
) |
vctFixedSizeVector<double,3> robMass::CenterOfMass | ( | ) | const |
Return the center of mass.
Return the center of mass. The center of mass is expressed in the coordinate frame of the body.
double robMass::Mass | ( | ) | const |
Return the mass.
vctFixedSizeMatrix<double,3,3> robMass::MomentOfInertia | ( | ) | const |
Return the moment of inertia tensor in the body frame.
Return the moment of inertia tensor. The tensor is with respect to the coordinate frame of the body which does not necessarily coincide with the center of mass of the body and the principal axes.
vctFixedSizeMatrix<double,3,3> robMass::MomentOfInertiaAtCOM | ( | ) | const |
vctFixedSizeMatrix<double,3,3> robMass::ParallelAxis | ( | double | m, |
const vctFixedSizeVector< double, 3 > & | t, | ||
const vctFixedSizeMatrix< double, 3, 3 > & | I | ||
) | const |
Parallel Axis Theorem.
Finds the moment of inertia with respect to a parallel axis
robMass::Errno robMass::ReadMass | ( | std::istream & | is | ) |
Read the mass from a input stream.
robMass::Errno robMass::WriteMass | ( | std::ostream & | os | ) | const |
Write the mass from a output stream.