27#include "sfh/math/math.h"
28#include "sfh/sim/kinematics.h"
29#include "sfh/constants.h"
32namespace Visualization {
34typedef Eigen::Matrix<double, 3, 1> vec3;
35typedef Eigen::Matrix<int, 3, 1> vec3i;
36typedef Eigen::Quaternion<double> quat;
41 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
44 CVisualRB(std::string sSimObjectName, ISimObjectCreator* pCreator);
46 virtual void InitialConditionSetup(
const double T,
const double*
const X,
double*
const XDot, ISimObjectCreator* pCreator);
48 virtual void OdeFcn(
const double T,
const double*
const X,
double*
const XDot,
const bool bIsMajorTimeStep);
50#ifdef FH_VISUALIZATION
52 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const pCreator);
55 virtual void RenderUpdate(
const double T,
const double*
const X);
63 std::vector<int> m_DOFIndex;
70 ISignalPort* m_ForceIn;
73 double m_DOFDirections[6];
75 const double* PositionNED(
const double T,
const double*
const X);
77 const double* QuaternionNED(
const double T,
const double*
const X);
78 double m_ForceCoeffs[6];
80 const double* ForceOut(
const double T,
const double*
const X);
82#ifdef FH_VISUALIZATION
83 Ogre::SceneNode* m_RenderNode;
84 Ogre::SceneManager* m_SceneMgr;
Definition: CVisualRB.h:39
virtual void OdeFcn(const double T, const double *const X, double *const XDot, const bool bIsMajorTimeStep)
Calculate the state derivatives.