NTRT Simulator
Version: Master
|
#include <VerticalSpineRestLengthController.h>
Public Member Functions | |
VerticalSpineRestLengthController () | |
virtual | ~VerticalSpineRestLengthController () |
virtual void | onSetup (VerticalSpineModel &subject) |
virtual void | onStep (VerticalSpineModel &subject, double dt) |
VerticalSpineRestLengthController () | |
virtual | ~VerticalSpineRestLengthController () |
virtual void | onSetup (VerticalSpineModel &subject) |
virtual void | onStep (VerticalSpineModel &subject, double dt) |
virtual void | onAttach (VerticalSpineModel &subject) |
virtual void | onTeardown (VerticalSpineModel &subject) |
A controller to apply uniform rest length offset to all cables in a SpineModel. Does a one-time adjust of all cable rest lengths, thereby tightening up the structure and keeping it held together without further control input.
Definition at line 42 of file VerticalSpineRestLengthController.h.
VerticalSpineRestLengthController::VerticalSpineRestLengthController | ( | ) |
Construct a VerticalSpineRestLengthController.
[in] | restLengthDiff,the | amount of cable retraction to enact. This length will be subtracted from the geometric length of each cable in the structure. |
Definition at line 39 of file VerticalSpineRestLengthController.cpp.
|
inlinevirtual |
Nothing to delete, destructor must be virtual
Definition at line 59 of file VerticalSpineRestLengthController.h.
VerticalSpineRestLengthController::VerticalSpineRestLengthController | ( | ) |
Construct a VerticalSpineRestLengthController.
[in] | restLengthDiff,the | amount of cable retraction to enact. This length will be subtracted from the geometric length of each cable in the structure. |
|
inlinevirtual |
Nothing to delete, destructor must be virtual
Definition at line 59 of file VerticalSpineRestLengthController.h.
|
inlinevirtualinherited |
Notify the observers when an attach action has occurred. Will only occur once, typically before setup
[in,out] | subject | the subject being observed |
Definition at line 55 of file tgObserver.h.
|
virtual |
Apply the RestLength controller. On setup, adjust the cable lengths one time.
[in] | subject | - the SpineModel that is being controlled. Must have a list of allMuscles populated |
Reimplemented from tgObserver< VerticalSpineModel >.
Definition at line 48 of file VerticalSpineRestLengthController.cpp.
|
virtual |
Apply the RestLength controller. On setup, adjust the cable lengths one time.
[in] | subject | - the SpineModel that is being controlled. Must have a list of allMuscles populated |
Reimplemented from tgObserver< VerticalSpineModel >.
|
virtual |
The onStep method is not used for this controller.
[in] | subject | - the SpineModel that is being controlled. Must have a list of allMuscles populated |
[in] | dt,current | timestep must be positive |
Implements tgObserver< VerticalSpineModel >.
|
virtual |
The onStep method is not used for this controller.
[in] | subject | - the SpineModel that is being controlled. Must have a list of allMuscles populated |
[in] | dt,current | timestep must be positive |
Implements tgObserver< VerticalSpineModel >.
Definition at line 216 of file VerticalSpineRestLengthController.cpp.
|
inlinevirtualinherited |
Notify the observers when a teardown action has occurred.
[in,out] | subject | the subject being observed |
Definition at line 67 of file tgObserver.h.