27#include "sfh/math/math.h"
28#include "sfh/sim/kinematics.h"
29#include "sfh/constants.h"
31#ifdef FH_VISUALIZATION
32#include "sfh/ogre/C3DLine.h"
35namespace Visualization {
37typedef Eigen::Matrix<double, 3, 1> vec3;
38typedef Eigen::Matrix<int, 3, 1> vec3i;
39typedef Eigen::Matrix<int, 2, 1> vec2i;
40typedef Eigen::Quaternion<double> quat;
45 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
48 CVisualDB(std::string sSimObjectName, ISimObjectCreator* pCreator);
51 virtual void OdeFcn(
const double dT,
const double*
const adX,
double*
const adXDot,
const bool bIsMajorTimeStep) {};
53#ifdef FH_VISUALIZATION
55 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const pCreator);
58 virtual void RenderUpdate(
const double dT,
const double*
const adX);
64 std::vector<vec3> m_NodePos;
67 ISignalPort** m_InPos;
69#ifdef FH_VISUALIZATION
70 Ogre::SceneNode* m_RenderNode;
71 Ogre::SceneManager* m_SceneMgr;
72 Ogre::ManualObject* m_Manual;
77 std::vector<vec2i> m_LineIndex;
78 std::vector<vec3i> m_TriIndex;
Definition: CVisualDB.h:43
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculate the state derivatives.
Definition: CVisualDB.h:51