75class CBox : 
public SimObject
 
   79   CBox(std::string sSimObjectName, ISimObjectCreator* pCreator);
 
   81#ifdef FH_VISUALIZATION 
   83   virtual void RenderInit(Ogre::Root* 
const ogreRoot, ISimObjectCreator* 
const creator);
 
   86   virtual void RenderUpdate(
const double T, 
const double* 
const X);
 
   88   void DrawBody(Ogre::SceneNode* renderNode, Ogre::SceneManager* sceneMgr); 
 
   92   virtual void OdeFcn(
const double dT, 
const double* 
const adX,
 
   93       double* 
const adXDot, 
const bool bIsMajorTimeStep);
 
   95   static Eigen::Vector4f getQuaternion(
double* eulerAnglesRad);
 
   97   static Eigen::Vector4f normalizeQuaternion(
const Eigen::Vector4f& q);
 
  100   virtual const double* Position(
const double dT, 
const double* 
const adX);
 
  101   virtual const double* Velocity(
const double dT, 
const double* 
const adX);
 
  102   virtual const double* Rotation(
const double dT, 
const double* 
const adX);
 
  112#ifdef FH_VISUALIZATION 
  114   Ogre::Entity* m_pRenderEntity; 
 
  115   Ogre::SceneNode* m_pRenderNode; 
 
  116   Ogre::SceneManager* m_pSceneMgr; 
 
int m_IStateVel
The index of the velocity state.
Definition: CBox.h:107
 
int m_IStateRot
The index of the rotation state.
Definition: CBox.h:108
 
int m_IStatePos
The index of the position state.
Definition: CBox.h:106
 
CBox(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
 
double m_dBoxDim[3]
The dimensions of the box.
Definition: CBox.h:109
 
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.