19 #ifndef SRC_UTIL_CPGS_CPGEQUATIONS
20 #define SRC_UTIL_CPGS_CPGEQUATIONS
45 CPGEquations(std::vector<CPGNode*>& newNodeList,
int maxSteps = 200);
49 int addNode(std::vector<double>& newParams);
51 void defineConnections (
int nodeIndex,
52 std::vector<int> connections,
53 std::vector<double> newWeights,
54 std::vector<double> newPhaseOffsets);
56 const double operator[](
const std::size_t i)
const;
58 virtual std::vector<double>& getXVars();
60 virtual std::vector<double>& getDXVars();
62 virtual void updateNodes(std::vector<double>& descCom);
64 virtual void updateNodeData(std::vector<double> newXVals);
69 void update(std::vector<double>& descCom,
double dt);
71 std::string toString(
const std::string& prefix =
"")
const;
80 std::vector<CPGNode*> nodeList;
82 std::vector<double> XVars;
83 std::vector<double> DXVars;
102 os << obj.toString() << std::endl;
106 #endif // SIMULATOR_SRC_LIB_MODELS_SNAKE_CPGS_CPGEQUATIONS
void update(std::vector< double > &descCom, double dt)
std::ostream & operator<<(std::ostream &os, const CPGEquations &obj)
Definition of class CPGNode.