16#include "sfh/constants.h"
18#ifdef FH_VISUALIZATION
19#include "sfh/ogre/C3DLine.h"
27 typedef Eigen::Matrix<double, 3, 1> dvec3;
30 SimpleRope(std::string sSimObjectName, ISimObjectCreator* pCreator);
34 void OdeFcn(
const double T,
const double*
const X,
double*
const XDot,
const bool bIsMajorTimeStep);
36 void InitialConditionSetup(
const double T,
const double*
const X,
double*
const XDot, ISimObjectCreator* pCreator);
38 const double * OutForceA(
const double T,
const double *
const X);
39 const double * OutForceB(
const double T,
const double *
const X);
41 void distance_constraint(dvec3& PA, dvec3& PB, dvec3& VA, dvec3& VB, dvec3& F,
double L);
43#ifdef FH_VISUALIZATION
44 void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
45 void RenderUpdate(
const double T,
const double*
const X);
48 ISignalPort* m_InPosA;
49 ISignalPort* m_InPosB;
50 ISignalPort* m_InVelA;
51 ISignalPort* m_InVelB;
58 Eigen::Matrix<double, 3, 1> m_PosA;
59 Eigen::Matrix<double, 3, 1> m_PosB;
60 Eigen::Matrix<double, 3, 1> m_ForceA;
61 Eigen::Matrix<double, 3, 1> m_ForceB;
70#ifdef FH_VISUALIZATION
Definition: CSimpleRope.h:25
void OdeFcn(const double T, const double *const X, double *const XDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
SimpleRope(std::string sSimObjectName, ISimObjectCreator *pCreator)
Constructor.
Class modelling a flexible bottom ring, inheriting from CRing in RMCable lib.
Definition: CCable.h:142