27 #include <ode-dbl/common.h>
28 #include <ode-dbl/ode.h>
31 #include <selforg/position.h>
78 int get(
sensor* sensors,
int length)
const override;
80 std::list<sensor>
getList()
const override;
84 virtual void update()
override;
double len
Definition: raysensor.h:104
virtual void setRange(double range)
Set maximum range of ray.
Definition: raysensor.cpp:114
Matrixd Matrix
Definition: osgforwarddecl.h:47
Definition: raysensor.h:56
Definition: raysensor.h:56
rayDrawMode
Definition: raysensor.h:56
double sensor
Definition: types.h:29
void init(Primitive *own, Joint *joint=0) override
initialises sensor with a body of robot and optionally with a joint.
Definition: raysensor.cpp:87
double lastlen
Definition: raysensor.h:105
virtual void update() override
to update any visual appearance
Definition: raysensor.cpp:145
Ray * ray
Definition: raysensor.h:111
double detection
Definition: raysensor.h:106
void defaultInit()
Definition: raysensor.cpp:39
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
void setLength(double len, long int time)
Set length of ray (needed for callback)
Definition: raysensor.cpp:110
Data structure holding all essential global information.
Definition: globaldata.h:57
bool sense(const GlobalData &globaldata) override
performs sense action
Definition: raysensor.cpp:125
Ray primitive The actual visual representation can have different length than the ray object...
Definition: primitive.h:347
rayDrawMode drawMode
Definition: raysensor.h:102
osg::Matrix pose
Definition: physicalsensor.h:64
void setPose(const osg::Matrix &pose) override
changes the relative pose of the sensor
Definition: raysensor.cpp:79
double size
Definition: raysensor.h:100
long lasttimeasked
Definition: raysensor.h:107
virtual int getSensorNumber() const override
returns the number of sensors values produced by this sensor
Definition: raysensor.cpp:75
Abstract class for sensors that have a physical representation.
Definition: physicalsensor.h:35
double range
Definition: raysensor.h:101
Transform * transform
Definition: raysensor.h:110
Graphical cylinder.
Definition: osgprimitive.h:215
Definition: raysensor.h:56
virtual RaySensor * clone() const
Create a copy of this without initialization.
Definition: raysensor.cpp:69
std::list< sensor > getList() const override
returns a list of sensor values (usually in the range [-1,1] ) This function should be overloaded...
Definition: raysensor.cpp:140
bool initialised
Definition: raysensor.h:112
Class for Ray-based sensors.
Definition: raysensor.h:54
~RaySensor()
Definition: raysensor.cpp:62
Definition: raysensor.h:56
RaySensor()
Definition: raysensor.cpp:52
OSGCylinder * sensorBody
Definition: raysensor.h:109
virtual void setDrawMode(rayDrawMode drawMode)
Set draw mode of ray.
Definition: raysensor.cpp:119