131#include <Eigen/Eigen>
133#include <CPrintDuringExec.h>
134#include <SimObject.h>
135#include "CEnvironment.h"
136#ifdef FH_VISUALIZATION
137 #include "sfh/ogre/C3DLine.h"
222 CCableRM(
const string& simObjectName, ISimObjectCreator*
const creator);
234 void OdeFcn(
const double T,
const double*
const X,
double*
const XDot,
const bool bIsMajorTimeStep);
236 void InitialConditionSetup(
const double T,
const double *
const currentIC,
double*
const updatedIC, ISimObjectCreator*
const creator);
237 void FinalSetup(
const double T,
const double *
const X, ISimObjectCreator*
const creator);
248 const double*
forceA(
const double T,
const double*
const X);
258 const double*
forceB(
const double T,
const double*
const X);
272 const double* OutPos(
const double T,
const double*
const X,
const int i);
275#ifdef FH_VISUALIZATION
276 void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
277 void RenderUpdate(
const double T,
const double*
const X);
282 typedef Eigen::Matrix<double,3,3> mat3;
283 typedef Eigen::Matrix<double,3,1> vec3;
285 void DistributeCatenary( Eigen::Matrix<double,3,1> P1, Eigen::Matrix<double,3,1> P2,
double L,
double* states,
int i1,
int i2, ISimObjectCreator* creator );
287 CPrintDuringExec* m_print;
291 double m_totalLength;
304 double m_bending_epsilon[3];
323 struct element {
int p;
int q;
int v;
int w; mat3 Mi; vec3 k; mat3 K; vec3 eDot;
double nuDot;};
330 ISignalPort* m_retractedLengthA;
331 ISignalPort* m_retractedLengthB;
332 ISignalPort* m_retractedSpeedA;
333 ISignalPort* m_retractedSpeedB;
335 int m_retractedNodesA;
336 int m_retractedNodesB;
342 ICommonComputation* m_calcDynamics;
343 Eigen::Matrix<double,Eigen::Dynamic,1> m_lambda;
344 Eigen::Matrix<double,Eigen::Dynamic,1> m_F_MDotV;
351 std::unique_ptr<int[]> m_addElement;
352 std::unique_ptr<double[]> m_addForce;
357 std::unique_ptr<int[]> m_OutEleIndex;
360#ifdef FH_VISUALIZATION
362 Ogre::SceneNode** m_ManualObjectNodes;
Definition: CEnvironment.h:10
const double * forceB(const double T, const double *const X)
Output port. Returns current force in endpoint B of cable.
void OdeFcn(const double T, const double *const X, double *const XDot, const bool bIsMajorTimeStep)
Computes object derivatives as a function of time, states and input ports.
const double * forceA(const double T, const double *const X)
Output port. Returns current force in endpoint A of cable.
CCableRM(const string &simObjectName, ISimObjectCreator *const creator)
Reads parameters, registers states, input/output ports and shared resources.
void calculations(const double T, const double *const X)
Performs a series of computations within the cable object.
Class modelling a flexible bottom ring, inheriting from CRing in RMCable lib.
Definition: CCable.h:142