1
//! Light Sensor class.
5
* Describes general light sensor properties.
11
#ifndef LIGHTSENSOR_H_
12
#define LIGHTSENSOR_H_
14
#include "cameraSensorBase.h"
20
class LightSensor: public CameraSensorBase
25
* \brief Initializes the sensor
27
* \param gm GameManager, which handles the corresponding robot
28
* \param attachedTo Body, where the sensor is attached to
29
* \param pos Local position of the sensor
30
* \param orient Local orientation of the sensor
31
* \param flareAngle flare angle of the sensor
32
* \param name name of the sensor
36
LightSensor(dtCore::RefPtr<BodyBase> attachedTo, osg::Vec3 pos, osg::Vec3 orient, float flareAngle, const std::string &name="LightSensor");
37
virtual ~LightSensor();
38
//const std::string TakeScreenShot(const std::string& namePrefix);
41
* \brief Calculates a new sensor value
43
* It will be called every time step if it is an active sensor, otherwise it needs to be called by the controller
46
virtual void getNewSensorValue();
48
//! sends command to retrieve data
49
void evaluate(ParameterReturnValue srv);
52
virtual void getSensorValue(std::ostream& theStream) const;
61
#endif /*LIGHTSENSOR_H_*/