#include <ActuatorPerturbationIndependent.h>
Public Member Functions | |
ActuatorPerturbationIndependent (Model *aModel) | |
Construct an instance for perturbing actuator forces during an integration while forcing all other muscles to exert their nominal force. | |
virtual | ~ActuatorPerturbationIndependent () |
Destructor. | |
void | setUnperturbedForceSplineSet (Storage *aStore) |
Set the Storage object containing the unperturbed forces. | |
GCVSplineSet * | getUnperturbedForceSplineSet () |
Get a pointer to the spline set used to fit the unperturbed actuator forces. | |
Storage * | getPerturbedForceStorage () |
Get a pointer to the Storage containing the perturbed forces. | |
virtual void | reset (const SimTK::State &s) |
Set the step counter to zero and reset the perturbed force storage. | |
bool | getAllowNegForce () const |
Get whether negative force is allowed. | |
void | setActuator (Actuator *act) |
Set which actuator has its force perturbed. | |
void | initalizeOverrideForces () |
void | record (const SimTK::State &s) |
The nominal actuator force is recorded so that it can be restored. | |
Protected Attributes | |
GCVSplineSet * | _unperturbedForceSplines |
Splines used to fit the unperturbed forces. | |
Storage * | _unperturbedForceStorage |
Storage for holding unperturbed forces. | |
Storage * | _perturbedForceStorage |
Storage for holding perturbed forces. | |
Set< ForcePerturbationFunction > | _overrideFunctions |
set of functions to compute the override forces for actuators |
ActuatorPerturbationIndependent::ActuatorPerturbationIndependent | ( | Model * | aModel | ) |
Construct an instance for perturbing actuator forces during an integration while forcing all other muscles to exert their nominal force.
aModel | Model for which actuator forces are to be perturbed. |
ActuatorPerturbationIndependent::~ActuatorPerturbationIndependent | ( | ) | [virtual] |
Destructor.
bool OpenSim::ActuatorPerturbationIndependent::getAllowNegForce | ( | ) | const [inline] |
Get whether negative force is allowed.
Reimplemented from OpenSim::ActuatorPerturbation.
Storage * ActuatorPerturbationIndependent::getPerturbedForceStorage | ( | ) |
Get a pointer to the Storage containing the perturbed forces.
GCVSplineSet * ActuatorPerturbationIndependent::getUnperturbedForceSplineSet | ( | ) |
Get a pointer to the spline set used to fit the unperturbed actuator forces.
void ActuatorPerturbationIndependent::initalizeOverrideForces | ( | ) |
void ActuatorPerturbationIndependent::record | ( | const SimTK::State & | s | ) |
The nominal actuator force is recorded so that it can be restored.
void ActuatorPerturbationIndependent::reset | ( | const SimTK::State & | s | ) | [virtual] |
Set the step counter to zero and reset the perturbed force storage.
Reimplemented from OpenSim::ActuatorPerturbation.
void ActuatorPerturbationIndependent::setActuator | ( | Actuator * | act | ) |
Set which actuator has its force perturbed.
aAct | Pointer to the actuator. |
Reimplemented from OpenSim::ActuatorPerturbation.
void ActuatorPerturbationIndependent::setUnperturbedForceSplineSet | ( | Storage * | aStore | ) |
Set the Storage object containing the unperturbed forces.
This storage object is not deleted; the caller is responsible for cleaning up the resources associated with the storage object.
A cubic spline set is used to fit the forces contained in the object, and the splines are used to apply actuator forces throughout an integration.
aStore | Unperturbed force storage that is used to construct the spline set. |
Set<ForcePerturbationFunction> OpenSim::ActuatorPerturbationIndependent::_overrideFunctions [protected] |
set of functions to compute the override forces for actuators
Storage for holding perturbed forces.
Splines used to fit the unperturbed forces.
Storage for holding unperturbed forces.