19 #ifndef TG_CPG_STRING_CONTRL_H
20 #define TG_CPG_STRING_CONTRL_H
33 #include "boost/multi_array.hpp"
35 typedef boost::multi_array<double, 2> array_2D;
36 typedef boost::multi_array<double, 4> array_4D;
68 void setConnectivity(
const std::vector<tgCPGActuatorControl*>& allStrings,
71 const int getNodeNumber()
const
84 const double getCommandedTension()
const
86 return m_commandedTension;
92 double controlLength);
94 const btRigidBody* getFromBody()
const
99 const btRigidBody* getToBody()
const
118 double m_commandedTension;
120 btRigidBody* m_pFromBody;
122 btRigidBody* m_pToBody;
virtual void onStep(tgSpringCableActuator &subject, double dt)
void setConnectivity(const std::vector< tgCPGActuatorControl * > &allStrings, array_4D edgeParams)
const CPGEquations * getCPGSys() const
virtual void onAttach(tgSpringCableActuator &subject)
Contains the definition of abstract base class tgSpringCableActuator. Assumes that the string is line...
const double m_controlStep
void assignNodeNumber(CPGEquations &CPGSys, array_2D nodeParams)
Definition of class tgBaseCPGNode.