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

Public Member Functions | |
| suGeneralizedForcePerturbation (rdModel *aModel) | |
| Construct a derivative callback instance for perturbing a generalized force during an integration. | |
| suGeneralizedForcePerturbation (rdModel *aModel, rdGCVSpline *_aSpline) | |
| Construct a derivative callback instance for perturbing a generalized force during an integration. | |
| virtual | ~suGeneralizedForcePerturbation () |
| Destructor. | |
| void | setGenCoord (int aGenCoord) |
| Set which generalized coordinate the force perturbation should be made. | |
| int | getGenCoord () const |
| Get which generalized coordinate the force perturbation should be made. | |
| void | setScaleFactor (double aScaleFactor) |
| Set the scale factor by which the perturbation will be multiplied. | |
| double | getScaleFactor () const |
| Get the scale factor by which the perturbation will be multiplied. | |
| void | setPerturbation (double aPerturbation) |
| Set the perturbation. | |
| double | getPerturbation () const |
| Get the pertubation value. | |
| virtual void | computeActuation (double aT, double *aX, double *aY) |
| Callback called right after actuation has been computed by the model. | |
| virtual void | applyActuation (double aT, double *aX, double *aY) |
| Callback called right after actuation has been applied by the model. | |
Protected Attributes | |
| int | _genCoord |
| Which generalized coordinate. | |
| double | _perturbation |
| Perturbation to be applied. | |
| double | _scaleFactor |
| Scaling factor to be applied to perturbation. | |
| rdGCVSpline * | _genForceSpline |
| The function defining the generalized force to be applied *. | |
Private Member Functions | |
| void | setNull () |
| Set member variables to approprate NULL values. | |
|
|
Construct a derivative callback instance for perturbing a generalized force during an integration. When this default constructor is used, the perturbation for to the generalized force is set to be a unit torque. This can then be scaled if the user wants to apply a constant torque to a generalized coordinate.
|
|
||||||||||||
|
Construct a derivative callback instance for perturbing a generalized force during an integration. When this constructor is used, the rdStorage sent in by the user is used to define a function object. This function is used to define the generalized force that is applied during the simulation.
|
|
||||||||||||||||
|
Callback called right after actuation has been applied by the model. The nominal atuator force is restored. Reimplemented from rdDerivCallback. |
|
||||||||||||||||
|
Callback called right after actuation has been computed by the model. The perturbation generalized force is applied to the generalized coordinate.
Reimplemented from rdDerivCallback. |
|
|
Get which generalized coordinate the force perturbation should be made.
|
|
|
Get the pertubation value.
|
|
|
Get the scale factor by which the perturbation will be multiplied.
|
|
|
Set which generalized coordinate the force perturbation should be made.
|
|
|
Set the perturbation. This is only neccesary if you want to apply a constant perturbation that does not come from a spline.
|
|
|
Set the scale factor by which the perturbation will be multiplied.
|
1.3