1#ifndef SwitchConsoleInput_h__
2#define SwitchConsoleInput_h__
10#ifdef FH_VISUALIZATION
12#pragma warning( disable : 4251 )
18#ifdef FH_VISUALIZATION
19 class SwitchConsoleInput:
public SimObject,OIS::JoyStickListener{
26 void OdeFcn(
const double T,
const double *
const X,
double *
const XDot,
const bool IsMajorTimeStep);
28 void InitialConditionSetup(
const double T,
const double *
const currentIC,
double*
const updatedIC, ISimObjectCreator*
const creator);
30 const double * WinchSpeed(
const double T,
const double*
const X);
31 const double * WinchCable(
const double T,
const double*
const X);
33 const double * AttachCable(
const double T,
const double*
const X);
35 const double * BaseRotationAngle(
const double T,
const double*
const X);
36 const double * BaseElevationAngle(
const double T,
const double*
const X);
37 const double * BaseElevationAngleRate(
const double T,
const double*
const X);
39 const double * JointAngle0(
const double T,
const double*
const X);
40 const double * JointAngleRate0(
const double T,
const double*
const X);
41 const double * ElementLength0(
const double T,
const double*
const X);
43 const double * JointAngle1(
const double T,
const double*
const X);
44 const double * JointAngleRate1(
const double T,
const double*
const X);
45 const double * ElementLength1(
const double T,
const double*
const X);
47#ifdef FH_VISUALIZATION
48 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
49 virtual void RenderUpdate(
const double T,
const double*
const X );
50 bool buttonPressed(
const OIS::JoyStickEvent &arg,
int button);
51 bool buttonReleased(
const OIS::JoyStickEvent &arg,
int button);
52 bool axisMoved(
const OIS::JoyStickEvent &arg,
int axis);
53 bool sliderMoved(
const OIS::JoyStickEvent &arg,
int index);
54 void ProcessJoyEvent(
const OIS::JoyStickEvent &arg);
69 double m_baseAngleSpeed;
72 int m_jointAngleState0;
73 int m_jointAngleState1;
75 int m_telescopeState0;
76 int m_telescopeState1;
78 double m_jointAngleSpeed0;
79 double m_jointAngleSpeed1;
81 double m_jointTelescopeSpeed0;
82 double m_jointTelescopeSpeed1;
84 double m_baseLimits[2];
86 double m_baseAngleLimits[2];
89 double m_angleLimits0[2];
90 double m_telescopeLimits0[2];
92 double m_angleLimits1[2];
93 double m_telescopeLimits1[2];
95 double m_winchSpeedOut;
Simple waypoint object.
Definition: CableAttach.h:16