19 #ifndef JSON_MIXED_LEARNING_CONTROL_H
20 #define JSON_MIXED_LEARNING_CONTROL_H
32 #include <json/value.h>
64 double lp = -1 * M_PI,
83 const double freqFeedbackMin;
84 const double freqFeedbackMax;
85 const double ampFeedbackMin;
86 const double ampFeedbackMax;
87 const double phaseFeedbackMin;
88 const double phaseFeedbackMax;
90 const double maxHeight;
91 const double minHeight;
102 std::string resourcePath =
"");
114 virtual void setupCPGs(
BaseSpineModelLearning& subject, array_2D nodeActions, array_4D startingEdgeActions, array_4D middleEdgeActions, array_4D endingEdgeActions);
116 virtual array_2D scaleNodeActions (Json::Value actions);
122 std::vector<double> transformFeedbackActions(std::vector< std::vector<double> >& actions);
126 std::vector<tgCPGActuatorControl*> m_startingControllers;
127 std::vector<tgCPGActuatorControl*> m_middleControllers;
128 std::vector<tgCPGActuatorControl*> m_endingControllers;
135 #endif // JSON_MIXED_LEARNING_CONTROL_H
An adaptation of JSONCPGControl that utilizes JSON for parameters.
virtual void onSetup(BaseSpineModelLearning &subject)
JSONMixedLearningControl(JSONMixedLearningControl::Config config, std::string args, std::string resourcePath="")
virtual void onTeardown(BaseSpineModelLearning &subject)
Config(int ss, int tm, int om, int param, int segnum=6, double ct=0.1, double la=0, double ha=30, double lp=-1 *M_PI, double hp=M_PI, double kt=0.0, double kp=1000.0, double kv=100.0, bool def=true, double cl=10.0, double lf=0.0, double hf=30.0, double ffMin=0.0, double ffMax=0.0, double afMin=0.0, double afMax=0.0, double pfMin=0.0, double pfMax=0.0, double maxH=25.0, double minH=1.0)
virtual void onStep(BaseSpineModelLearning &subject, double dt)