24 #ifndef __TWO_WHEELED__
25 #define __TWO_WHEELED__
27 #include <ode_robots/nimm2.h>
28 #include <ode_robots/camera.h>
29 #include <ode_robots/camerasensor.h>
30 #include <ode_robots/imageprocessors.h>
31 #include <ode_robots/sensor.h>
80 conf.
camPos = osg::Matrix::rotate(M_PI/2,0,0,1)
81 * osg::Matrix::translate(-0.20,0,0.40);
virtual int getSensorsIntern(double *sensors, int sensornumber)
returns actual sensorvalues
Definition: twowheeled.cpp:74
virtual void update()
updates the OSG nodes of the vehicle
Definition: twowheeled.cpp:82
Data structure for accessing the ODE.
Definition: odehandle.h:44
Definition: imageprocessors.h:124
std::list< Sensor * > sensors
list of sensors that are mounted at the robot. (e.g. AxisOrientationSensor)
Definition: twowheeled.h:44
virtual ~TwoWheeled()
Definition: twowheeled.cpp:58
Matrixd Matrix
Definition: osgforwarddecl.h:47
A Robot Camera.
Definition: camera.h:69
TwoWheeled(const OdeHandle &odeHandle, const OsgHandle &osgHandle, TwoWheeledConf conf, const std::string &name)
constructor of twowheeled robot
Definition: twowheeled.cpp:35
Robot that looks like a Nimm 2 Bonbon :-) 2 wheels and a cylinder like body.
Definition: nimm2.h:73
converts the image to a HSV coded image
Definition: imageprocessors.h:123
filters for a specific color (requires HSV, so use HSVImgProc before)
Definition: imageprocessors.h:199
Definition: imageprocessors.h:124
int width
horizontal resolution (power of 2)
Definition: camera.h:51
void addSensor(Sensor *s)
adds a sensor to the list of sensors
Definition: twowheeled.h:46
virtual void destroy()
destroys vehicle and space
Definition: twowheeled.cpp:110
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
CameraSensor * camSensor
camera sensor (converts image to sensor data) (if NULL then DirectCameraSensor() is used) ...
Definition: twowheeled.h:42
virtual void sense(GlobalData &globalData)
this function is called each controlstep before control.
Definition: twowheeled.cpp:89
Abstract class for sensors that can be plugged into a robot.
Definition: sensor.h:43
CameraSensor * camsensor
Definition: twowheeled.h:108
Definition: twowheeled.h:35
float camSize
size of the physical camera object
Definition: camera.h:57
creates a lightsensitive sensorline.
Definition: imageprocessors.h:246
Data structure holding all essential global information.
Definition: globaldata.h:57
float fov
field of view in degree (opening angle of lenses)
Definition: camera.h:53
virtual void create(const osg::Matrix &pose)
creates vehicle at desired pose
Definition: twowheeled.cpp:99
std::list< SensorAttachment > sensors
Definition: oderobot.h:269
Robot is based on nimm2 with a camera installed.
Definition: twowheeled.h:52
static TwoWheeledConf getDefaultConf()
Definition: twowheeled.h:65
Camera * cam
Definition: twowheeled.h:109
virtual int getSensorNumberIntern()
returns number of sensors
Definition: twowheeled.cpp:66
static CameraConf getDefaultConf()
Definition: camera.h:102
OsgHandle osgHandle
Definition: oderobot.h:278
OdeHandle odeHandle
Definition: oderobot.h:277
Class to connect a Camera as a sensor to a robot.
Definition: camerasensor.h:43
bool useCamera
whether to use the camera
Definition: twowheeled.h:38
static Nimm2Conf getDefaultConf()
Definition: nimm2.h:79
ImageProcessors processors
list of image processors that filter the raw image
Definition: camera.h:61
CameraConf camcfg
camera config. Allows to change the image processing
Definition: twowheeled.h:37
TwoWheeledConf conf
Definition: twowheeled.h:107
osg::Matrix camPos
relative pose of the camera
Definition: twowheeled.h:39
Nimm2Conf n2cfg
configuration for underlying nimm2 robot
Definition: twowheeled.h:36
int height
vertical resolution (power of 2)
Definition: camera.h:52