27 #include "KinematicSpineCPGControl.h"
39 #include "examples/learningSpines/tgCPGCableControl.h"
59 std::string resourcePath,
71 std::vector <tgSpringCableActuator*> allMuscles = subject.getAllMuscles();
73 for (std::size_t i = 0; i < allMuscles.size(); i++)
79 tgCPGStringControl* pStringControl =
new tgCPGStringControl();
81 allMuscles[i]->attach(pStringControl);
83 m_allControllers.push_back(pStringControl);
88 for (std::size_t i = 0; i < m_allControllers.size(); i++)
90 m_allControllers[i]->assignNodeNumber(*m_pCPGSys, nodeActions);
94 for (std::size_t i = 0; i < m_allControllers.size(); i++)
97 assert(pStringInfo != NULL);
104 if (m_config.useDefault)
106 pStringInfo->setupControl(*p_ipc);
110 pStringInfo->setupControl(*p_ipc, m_config.controlLength);
Contains the definition of class ImpedanceControl. $Id$.
void setConnectivity(const std::vector< tgCPGActuatorControl * > &allStrings, array_4D edgeParams)
Definition of the tgCPGStringControl observer class.
A class to read a learning configuration from a .ini file.
Contains the definition of abstract base class tgSpringCableActuator. Assumes that the string is line...
A series of functions to assist with file input/output.
KinematicSpineCPGControl(BaseSpineCPGControl::Config config, std::string args, std::string resourcePath="", std::string ec="edgeConfig.ini", std::string nc="nodeConfig.ini")
Contains the definition of class AnnealEvolution. Adapting NeuroEvolution to do Simulated Annealing...
Contains the definition of class tgBasicActuator.
Definition of class CPGEquations.
Definition of class CPGNode.
virtual void setupCPGs(BaseSpineModelLearning &subject, array_2D nodeActions, array_4D edgeActions)