30 #include "LinearMath/btQuickprof.h"
46 assert(params.size() >= 11);
47 rValue = sqrt(radiusOffset);
50 CPGNodeFB::~CPGNodeFB()
58 BT_PROFILE(
"CPGNodeFB::updateDTs");
59 #endif //BT_NO_PROFILE
60 assert(feedback.size() >= 3);
62 phiDotValue =
omega + kPhase * feedback [2];
69 const std::size_t n = couplingList.size();
70 for (std::size_t i = 0; i != n; i++){
71 const CPGNode& targetNode = *couplingList[i];
72 phiDotValue += weightList[i] * targetNode.rValue * sin (targetNode.phiValue - phiValue - phaseList[i]);
75 omegaDot = kFreq * feedback[0] * sin(phiValue);
77 rDotValue =
rConst * (radiusOffset + kAmp * feedback[1] - pow(rValue, 2.0)) * rValue;
80 void CPGNodeFB::updateNodeValues (
double newPhi,
86 BT_PROFILE(
"CPGNodeFB::updateNodeValues");
87 #endif //BT_NO_PROFILE
CPGNodeFB(int nodeNum, const std::vector< double > ¶ms)
Definition of class CPGNodeFB.
virtual void updateDTs(const std::vector< double > &feedback)