#include <JSONGoalControl.h>
Inherits JSONCPGControl.
Inherited by JSONGoalTension, JSONGoalTensionNNW, and OctahedralGoalControl.
|
JSONGoalControl::Config | m_config |
|
neuralNetwork * | nn |
|
neuralNetwork * | nn_goal |
|
CPGEquations * | m_pCPGSys |
|
std::vector
< tgCPGActuatorControl * > | m_allControllers |
|
std::vector< double > | initConditions |
|
std::size_t | segments |
|
tgDataObserver | m_dataObserver |
|
double | m_updateTime |
|
std::vector< double > | scores |
|
bool | bogus |
|
std::string | controlFilename |
|
std::string | controlFilePath |
|
JSONGoalControl learns the parameters for a CPG system on a spine like tensegrity structure specified as a BaseSpineModelLearning. Parameters are generated by AnnealEvolution and used in the CPGEquations family of classes. tgImpedanceController controllers are used for the detailed muscle control. Due to the number of parameters, the learned parameters are split into one config file for the nodes and another for the CPG's "edges"
Definition at line 48 of file JSONGoalControl.h.
JSONGoalControl::JSONGoalControl |
( |
JSONGoalControl::Config |
config, |
|
|
std::string |
args, |
|
|
std::string |
resourcePath = "" |
|
) |
| |
Defining the adapters here assumes the controller is around and attached for the lifecycle of the learning runs. I.E. that the setup and teardown functions are used for tgModel
Definition at line 101 of file JSONGoalControl.cpp.
Attach an observer to the subject of the observer.
- Parameters
-
[in,out] | pObserver | a pointer to an observer for the subject; do nothing if the pointer is NULL |
std::vector< double > JSONGoalControl::getGoalFeedback |
( |
const BaseSpineModelGoal * |
subject | ) |
|
|
protected |
Call tgObserver<T>::onStep() on all observers in the order in which they were attached.
- Parameters
-
[in] | dt | the number of seconds since the previous call; do nothing if not positive |
Notify the observers when an attach action has occurred. Will only occur once, typically before setup
- Parameters
-
[in,out] | subject | the subject being observed |
Definition at line 55 of file tgObserver.h.
array_4D JSONCPGControl::scaleEdgeActions |
( |
Json::Value |
edgeParam | ) |
|
|
protectedvirtualinherited |
Takes a vector of parameters reported by learning, and then converts it into a format used to assign to the CPGEdges Note that if the CPG edges change, this will need to change
- Todo:
- consider adding exception here
Reimplemented in JSONQuadFeedbackControl.
Definition at line 390 of file JSONCPGControl.cpp.
neuralNetwork* JSONGoalControl::nn |
|
protected |
The documentation for this class was generated from the following files: