78#ifdef FH_VISUALIZATION
79 #include "sfh/ogre/C3DLine.h"
87 C6DofCable(
const string& simObjectName, ISimObjectCreator*
const creator);
89 void OdeFcn(
const double T,
const double*
const X,
double*
const XDot,
const bool bIsMajorTimeStep);
90 void InitialConditionSetup(
const double T,
const double *
const currentIC,
double*
const updatedIC, ISimObjectCreator*
const creator);
92 const double* forceA(
const double T,
const double*
const X);
93 const double* forceB(
const double T,
const double*
const X);
97 void calculations(
const double T,
const double*
const X);
99#ifdef FH_VISUALIZATION
100 void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
101 void RenderUpdate(
const double T,
const double*
const X);
102 Ogre::ColourValue tensionColor(
double N);
107 typedef Eigen::Matrix<double,3,3> mat3;
108 typedef Eigen::Matrix<double,3,1> vec3;
113 double m_totalLength;
120 double m_surfacePosZ;
131 struct element {vec3 k; vec3 LkXw; mat3 Mi; mat3 JMiJt;
int p;
int q;
int v;
int w;};
139 ICommonComputation* m_calcDynamics;
140 Eigen::Matrix<double,Eigen::Dynamic,1> m_lambda;
141 Eigen::Matrix<double,Eigen::Dynamic,1> m_F;
147#ifdef FH_VISUALIZATION
148 Ogre::ManualObject* m_ManualObject;
151 Ogre::SceneNode* m_ManualObjectNode;
Definition: C6DofCable.h:85
C6DofCable(const string &simObjectName, ISimObjectCreator *const creator)
reads parameters, registers states, output and intput ports.
Definition: C6DofCable.h:131