NTRT Simulator
v1.1
|
#include <SerializedSpineControl.h>
Classes | |
struct | Config |
Public Member Functions | |
SerializedSpineControl (std::string fileName) | |
~SerializedSpineControl () | |
virtual void | onSetup (BaseSpineModelLearning &subject) |
virtual void | onStep (BaseSpineModelLearning &subject, double dt) |
virtual void | onAttach (BaseSpineModelLearning &subject) |
virtual void | onTeardown (BaseSpineModelLearning &subject) |
Control the TetraSpineLearningModel with a series of sine waves and local impedance controllers
Definition at line 47 of file SerializedSpineControl.h.
SerializedSpineControl::SerializedSpineControl | ( | std::string | fileName | ) |
Construct the controller. Typically occurs in the main function. The controller will need to be attached to a subject (model) Parameters are currently set in the initalizer lists.
Definition at line 167 of file SerializedSpineControl.cpp.
SerializedSpineControl::~SerializedSpineControl | ( | ) |
Destructor. Frees the tgImpedanceController pointers
Definition at line 181 of file SerializedSpineControl.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< BaseSpineModelLearning >.
Definition at line 218 of file SerializedSpineControl.cpp.
|
virtual |
Apply the sineWave controller. Called my notifyStep(dt) of its subject. Calls the applyImpedanceControl functions of this class
[in] | subject | - the TetraSpineLearningModel that is being Subject must have a MuscleMap populated |
[in] | dt,current | timestep must be positive |
Implements tgObserver< BaseSpineModelLearning >.
Definition at line 272 of file SerializedSpineControl.cpp.
|
inlinevirtualinherited |
Notify the observers when a teardown action has occurred.
[in,out] | subject | the subject being observed |
Reimplemented in BaseSpineCPGControl, SpineFeedbackControl, OctaCLSine, LearningSpineSine, colSpineSine, and htSpineSine.
Definition at line 67 of file tgObserver.h.