19 #ifndef ESCAPECONTROLLER
20 #define ESCAPECONTROLLER
50 std::string args =
"_Escape",
51 std::string resourcePath =
"",
52 std::string config =
"Config.ini");
59 virtual void onStep(
EscapeModel& subject,
double dt);
64 virtual vector< vector <double> > transformActions(vector< vector <double> > act);
66 virtual void applyActions(
EscapeModel& subject, vector< vector <double> > act);
69 vector<double> initPosition;
70 const double m_initialLengths;
72 double const maxStringLengthFactor;
76 vector< vector<double> > actions;
80 int musclesPerCluster;
82 vector<vector<tgBasicActuator*> > clusters;
86 double* angularFrequency;
92 std::string configPath;
93 std::string configName;
102 void setPreferredMuscleLengths(
EscapeModel& subject,
double dt);
110 void initializeSineWaves();
117 std::vector<double> readManualParams(
int lineNumber,
string filename);
119 void printSineParams();
122 #endif // ESCAPECONTROLLER
Definition of tgObserver class.
A class to read a learning configuration from a .ini file.
Contains the definition of class AnnealEvolution. Adapting NeuroEvolution to do Simulated Annealing...
virtual ~EscapeController()
Defines a class AnnealAdapter to pass parameters from AnnealEvolution to a controller. Adapting NeuroEvolution to do Simulated Annealing.