API  4.2
For MATLAB, Python, Java, and C++ users
OpenSim::ForceAdapter Class Reference

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

+ Inheritance diagram for OpenSim::ForceAdapter:

Public Member Functions

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

Detailed Description

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

Authors
Peter Eastman

Constructor & Destructor Documentation

◆ ForceAdapter()

OpenSim::ForceAdapter::ForceAdapter ( const Force force)

Member Function Documentation

◆ calcForce()

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

◆ calcPotentialEnergy()

SimTK::Real OpenSim::ForceAdapter::calcPotentialEnergy ( const SimTK::State &  state) const
override

◆ shouldBeParallelized()

bool OpenSim::ForceAdapter::shouldBeParallelized ( ) const

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