55 double size=1,
double force=3,
double speed=15,
double mass=1);
115 static void mycallback(
void *data, dGeomID o1, dGeomID o2);
double radius
Definition: truckmesh.h:122
bool created
Definition: truckmesh.h:134
double speed
Definition: truckmesh.h:129
Data structure for accessing the ODE.
Definition: odehandle.h:44
virtual void destroy()
destroys vehicle and space
Definition: truckmesh.cpp:268
virtual void placeIntern(const osg::Matrix &pose)
sets the pose of the vehicle
Definition: truckmesh.cpp:141
Matrixd Matrix
Definition: osgforwarddecl.h:47
static void mycallback(void *data, dGeomID o1, dGeomID o2)
additional things for collision handling can be done here
Definition: truckmesh.cpp:169
double wheelthickness
Definition: truckmesh.h:123
double sensor
Definition: types.h:29
virtual void create(const osg::Matrix &pose)
creates vehicle at desired pose
Definition: truckmesh.cpp:194
virtual int getSensorNumberIntern()
returns number of sensors
Definition: truckmesh.h:86
double width
Definition: truckmesh.h:118
virtual int getMotorNumberIntern()
returns number of motors
Definition: truckmesh.h:92
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
TruckMesh(const OdeHandle &odeHandle, const OsgHandle &osgHandle, const std::string &name, double size=1, double force=3, double speed=15, double mass=1)
constructor of TruckMesh robot
Definition: truckmesh.cpp:51
int motorno
Definition: truckmesh.h:127
double cmass
Definition: truckmesh.h:124
double middlelength
Definition: truckmesh.h:120
double middlewidth
Definition: truckmesh.h:119
int segmentsno
Definition: truckmesh.h:128
Data structure holding all essential global information.
Definition: globaldata.h:57
std::list< SensorAttachment > sensors
Definition: oderobot.h:269
virtual void update()
updates the OSG nodes of the vehicle
Definition: truckmesh.cpp:154
virtual void doInternalStuff(GlobalData &globalData)
this function is called in each timestep.
Definition: truckmesh.cpp:188
virtual int getSensorsIntern(sensor *sensors, int sensornumber)
returns actual sensorvalues
Definition: truckmesh.cpp:123
OsgHandle osgHandle
Definition: oderobot.h:278
OdeHandle odeHandle
Definition: oderobot.h:277
virtual ~TruckMesh()
Definition: truckmesh.h:58
double wmass
Definition: truckmesh.h:125
Abstract class for ODE robots.
Definition: oderobot.h:64
double height
Definition: truckmesh.h:121
double max_force
Definition: truckmesh.h:132
bool drawBoundings
Definition: truckmesh.h:131
int sensorno
Definition: truckmesh.h:126
Robot that looks like a Nimm 2 Bonbon :-) 4 wheels and a truck mesh like body.
Definition: truckmesh.h:43
std::list< MotorAttachment > motors
Definition: oderobot.h:270
double length
Definition: truckmesh.h:117
virtual void setMotorsIntern(const double *motors, int motornumber)
sets actual motorcommands
Definition: truckmesh.cpp:91