24 #ifndef __CAMERASENSOR_H
25 #define __CAMERASENSOR_H
76 virtual int get(
sensor* sensors,
int length)
const = 0;
82 virtual std::list<sensor>
getList()
const;
OsgHandle osgHandle
Definition: camerasensor.h:93
Data structure for accessing the ODE.
Definition: odehandle.h:44
Matrixd Matrix
Definition: osgforwarddecl.h:47
A Robot Camera.
Definition: camera.h:69
virtual void update()
we update the camera's visual appearance
Definition: camerasensor.cpp:76
double sensor
Definition: types.h:29
virtual ~CameraSensor()
Definition: camerasensor.cpp:47
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
Abstract class for sensors that can be plugged into a robot.
Definition: sensor.h:43
bool isInitDataSet
Definition: camerasensor.h:95
osg::Matrix pose
Definition: camerasensor.h:94
CameraSensor()
Creates a camera sensor.
Definition: camerasensor.cpp:30
virtual std::list< sensor > getList() const
this is implemented based on get(sensor*,int)
virtual bool sense(const GlobalData &globaldata)=0
overload this function an process the image (use camera->getImage())
virtual osg::Matrix getPose()
relative pose of the camera
Definition: camerasensor.cpp:58
virtual void intern_init()=0
overload this function to initialized you data structures.
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
Data structure holding all essential global information.
Definition: globaldata.h:57
Camera * camera
Definition: camerasensor.h:91
virtual void setPose(const osg::Matrix &pose)
changes the relative pose of the camera
Definition: camerasensor.cpp:52
virtual void setInitData(Camera *camera, const OdeHandle &odeHandle, const OsgHandle &osgHandle, const osg::Matrix &pose)
sets the initial data structures like the camera.
Definition: camerasensor.cpp:36
OdeHandle odeHandle
Definition: camerasensor.h:92
Class to connect a Camera as a sensor to a robot.
Definition: camerasensor.h:43
virtual void init(Primitive *own, Joint *joint=0)
this function initialized the camera (no need to overload) (Sensor interface)
Definition: camerasensor.cpp:69
virtual int getSensorNumber() const =0
overload this function and return the number of sensor values