NTRT Simulator
Version: Master
|
#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 std::vector < std::vector< double > > | transformActions (std::vector< std::vector< double > > act) |
virtual void | applyActions (EscapeModel &subject, std::vector< std::vector< double > > act) |
Escape Controller for T6
Definition at line 42 of file EscapeController.h.
|
inlinevirtual |
Nothing to delete, destructor must be virtual
Definition at line 52 of file EscapeController.h.
|
protectedvirtual |
Defines each cluster's sine wave according to actions
Definition at line 182 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 70 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 100 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 121 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 142 of file EscapeController.cpp.