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

Public Member Functions | |
| suSpringGeneralizedForce (int aQID=-1, int aNX=1, int aNY=0, int aNYP=0) | |
| Default constructor. | |
| suSpringGeneralizedForce (IDOM_Element *aElement, int aNX=1, int aNY=0, int aNYP=0) | |
| Construct the actuator from an XML Element. | |
| suSpringGeneralizedForce (const suSpringGeneralizedForce &aActuator) | |
| Copy constructor. | |
| virtual | ~suSpringGeneralizedForce () |
| Destructor. | |
| virtual rdActuator * | copy () const |
| Copy this actuator and return a pointer to the copy. | |
| virtual rdActuator * | copy (IDOM_Element *aElement) const |
| Copy this actuator and modify the copy so that it is consistent with a specified XML element node. | |
| suSpringGeneralizedForce & | operator= (const suSpringGeneralizedForce &aActuator) |
| Assignment operator. | |
| virtual void | setControls (const double aX[]) |
| Set the controls. | |
| virtual void | getControls (double rX[]) const |
| Get the controls. | |
| void | setRestLength (double aRestLength) |
| Set the rest length of the actuator. | |
| double | getRestLength () const |
| Get the rest length of the actuator. | |
| void | setViscosity (double aViscosity) |
| Set the viscosity of the actuator. | |
| double | getViscosity () const |
| Get the viscosity of the actuator. | |
| void | setStiffness (double aStiffness) |
| Set the stiffness of the actuator. | |
| double | getStiffness () const |
| Get the stiffness of the actuator. | |
| virtual void | computeActuation () |
| Compute all quantities necessary for applying the actuator force to the model. | |
| virtual void | updateObject (bool aDeep=true) |
| Update this object based on its XML node. | |
| virtual void | updateNode (bool aDeep=true) |
| Update the XML node representing this object. | |
| virtual void | generateNode (IDOM_Element *aParent) |
| Generate an XML node representing this object. | |
| void | updateData () |
| Update the member data of this object based on its XML node. | |
Protected Attributes | |
| double | _restLength |
| Rest length. | |
| double | _viscosity |
| Viscosity. | |
| double | _stiffness |
| Stiffness (control 0). | |
Private Member Functions | |
| void | setNull () |
| Set the data members of this actuator to their null values. | |
Static Private Attributes | |
| const char | PROP_REST_LENGTH [] = "rest_length" |
| const char | PROP_VISCOSITY [] = "viscosity" |
It has one control: stiffness.
|
||||||||||||||||||||
|
Construct the actuator from an XML Element.
|
|
|
Copy constructor.
|
|
|
Copy this actuator and modify the copy so that it is consistent with a specified XML element node. The copy is constructed by first using rdG::rdForce(IDOM_Element*,int,int) in order to establish the relationship of the rdForce object with the XML node. Then, the assignment operator is used to set all data members of the copy to the values of this rdForce object. Finally, the data members of the copy are updated using rdForce::updateObject().
Reimplemented from rdGeneralizedForce. |
|
|
Copy this actuator and return a pointer to the copy. The copy constructor for this class is used.
Reimplemented from rdGeneralizedForce. |
|
|
Generate an XML node representing this object.
Reimplemented from rdGeneralizedForce. |
|
|
Get the controls. This actuator has 1 control: its stiffness.
Reimplemented from rdGeneralizedForce. |
|
|
Get the rest length of the actuator.
|
|
|
Get the stiffness of the actuator.
|
|
|
Get the viscosity of the actuator.
|
|
|
Assignment operator.
|
|
|
Set the controls. This actuator has 1 control: its stiffness.
Reimplemented from rdGeneralizedForce. |
|
|
Set the rest length of the actuator.
|
|
|
Set the stiffness of the actuator. Normally the stiffness is a positive quantity. Negative stiffnessess will result in an unstable system- the force will push away from the rest length instead of pulling toward it.
|
|
|
Set the viscosity of the actuator. Normally the viscosity should be a positive number. Negative viscosities will put energy into the system rather than apply a damping force.
|
|
|
Update the member data of this object based on its XML node. Member objects (children) are not updated. Reimplemented from rdGeneralizedForce. |
|
|
Update the XML node representing this object.
Reimplemented from rdGeneralizedForce. |
|
|
Update this object based on its XML node.
Reimplemented from rdGeneralizedForce. |
1.3