1#ifndef _CSHIPCONSOLE_H_
2#define _CSHIPCONSOLE_H_
11#ifdef FH_VISUALIZATION
13#pragma warning( disable : 4251 )
22 #ifdef FH_VISUALIZATION
23 class ShipConsoleInput:
public SimObject, OIS::JoyStickListener{
28 EIGEN_MAKE_ALIGNED_OPERATOR_NEW;
42 ShipConsoleInput(
const std::string simObjectName, ISimObjectCreator*
const creator);
44 void OdeFcn(
const double T,
const double *
const X,
double *
const XDot,
const bool IsMajorTimeStep){}
46 const double *RudderAngle(
const double T,
const double*
const X);
47 const double *EngineCommand(
const double T,
const double*
const X);
48 const double *EngineCommandPort(
const double T,
const double*
const X);
49 const double *EngineCommandStarboard(
const double T,
const double*
const X);
51 const double *EnginePower(
const double T,
const double*
const X);
52 const double *EnginePowerPort(
const double T,
const double*
const X);
53 const double *EnginePowerStarboard(
const double T,
const double*
const X);
55 const double *ThrusterPower(
const double T,
const double*
const X);
56 const double *Thruster0Power(
const double T,
const double*
const X);
57 const double *Thruster1Power(
const double T,
const double*
const X);
58 const double *Thruster2Power(
const double T,
const double*
const X);
60 const double *ThrusterCommand(
const double T,
const double*
const X);
61 const double *Thruster0Command(
const double T,
const double*
const X);
62 const double *Thruster1Command(
const double T,
const double*
const X);
63 const double *Thruster2Command(
const double T,
const double*
const X);
65#ifdef FH_VISUALIZATION
66 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
67 virtual void RenderUpdate(
const double T,
const double*
const X );
68 bool buttonPressed(
const OIS::JoyStickEvent &arg,
int button);
69 bool buttonReleased(
const OIS::JoyStickEvent &arg,
int button);
70 bool axisMoved(
const OIS::JoyStickEvent &arg,
int axis);
71 bool povMoved(
const OIS::JoyStickEvent &arg,
int index);
72 bool sliderMoved(
const OIS::JoyStickEvent &arg,
int index);
78#ifdef FH_VISUALIZATION
82 ISignalPort *m_inParentOrientation;
83 ISignalPort *m_inParentPosition;
87 size_t m_activeCamera;
88 Eigen::Vector3d m_cameraPositons[4];
89 double m_cameraRotZ[4];
90 double m_cameraRotY[4];
95 bool m_engineEnable[NUM_ENGINE];
96 double m_enginePower[NUM_ENGINE];
97 double m_engineCommand[NUM_ENGINE];
99 double m_enginePowerOut[NUM_ENGINE];
101 double m_thrusterPower[NUM_THRUSTER];
102 double m_thrusterPowerOut[NUM_THRUSTER];
103 bool m_thrusterEnable[NUM_THRUSTER];
104 double m_thrusterCommandOut[NUM_THRUSTER];
105 int m_thrusterInput[NUM_THRUSTER];
Simple waypoint object.
Definition: CableAttach.h:16