NTRT Simulator
Version: Master
|
#include <T6RestLengthController.h>
Public Member Functions | |
T6RestLengthController (T6Model *subject, const double restLengthDiff=4) | |
virtual | ~T6RestLengthController () |
virtual void | onSetup (T6Model &subject) |
virtual void | onStep (T6Model &subject, double dt) |
T6RestLengthController (T6Model *subject, const double restLengthDiff=4) | |
virtual | ~T6RestLengthController () |
virtual void | onSetup (T6Model &subject) |
virtual void | onStep (T6Model &subject, double dt) |
virtual void | onAttach (T6Model &subject) |
virtual void | onTeardown (T6Model &subject) |
A controller to apply uniform rest length offset to all cables in a T6Model. 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 T6RestLengthController.h.
T6RestLengthController::T6RestLengthController | ( | T6Model * | subject, |
const double | restLengthDiff = 4 |
||
) |
Construct a T6RestLengthController.
[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 41 of file T6RestLengthController.cpp.
|
inlinevirtual |
Nothing to delete, destructor must be virtual
Definition at line 59 of file T6RestLengthController.h.
T6RestLengthController::T6RestLengthController | ( | T6Model * | subject, |
const double | restLengthDiff = 4 |
||
) |
Construct a T6RestLengthController.
[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 T6RestLengthController.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 T6Model that is being controlled. Must have a list of allMuscles populated |
Reimplemented from tgObserver< T6Model >.
Definition at line 51 of file T6RestLengthController.cpp.
|
virtual |
Apply the RestLength controller. On setup, adjust the cable lengths one time.
[in] | subject | - the T6Model that is being controlled. Must have a list of allMuscles populated |
Reimplemented from tgObserver< T6Model >.
|
virtual |
The onStep method is not used for this controller.
[in] | subject | - the T6Model that is being controlled. Must have a list of allMuscles populated |
[in] | dt,current | timestep must be positive |
Implements tgObserver< T6Model >.
|
virtual |
The onStep method is not used for this controller.
[in] | subject | - the T6Model that is being controlled. Must have a list of allMuscles populated |
[in] | dt,current | timestep must be positive |
Implements tgObserver< T6Model >.
Definition at line 80 of file T6RestLengthController.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.