NTRT Simulator  v1.1
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
CPGNodeFB Class Reference
Inheritance diagram for CPGNodeFB:
Collaboration diagram for CPGNodeFB:

Public Member Functions

 CPGNodeFB (int nodeNum, const std::vector< double > &params)
 
virtual void updateDTs (const std::vector< double > &feedback)
 
void updateNodeValues (double newR, double newPhi, double newO)
 
void addCoupling (CPGNode *cNode, const double cWeight, const double cPhase)
 
virtual void updateDTs (double descCom)
 
double nodeEquation (double d, double c0, double c1)
 
const int getNodeIndex () const
 
std::string toString (const std::string &prefix="") const
 

Protected Attributes

double omega
 
double omegaDot
 
const double kFreq
 
const double kAmp
 
const double kPhase
 
double nodeValue
 
double phiValue
 
double phiDotValue
 
double rValue
 
double rDotValue
 
double rDoubleDotValue
 
std::vector< CPGNode * > couplingList
 
std::vector< double > phaseList
 
std::vector< double > weightList
 
const int m_nodeNumber
 
const double rConst
 
const double frequencyOffset
 
const double frequencyScale
 
const double radiusOffset
 
const double radiusScale
 
const double dMin
 
const double dMax
 

Friends

class CPGEquationsFB
 

Detailed Description

Definition at line 38 of file CPGNodeFB.h.

Constructor & Destructor Documentation

CPGNodeFB::CPGNodeFB ( int  nodeNum,
const std::vector< double > &  params 
)
Todo:
consider adding vector of initial conditions for stability

Definition at line 37 of file CPGNodeFB.cpp.

Member Function Documentation

double CPGNode::nodeEquation ( double  d,
double  c0,
double  c1 
)
inherited

Compute the base node equation for R and Phi

Definition at line 90 of file CPGNode.cpp.

Here is the caller graph for this function:

void CPGNodeFB::updateDTs ( const std::vector< double > &  feedback)
virtual

Update phiDotValue and rDoubleDotValue based on Node equations and coupling equations

Todo:
better name?

Iterate through every edge and affect the phase of this node accordingly.

Todo:
ask about refactoring to use for_each

Definition at line 55 of file CPGNodeFB.cpp.

void CPGNode::updateDTs ( double  descCom)
virtualinherited

Update phiDotValue and rDoubleDotValue based on Node equations and coupling equations

Todo:
better name?

Iterate through every edge and affect the phase of this node accordingly.

Todo:
ask about refactoring to use for_each

Definition at line 71 of file CPGNode.cpp.

Here is the call graph for this function:

Member Data Documentation

const int CPGNode::m_nodeNumber
protectedinherited

Index of this node for printing and debugging

Definition at line 106 of file CPGNode.h.

double CPGNode::nodeValue
protectedinherited

Values for numerical integration

Definition at line 92 of file CPGNode.h.

double CPGNodeFB::omega
protected

Values for numerical integration

Definition at line 68 of file CPGNodeFB.h.

const double CPGNode::rConst
protectedinherited

Parameters for node equations:

Definition at line 111 of file CPGNode.h.


The documentation for this class was generated from the following files: