NTRT Simulator
Version: Master
|
#include <T6TensionController.h>
Public Member Functions | |
T6TensionController (const double tension=.01) | |
virtual | ~T6TensionController () |
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 tension to a T6Model. Iterates through all tgLinearString members and calls tensionMinLengthController
Definition at line 44 of file T6TensionController.h.
T6TensionController::T6TensionController | ( | const double | tension = .01 | ) |
Construct a T6TensionController.
[in] | tension,a | double specifying the desired tension throughougt structure. Must be non-negitive |
Definition at line 37 of file T6TensionController.cpp.
|
virtual |
Nothing to delete, destructor must be virtual
Definition at line 46 of file T6TensionController.cpp.
|
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 |
Notify the observers when a setup action has occurred.
[in,out] | subject | the subject being observed |
Reimplemented from tgObserver< T6Model >.
Definition at line 56 of file T6TensionController.cpp.
|
virtual |
Apply the tension controller. Called my notifyStep(dt) of its subject. The tgLinearStrings will update using their tensionMinLengthController each step
[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 69 of file T6TensionController.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.