25 #include "worldsimconfig.h"
29 #include "motorcontrollers.h"
30 #include "sensorcontrollers.h"
48 static const real basex;
49 static const real basey;
50 static const real basez;
51 static const real basem;
54 static const real bodyr;
55 static const real bodyh;
56 static const real bodym;
59 static const real axledistance;
60 static const real trackradius;
61 static const real trackheight;
62 static const real trackm;
65 static const real treaddepth;
68 static const real wheelr;
69 static const real wheelh;
70 static const real wheelm;
73 static const real attachringh;
74 static const real attachringm;
77 static const real ledsh;
78 static const real ledsradius;
79 static const real ledsm;
99 return groundBottomIR;
103 return groundAroundIR;
107 return tractionSensor;
113 virtual void preUpdate();
118 virtual void postUpdate();
120 void setProximityIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
122 void setGroundBottomIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
124 void setGroundAroundIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
133 void doKinematicSimulation(
bool k);
137 bool isKinematic()
const
139 return kinematicSimulation;
153 void setLeftWheelDesideredVelocity(real velocity);
164 void setRightWheelDesideredVelocity(real velocity);
168 virtual void changedMatrix();
174 QVector<PhyObject*> wheels;
176 QVector<wMatrix> wheelstm;
178 QVector<PhyJoint*> wheelJoints;
196 bool kinematicSimulation;
198 real leftWheelVelocity;
200 real rightWheelVelocity;