NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
Escape_T6Controller Class Reference

#include <Escape_T6Controller.h>

Inheritance diagram for Escape_T6Controller:
Collaboration diagram for Escape_T6Controller:

Public Member Functions

 Escape_T6Controller (const double prefLength=5.0)
 
virtual ~Escape_T6Controller ()
 
virtual void onSetup (Escape_T6Model &subject)
 
virtual void onStep (Escape_T6Model &subject, double dt)
 
virtual void onTeardown (Escape_T6Model &subject)
 
 Escape_T6Controller (const double prefLength=5.0, std::string args="_Escape", std::string resourcePath="", std::string config="Config.ini")
 
virtual ~Escape_T6Controller ()
 
virtual void onSetup (Escape_T6Model &subject)
 
virtual void onStep (Escape_T6Model &subject, double dt)
 
virtual void onTeardown (Escape_T6Model &subject)
 
virtual void onAttach (Escape_T6Model &subject)
 

Protected Member Functions

virtual vector< vector< double > > transformActions (vector< vector< double > > act)
 
virtual void applyActions (Escape_T6Model &subject, vector< vector< double > > act)
 
virtual std::vector
< std::vector< double > > 
transformActions (std::vector< std::vector< double > > act)
 
virtual void applyActions (Escape_T6Model &subject, std::vector< std::vector< double > > act)
 

Detailed Description

Escape Controller for T6

Definition at line 43 of file Escape_T6Controller.h.

Constructor & Destructor Documentation

virtual Escape_T6Controller::~Escape_T6Controller ( )
inlinevirtual

Nothing to delete, destructor must be virtual

Definition at line 50 of file Escape_T6Controller.h.

virtual Escape_T6Controller::~Escape_T6Controller ( )
inlinevirtual

Nothing to delete, destructor must be virtual

Definition at line 52 of file Escape_T6Controller.h.

Member Function Documentation

void Escape_T6Controller::applyActions ( Escape_T6Model subject,
vector< vector< double > >  actions 
)
protectedvirtual

Defines each cluster's sine wave according to actions

Definition at line 185 of file Escape_T6Controller.cpp.

Here is the caller graph for this function:

void Escape_T6Controller::applyActions ( Escape_T6Model subject,
std::vector< std::vector< double > >  actions 
)
protectedvirtual

Defines each cluster's sine wave according to actions

Definition at line 202 of file Escape_T6Controller.cpp.

virtual void tgObserver< Escape_T6Model >::onAttach ( Escape_T6Model subject)
inlinevirtualinherited

Notify the observers when an attach action has occurred. Will only occur once, typically before setup

Parameters
[in,out]subjectthe subject being observed

Definition at line 55 of file tgObserver.h.

void Escape_T6Controller::onSetup ( Escape_T6Model subject)
virtual

Set the lengths of the muscles and initialize the learning adapter

Reimplemented from tgObserver< Escape_T6Model >.

Definition at line 62 of file Escape_T6Controller.cpp.

virtual void Escape_T6Controller::onSetup ( Escape_T6Model subject)
virtual

Notify the observers when a setup action has occurred.

Parameters
[in,out]subjectthe subject being observed

Reimplemented from tgObserver< Escape_T6Model >.

void Escape_T6Controller::onStep ( Escape_T6Model subject,
double  dt 
)
virtual

Notify the observers when a step action has occurred.

Parameters
[in,out]subjectthe subject being observed
[in]thenumber of seconds since the previous call; must be positive

Implements tgObserver< Escape_T6Model >.

Definition at line 91 of file Escape_T6Controller.cpp.

Here is the call graph for this function:

virtual void Escape_T6Controller::onStep ( Escape_T6Model subject,
double  dt 
)
virtual

Notify the observers when a step action has occurred.

Parameters
[in,out]subjectthe subject being observed
[in]thenumber of seconds since the previous call; must be positive

Implements tgObserver< Escape_T6Model >.

void Escape_T6Controller::onTeardown ( Escape_T6Model subject)
virtual

Notify the observers when a teardown action has occurred.

Parameters
[in,out]subjectthe subject being observed

Reimplemented from tgObserver< Escape_T6Model >.

Definition at line 123 of file Escape_T6Controller.cpp.

virtual void Escape_T6Controller::onTeardown ( Escape_T6Model subject)
virtual

Notify the observers when a teardown action has occurred.

Parameters
[in,out]subjectthe subject being observed

Reimplemented from tgObserver< Escape_T6Model >.

vector< vector< double > > Escape_T6Controller::transformActions ( vector< vector< double > >  actions)
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 Escape_T6Controller.cpp.

Here is the caller graph for this function:

std::vector< std::vector< double > > Escape_T6Controller::transformActions ( std::vector< std::vector< double > >  actions)
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 162 of file Escape_T6Controller.cpp.


The documentation for this class was generated from the following files: