32 #include <selforg/inspectable.h>
173 static void mycallback(
void *data, dGeomID o1, dGeomID o2);
bool irSide
Definition: nimm2.h:58
bool visForce
Definition: nimm2.h:207
double cmass
Definition: nimm2.h:195
Data structure for accessing the ODE.
Definition: odehandle.h:44
double sumForce
Definition: nimm2.h:208
virtual double & getSumForce()
Definition: nimm2.h:154
double boxWidth
Definition: nimm2.h:63
virtual int getSensorsIntern(sensor *sensors, int sensornumber)
returns actual sensorvalues
Definition: nimm2.cpp:140
Matrixd Matrix
Definition: osgforwarddecl.h:47
Primitive * trans
Definition: nimm2.h:39
Robot that looks like a Nimm 2 Bonbon :-) 2 wheels and a cylinder like body.
Definition: nimm2.h:73
static void mycallback(void *data, dGeomID o1, dGeomID o2)
double length
Definition: nimm2.h:190
double sensor
Definition: types.h:29
double max_force
Definition: nimm2.h:201
double wheelSlip
Definition: nimm2.h:50
double wheeloffset
Definition: nimm2.h:203
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
double wheelthickness
Definition: nimm2.h:194
bool irFront
Definition: nimm2.h:56
virtual int getSegmentsPosition(std::vector< Position > &poslist)
returns a vector with the positions of all segments of the robot
Definition: nimm2.cpp:169
double cigarLength
Definition: nimm2.h:55
bool singleMotor
Definition: nimm2.h:60
virtual void create(const osg::Matrix &pose)
creates vehicle at desired pose
Definition: nimm2.cpp:197
double wheelOffset
offset of the wheel position in body length (not size) (<0 automatic)
Definition: nimm2.h:51
double width
Definition: nimm2.h:191
int sensorno
Definition: nimm2.h:197
virtual int getSensorNumberIntern()
returns number of sensors
Definition: nimm2.h:131
double contactPoints
Definition: nimm2.h:160
double wmass
Definition: nimm2.h:196
Primitive * bump
Definition: nimm2.h:40
struct lpzrobots::Bumper Bumper
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
bool visForce
Definition: nimm2.h:61
Nimm2(const OdeHandle &odehandle, const OsgHandle &osgHandle, const Nimm2Conf &conf, const std::string &name)
Definition: nimm2.cpp:42
Nimm2Conf conf
Inspectable interface.
Definition: nimm2.h:188
Data structure holding all essential global information.
Definition: globaldata.h:57
std::list< SensorAttachment > sensors
Definition: oderobot.h:269
int motorno
Definition: nimm2.h:198
double wheelSize
size of the wheels in body diameters
Definition: nimm2.h:49
virtual ~Nimm2()
Definition: nimm2.cpp:110
double irRange
Definition: nimm2.h:59
bool irBack
Definition: nimm2.h:57
virtual void update()
updates the OSG nodes of the vehicle
Definition: nimm2.cpp:180
OsgHandle osgHandle
Definition: oderobot.h:278
bool cigarMode
Definition: nimm2.h:54
bool created
Definition: nimm2.h:200
static Nimm2Conf getDefaultConf()
Definition: nimm2.h:79
virtual void setMotorsIntern(const double *motors, int motornumber)
sets actual motorcommands
Definition: nimm2.cpp:119
Abstract class for ODE robots.
Definition: oderobot.h:64
virtual int getMotorNumberIntern()
returns number of motors
Definition: nimm2.h:137
std::string wheelTexture
Definition: nimm2.h:52
bool boxMode
Definition: nimm2.h:62
double force
Definition: nimm2.h:45
virtual void destroy()
destroys vehicle and space
Definition: nimm2.cpp:392
virtual void placeIntern(const osg::Matrix &pose)
sets the pose of the vehicle
Definition: nimm2.cpp:155
Bumper bumper[2]
Definition: nimm2.h:205
double massFactor
Definition: nimm2.h:47
double height
Definition: nimm2.h:192
double size
Definition: nimm2.h:44
int number_bumpers
Definition: nimm2.h:204
double radius
Definition: nimm2.h:193
bool bumper
Definition: nimm2.h:53
double speed
Definition: nimm2.h:46
bool sphereWheels
Definition: nimm2.h:48
virtual void doInternalStuff(GlobalData &globalData)
this function is called in each timestep.
Definition: nimm2.cpp:186
std::list< MotorAttachment > motors
Definition: oderobot.h:270
virtual double & getContactPoints()
Definition: nimm2.h:156
Bumper()
Definition: nimm2.h:38