#include <raysensor.h>
Inheritance diagram for RaySensor:
This are sensors which are based on distance measurements using the ODE geom class Ray. The sensor value is obtained by collisions. However of no collision is detected the sensor needs to ajust its output as well. Therefore a reset function is provided.
Definition at line 61 of file raysensor.h.
Public Types | |
enum | rayDrawMode { drawNothing, drawRay, drawSensor, drawAll } |
Public Member Functions | |
RaySensor () | |
virtual | ~RaySensor () |
virtual void | init (const OdeHandle &odeHandle, const OsgHandle &osgHandle, Primitive *body, const osg::Matrix pose, double range, rayDrawMode drawMode=drawSensor)=0 |
providing essential information | |
virtual void | reset ()=0 |
used for reseting the sensor value to a value of maximal distance. | |
virtual bool | sense (dGeomID object)=0 |
performs sense action by checking collision with the given object | |
virtual double | get ()=0 |
returns the sensor value (usually in the range [-1,1] ) | |
virtual void | update ()=0 |
updates the position of the osg nodes | |
virtual dGeomID | getGeomID ()=0 |
returns the geomID of the ray geom (used for optimisation) |
|
Definition at line 63 of file raysensor.h. |
|
Definition at line 65 of file raysensor.h. |
|
Definition at line 66 of file raysensor.h. |
|
returns the sensor value (usually in the range [-1,1] )
Implemented in IRSensor. |
|
returns the geomID of the ray geom (used for optimisation)
Implemented in IRSensor. |
|
providing essential information
|
|
used for reseting the sensor value to a value of maximal distance.
Implemented in IRSensor. |
|
performs sense action by checking collision with the given object
Implemented in IRSensor. |
|
updates the position of the osg nodes
Implemented in IRSensor. |