OpenSim::ActuatorPerturbationIndependent Class Reference

#include <ActuatorPerturbationIndependent.h>

Inheritance diagram for OpenSim::ActuatorPerturbationIndependent:
OpenSim::ActuatorPerturbation OpenSim::Object

List of all members.

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.
GCVSplineSetgetUnperturbedForceSplineSet ()
 Get a pointer to the spline set used to fit the unperturbed actuator forces.
StoragegetPerturbedForceStorage ()
 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

Constructor & Destructor Documentation

ActuatorPerturbationIndependent::ActuatorPerturbationIndependent ( Model aModel  ) 

Construct an instance for perturbing actuator forces during an integration while forcing all other muscles to exert their nominal force.

Parameters:
aModel Model for which actuator forces are to be perturbed.
ActuatorPerturbationIndependent::~ActuatorPerturbationIndependent (  )  [virtual]

Destructor.


Member Function Documentation

bool OpenSim::ActuatorPerturbationIndependent::getAllowNegForce (  )  const [inline]

Get whether negative force is allowed.

Returns:
allowNegForce Flag
See also:
setAllowNegForce()

Reimplemented from OpenSim::ActuatorPerturbation.

Storage * ActuatorPerturbationIndependent::getPerturbedForceStorage (  ) 

Get a pointer to the Storage containing the perturbed forces.

Returns:
Pointer to the perturbed force storage.
GCVSplineSet * ActuatorPerturbationIndependent::getUnperturbedForceSplineSet (  ) 

Get a pointer to the spline set used to fit the unperturbed actuator forces.

Returns:
Spline set containing the unperturbed actuator force curves.
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.

Parameters:
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.

Parameters:
aStore Unperturbed force storage that is used to construct the spline set.

Member Data Documentation

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.


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

Generated on Sun Sep 25 00:19:46 2011 for OpenSim by  doxygen 1.6.1