#include <ArticulatedMass.h>


Definition at line 18 of file ArticulatedMass.h.
Public Types | |
| typedef core::objectmodel::BaseContext::SolidTypes | SolidTypes |
| typedef SolidTypes::Real | Real |
| typedef SolidTypes::Vec | Vec |
| typedef SolidTypes::RigidInertia | RigidInertia |
| typedef SolidTypes::ArticulatedInertia | ArticulatedInertia |
Public Member Functions | |
| ArticulatedMass (ArticulatedBody *) | |
| virtual | ~ArticulatedMass () |
| void | setInertia (Real m, const Vec &c, Real xx, Real yy, Real zz, Real xy, Real yz, Real zx) |
| virtual void | addMDx (VecDeriv &f, const VecDeriv &dx) |
| f += M dx | |
| virtual void | accFromF (VecDeriv &a, const VecDeriv &f) |
| dx = M^-1 f | |
| virtual void | computeForce (VecDeriv f, const VecCoord &x, const VecDeriv &v) |
| virtual void | computeDf (VecDeriv df, const VecCoord &x, const VecDeriv &v, const VecDeriv &dx) |
| f += gravity and inertia forces | |
Data Fields | |
| RigidInertia | sp_I |
| Rigid body inertia matrix in local coordinates. | |
| ArticulatedInertia | sp_Ia |
| Articulated body inertia matrix in world coordinates. | |
Protected Attributes | |
| ArticulatedBody * | body_ |
Definition at line 21 of file ArticulatedMass.h.
Definition at line 22 of file ArticulatedMass.h.
Definition at line 23 of file ArticulatedMass.h.
Definition at line 24 of file ArticulatedMass.h.
Definition at line 25 of file ArticulatedMass.h.
| sofa::component::ArticulatedMass::ArticulatedMass | ( | ArticulatedBody * | s | ) |
Definition at line 15 of file ArticulatedMass.cpp.
References body_, sofa::defaulttype::SolidTypes< R >::RigidInertia::h, sofa::defaulttype::SolidTypes< R >::RigidInertia::I, sofa::defaulttype::SolidTypes< R >::RigidInertia::m, and sp_I.
| virtual sofa::component::ArticulatedMass::~ArticulatedMass | ( | ) | [inline, virtual] |
Definition at line 28 of file ArticulatedMass.h.
| void sofa::component::ArticulatedMass::setInertia | ( | Real | m, | |
| const Vec & | c, | |||
| Real | xx, | |||
| Real | yy, | |||
| Real | zz, | |||
| Real | xy, | |||
| Real | yz, | |||
| Real | zx | |||
| ) |
Definition at line 26 of file ArticulatedMass.cpp.
References sofa::defaulttype::SolidTypes< R >::crossM(), sofa::defaulttype::SolidTypes< R >::RigidInertia::h, sofa::defaulttype::SolidTypes< R >::RigidInertia::I, sofa::defaulttype::SolidTypes< R >::RigidInertia::m, sp_I, and sofa::defaulttype::Mat< L, C, real >::transposed().
| void sofa::component::ArticulatedMass::computeForce | ( | VecDeriv | f, | |
| const VecCoord & | x, | |||
| const VecDeriv & | v | |||
| ) | [virtual] |
Definition at line 52 of file ArticulatedMass.cpp.
References body_, sofa::core::objectmodel::ContextObject::getContext(), sofa::component::ArticulatedBody::getF(), sofa::component::ArticulatedBody::getV(), sp_I, and sp_Ia.
Rigid body inertia matrix in local coordinates.
Definition at line 41 of file ArticulatedMass.h.
Referenced by ArticulatedMass(), computeForce(), and setInertia().
Articulated body inertia matrix in world coordinates.
Definition at line 42 of file ArticulatedMass.h.
Referenced by computeForce().
ArticulatedBody* sofa::component::ArticulatedMass::body_ [protected] |
Definition at line 45 of file ArticulatedMass.h.
Referenced by ArticulatedMass(), and computeForce().
1.5.3