11#ifndef VirtualSpring_H
12#define VirtualSpring_H
25 void OdeFcn(
const double T,
const double*
const X,
double*
const XDot,
const bool bIsMajorTimeStep);
27 void InitialConditionSetup(
const double T,
const double*
const X,
double*
const XDot, ISimObjectCreator* pCreator);
29 const double* OutPos(
const double T,
const double *
const X);
30 const double* OutDeltaPos(
const double T,
const double *
const X);
31 const double* OutDelta(
const double T,
const double *
const X);
32 const double* OutDeltaLen(
const double T,
const double *
const X);
34#ifdef FH_VISUALIZATION
36 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator){}
39 virtual void RenderUpdate(
const double T,
const double*
const X){}
42 typedef Eigen::Matrix<double, 3, 1> vec3;
44 ISignalPort* m_InPosA;
45 ISignalPort* m_InPosB;
50 int m_adLength, m_adIntegral, m_adDerivate;
51 double m_Pp, m_Pd, m_Pi, m_IntegralSaturation, m_DerivativeTInv;
55 double m_OutDeltaPos[3];
64 double m_InitialLength;
65 ISignalPort* m_InAdPosA;
66 ISignalPort* m_InAdPosB;
Definition: VirtualSpring.h:18
void OdeFcn(const double T, const double *const X, double *const XDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
VirtualSpring(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.