25 #include "worldsimconfig.h"
29 #include "motorcontrollers.h"
30 #include "sensorcontrollers.h"
31 #include "graphicalwobject.h"
60 static const real basex;
61 static const real basey;
62 static const real basez;
63 static const real basem;
66 static const real bodyr;
67 static const real bodyh;
68 static const real bodym;
71 static const real axledistance;
72 static const real trackradius;
73 static const real trackheight;
74 static const real trackm;
77 static const real treaddepth;
80 static const real wheelr;
81 static const real wheelh;
82 static const real wheelm;
85 static const real turreth;
86 static const real turretm;
89 static const real attachdevr;
90 static const real attachdevx;
91 static const real attachdevy;
92 static const real attachdevz;
93 static const real attachdevm;
109 return attachdevCtrl;
117 return groundBottomIR;
121 return groundAroundIR;
125 return tractionSensor;
131 virtual void preUpdate();
136 virtual void postUpdate();
138 void setProximityIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
140 void setGroundBottomIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
142 void setGroundAroundIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
151 void setDrawFrontMarker(
bool drawMarker);
160 bool getDrawFrontMarker()
const;
170 void enableAttachmentDevice(
bool enable);
177 bool attachmentDeviceEnabled()
const
179 return (attachdev != NULL);
224 return attachdevjoint;
233 void doKinematicSimulation(
bool k);
236 bool isKinematic()
const
238 return kinematicSimulation;
252 void setLeftWheelDesideredVelocity(real velocity);
263 void setRightWheelDesideredVelocity(real velocity);
267 virtual void changedMatrix();
273 QVector<PhyObject*> wheels;
275 QVector<wMatrix> wheelstm;
277 QVector<PhyJoint*> wheelJoints;
305 bool kinematicSimulation;
307 real leftWheelVelocity;
309 real rightWheelVelocity;
330 static const real basex;
331 static const real basey;
332 static const real basez;
333 static const real basem;
336 static const real bodyr;
337 static const real bodyh;
338 static const real bodym;
341 static const real axledistance;
342 static const real trackradius;
343 static const real trackheight;
344 static const real trackm;
347 static const real treaddepth;
350 static const real wheelr;
351 static const real wheelh;
352 static const real wheelm;
355 static const real attachringh;
356 static const real attachringm;
359 static const real ledsh;
360 static const real ledsradius;
361 static const real ledsm;
381 return groundBottomIR;
385 return groundAroundIR;
389 return tractionSensor;
395 virtual void preUpdate();
400 virtual void postUpdate();
402 void setProximityIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
404 void setGroundBottomIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
406 void setGroundAroundIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
415 void doKinematicSimulation(
bool k);
419 bool isKinematic()
const
421 return kinematicSimulation;
435 void setLeftWheelDesideredVelocity(real velocity);
446 void setRightWheelDesideredVelocity(real velocity);
450 virtual void changedMatrix();
456 QVector<PhyObject*> wheels;
458 QVector<wMatrix> wheelstm;
460 QVector<PhyJoint*> wheelJoints;
478 bool kinematicSimulation;
480 real leftWheelVelocity;
482 real rightWheelVelocity;