Cheetah Software
1.0
|
#include <ContactSpringDamper.h>
Public Member Functions | |
ContactSpringDamper (FloatingBaseModel< T > *model) | |
virtual | ~ContactSpringDamper () |
virtual void | UpdateExternalForces (T K, T D, T dt) |
virtual void | UpdateQdot (FBModelState< T > &state) |
Public Member Functions inherited from ContactConstraint< T > | |
ContactConstraint (FloatingBaseModel< T > *model) | |
virtual | ~ContactConstraint () |
void | AddCollision (Collision< T > *collision) |
const vectorAligned< Vec3< T > > & | getContactPosList () |
const Vec3< T > & | getGCForce (size_t idx) |
Protected Member Functions | |
void | _groundContactWithOffset (T K, T D) |
Protected Member Functions inherited from ContactConstraint< T > | |
void | _groundContactWithOffset (T K, T D) |
size_t | _CheckContact () |
Protected Attributes | |
size_t | _nGC |
vectorAligned< Vec2< T > > | deflectionRate |
vectorAligned< Vec2< T > > | _tangentialDeflections |
Protected Attributes inherited from ContactConstraint< T > | |
vectorAligned< Vec2< T > > | deflectionRate |
vectorAligned< Vec2< T > > | _tangentialDeflections |
size_t | _nContact |
size_t | _nCollision |
FloatingBaseModel< T > * | _model |
std::vector< Collision< T > * > | _collision_list |
std::vector< size_t > | _idx_list |
std::vector< T > | _cp_resti_list |
std::vector< T > | _cp_mu_list |
std::vector< T > | _cp_penetration_list |
vectorAligned< Vec3< T > > | _cp_force_list |
vectorAligned< Vec3< T > > | _cp_local_force_list |
vectorAligned< Vec3< T > > | _cp_pos_list |
vectorAligned< Mat3< T > > | _cp_frame_list |
Definition at line 12 of file ContactSpringDamper.h.
|
inline |
Definition at line 14 of file ContactSpringDamper.h.
References ContactSpringDamper< T >::_nGC, ContactSpringDamper< T >::_tangentialDeflections, and ContactSpringDamper< T >::deflectionRate.
|
inlinevirtual |
Definition at line 23 of file ContactSpringDamper.h.
References ContactSpringDamper< T >::UpdateExternalForces().
|
protected |
K | Ground stiffness |
D | Ground damping |
subfunction computing contact forces
Definition at line 42 of file ContactSpringDamper.cpp.
|
virtual |
Run the ground contact model for a single collision plane on a list of ground contact points The ground is allowed to deform in the tangential direction, but not the normal direction. The ground also "remembers" its deformation between separate contact events. (however it does spring back pretty quickly)
K | Ground stiffness |
D | Ground damping |
dt | Timestep (used for deflection) |
compute contact forces coinciding to the contact and update external force in a dynamics model.
Implements ContactConstraint< T >.
Definition at line 13 of file ContactSpringDamper.cpp.
References spatial::forceToSpatialForce().
|
inlinevirtual |
Used for impulse based contact constraint method
state | : full state of a floating system full state |
Implements ContactConstraint< T >.
Definition at line 36 of file ContactSpringDamper.h.
|
protected |
Definition at line 41 of file ContactSpringDamper.h.
|
protected |
Definition at line 50 of file ContactSpringDamper.h.
|
protected |
Definition at line 49 of file ContactSpringDamper.h.