1#ifndef ULTRASONIC_SENSOR_H
2#define ULTRASONIC_SENSOR_H
33 explicit UltrasonicSensor(std::shared_ptr<bitrl::sensors::backends::RangeSensorBackendBase> backend,
64 std::shared_ptr<bitrl::sensors::backends::RangeSensorBackendBase> backend_;
69 const std::string name)
Class for modelling sensors. The interface follows closely the interface exposed by Webots see: https...
Definition sensor_base.h:28
Class for modelling ultrasonic sensors.
Definition ultrasonic_sensor.h:21
UltrasonicSensor(std::shared_ptr< bitrl::sensors::backends::RangeSensorBackendBase > backend, const std::string name=bitrl::consts::INVALID_STR)
Constructor.
Definition ultrasonic_sensor.h:68
virtual std::string backend_type_str() const
Definition ultrasonic_sensor.h:76
virtual const std::vector< real_t > & read_values()
Reads the sensor values and updates the values held internally.
Definition ultrasonic_sensor.cpp:24
virtual void init()
Initialize the sensor. Set the is is_enabled_ flag to true. and performs any other initializations re...
Definition ultrasonic_sensor.cpp:17
static const std::string SENSOR_TYPE
The type of the sensor.
Definition ultrasonic_sensor.h:27
virtual std::string sensor_units() const
Definition ultrasonic_sensor.h:79
const std::string INVALID_STR
Invalid string.
Definition bitrl_consts.h:26
Definition bitrl_consts.h:14