NTRT Simulator
v1.1
|
#include <EscapeController.h>
Public Member Functions | |
EscapeController (const double prefLength=5.0, std::string args="_Escape", std::string resourcePath="", std::string config="Config.ini") | |
virtual | ~EscapeController () |
virtual void | onSetup (EscapeModel &subject) |
virtual void | onStep (EscapeModel &subject, double dt) |
virtual void | onTeardown (EscapeModel &subject) |
virtual void | onAttach (EscapeModel &subject) |
Protected Member Functions | |
virtual vector< vector< double > > | transformActions (vector< vector< double > > act) |
virtual void | applyActions (EscapeModel &subject, vector< vector< double > > act) |
Escape Controller for T6
Definition at line 45 of file EscapeController.h.
|
inlinevirtual |
Nothing to delete, destructor must be virtual
Definition at line 55 of file EscapeController.h.
|
protectedvirtual |
Defines each cluster's sine wave according to actions
Definition at line 184 of file EscapeController.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 |
Set the lengths of the muscles and initialize the learning adapter
Reimplemented from tgObserver< EscapeModel >.
Definition at line 72 of file EscapeController.cpp.
|
virtual |
Notify the observers when a step action has occurred.
[in,out] | subject | the subject being observed |
[in] | the | number of seconds since the previous call; must be positive |
Implements tgObserver< EscapeModel >.
Definition at line 102 of file EscapeController.cpp.
|
virtual |
Notify the observers when a teardown action has occurred.
[in,out] | subject | the subject being observed |
Reimplemented from tgObserver< EscapeModel >.
Definition at line 123 of file EscapeController.cpp.
|
protectedvirtual |
Returns the modified actions 2D vector such that each action value is now scaled to fit the model Invariant: actions[x].size() == 4 for all legal values of x Invariant: Each actions[] contains: amplitude, angularFrequency, phaseChange, dcOffset
Definition at line 144 of file EscapeController.cpp.