Implements a single sensor.
More...
#include <behaviour_sensors.h>
|
virtual ret_t | bindTo (const ActuatorBase *ABase)=0 |
| Abstract function that should be made to bind the sensor to the ABase actuator.
|
|
virtual void | getLatestData ()=0 |
| Abstract function that should be made to retrieve the data from the bound actuator, and store it locally in the sensor.
|
|
Implements a single sensor.
This class is the base class of all sensors that are used in a SensorManager.
SensorBase::SensorBase |
( |
SensorManager * |
SMBase, |
|
|
const std::string & |
signalName |
|
) |
| |
Default constructor.
- Parameters
-
SMBase | A pointer to the sensor manager that the sensor belongs to. |
signalName | The unique human-friendly name of the actuator to bind the sensor to. Lookup of the actuator occurs using this name as the key. The name can be completely arbitrary, with the only restriction being that it can't be the null string, but recommended sample names include "OtherLayer/ActuatorName" and "Layer1/TargetX" , where OtherLayer and Layer1 are the names of the layers in which the ActuatorName and TargetX actuators are defined respectively. |
- See Also
- Default Actuator constructor
The documentation for this class was generated from the following files:
- /home/hafez/Codes/Mine/humanoid_op_ros/src/nimbro/behaviour/behaviour_control/include/behaviour_control/classes/behaviour_sensors.h
- /home/hafez/Codes/Mine/humanoid_op_ros/src/nimbro/behaviour/behaviour_control/src/behaviour_sensors.cpp