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);
189 void resetAttachmentDevice();
233 return attachdevjoint;
242 void doKinematicSimulation(
bool k);
245 bool isKinematic()
const
247 return kinematicSimulation;
261 void setLeftWheelDesideredVelocity(real velocity);
272 void setRightWheelDesideredVelocity(real velocity);
276 virtual void changedMatrix();
282 QVector<PhyObject*> wheels;
284 QVector<wMatrix> wheelstm;
286 QVector<PhyJoint*> wheelJoints;
314 bool kinematicSimulation;
316 real leftWheelVelocity;
318 real rightWheelVelocity;
339 static const real basex;
340 static const real basey;
341 static const real basez;
342 static const real basem;
345 static const real bodyr;
346 static const real bodyh;
347 static const real bodym;
350 static const real axledistance;
351 static const real trackradius;
352 static const real trackheight;
353 static const real trackm;
356 static const real treaddepth;
359 static const real wheelr;
360 static const real wheelh;
361 static const real wheelm;
364 static const real attachringh;
365 static const real attachringm;
368 static const real ledsh;
369 static const real ledsradius;
370 static const real ledsm;
390 return groundBottomIR;
394 return groundAroundIR;
398 return tractionSensor;
404 virtual void preUpdate();
409 virtual void postUpdate();
411 void setProximityIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
413 void setGroundBottomIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
415 void setGroundAroundIRSensorsGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
424 void doKinematicSimulation(
bool k);
428 bool isKinematic()
const
430 return kinematicSimulation;
444 void setLeftWheelDesideredVelocity(real velocity);
455 void setRightWheelDesideredVelocity(real velocity);
459 virtual void changedMatrix();
465 QVector<PhyObject*> wheels;
467 QVector<wMatrix> wheelstm;
469 QVector<PhyJoint*> wheelJoints;
487 bool kinematicSimulation;
489 real leftWheelVelocity;
491 real rightWheelVelocity;