#include <suActuatorGeneralizedForces.h>
Inheritance diagram for suActuatorGeneralizedForces:

Public Member Functions | |
| suActuatorGeneralizedForces (rdModel *aModel, int aNA, int *aActuatorList) | |
| Construct an suGeneralizedForces object for recording the joint torques due an actuator or set of actuators during a simulation. | |
| virtual | ~suActuatorGeneralizedForces () |
| Destructor. | |
| void | setStorageCapacityIncrements (int aIncrement) |
| Set the capacity increments of all storage instances. | |
| rdStorage * | getActuatorGenForcesStorage () |
| Get the storage for the actuator generalized forces. | |
| virtual int | begin (int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL) |
| This method is called at the beginning of an analysis so that any necessary initializations may be performed. | |
| virtual int | analyze (double *aXPrev, double *aYPrev, int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL) |
| This method is called to perform the analysis. | |
| virtual int | end (int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL) |
| This method is called at the end of an analysis so that any necessary finalizations may be performed. | |
| virtual int | printResults (char *aBaseName, char *aDir=NULL, double aDT=-1.0, char *aExtension=".sto") |
| Print results. | |
Protected Member Functions | |
| virtual int | record (double aT, double *aX, double *aY) |
| Record the joint torques. | |
Protected Attributes | |
| double * | _dqdt |
| double * | _dudt |
| int | _NA |
| int * | _actuatorList |
| double * | _actuatorGenForces |
| rdStorage * | _actuatorGenForcesStore |
Private Member Functions | |
| void | constructDescription () |
| Construct the description for the joint torque files. | |
| void | constructColumnLabels () |
| Construct the column labels for the kinematics files. | |
| void | allocateStorage () |
| Allocate storage for the kinematics. | |
|
||||||||||||||||
|
Construct an suGeneralizedForces object for recording the joint torques due an actuator or set of actuators during a simulation.
|
|
||||||||||||||||||||||||||||||||||||
|
This method is called to perform the analysis. It can be called during the execution of a forward integrations or after the integration by feeding it the necessary data. When called during an integration, this method is meant to be called in rdModel::integStepCallback(), which has the same argument list. This method should be overriden in derived classes. It is included here so that the derived class will not have to implement it if it is not necessary.
Reimplemented from rdAnalysis. |
|
||||||||||||||||||||||||||||
|
This method is called at the beginning of an analysis so that any necessary initializations may be performed. This method is meant to be called at the begining of an integration in rdModel::integBeginCallback() and has the same argument list. This method should be overriden in the child class. It is included here so that the child class will not have to implement it if it is not necessary.
Reimplemented from rdAnalysis. |
|
||||||||||||||||||||||||||||
|
This method is called at the end of an analysis so that any necessary finalizations may be performed. This method is meant to be called at the end of an integration in rdModel::integEndCallback() and has the same argument list. This method should be overriden in the child class. It is included here so that the child class will not have to implement it if it is not necessary.
Reimplemented from rdAnalysis. |
|
|
Get the storage for the actuator generalized forces.
|
|
||||||||||||||||||||
|
Print results. The file names are constructed as aDir + "/" + aBaseName + "_" + ComponentName + aExtension
Reimplemented from rdAnalysis. |
|
|
Set the capacity increments of all storage instances.
|
1.3