OpenSim::ForceAdapter Class Reference

This acts as an adapter to allow a CustomForce or CustomActuator to be used as a SimTK::Force. More...

#include <ForceAdapter.h>

List of all members.

Public Member Functions

 ForceAdapter (const CustomForce &force, const SimbodyEngine &engine)
 ForceAdapter (const CustomActuator &actuator, const SimbodyEngine &engine)
void calcForce (const SimTK::State &state, SimTK::Vector_< SimTK::SpatialVec > &bodyForces, SimTK::Vector_< SimTK::Vec3 > &particleForces, SimTK::Vector &mobilityForces) const
SimTK::Real calcPotentialEnergy (const SimTK::State &state) const

Detailed Description

This acts as an adapter to allow a CustomForce or CustomActuator to be used as a SimTK::Force.

Authors:
Peter Eastman

Constructor & Destructor Documentation

ForceAdapter::ForceAdapter ( const CustomForce force,
const SimbodyEngine engine 
)
ForceAdapter::ForceAdapter ( const CustomActuator actuator,
const SimbodyEngine engine 
)

Member Function Documentation

void ForceAdapter::calcForce ( const SimTK::State &  state,
SimTK::Vector_< SimTK::SpatialVec > &  bodyForces,
SimTK::Vector_< SimTK::Vec3 > &  particleForces,
SimTK::Vector &  mobilityForces 
) const
SimTK::Real ForceAdapter::calcPotentialEnergy ( const SimTK::State &  state  )  const

The documentation for this class was generated from the following files:

Generated on Wed Dec 16 15:03:45 2009 for OpenSim by  doxygen 1.6.1