1#ifndef RANGE_SENSOR_BACKEND_BASE_H
2#define RANGE_SENSOR_BACKEND_BASE_H
11namespace sensors::backends
64 std::string sensor_units_{
"METERS"};
Base class for modelling range sensors.
Definition range_sensor_backend_base.h:19
virtual std::string sensor_units() const
Definition range_sensor_backend_base.h:47
real_t max_distance() const noexcept
Definition range_sensor_backend_base.h:24
void set_sensor_units(const std::string &units)
Set the sensor units.
Definition range_sensor_backend_base.h:53
RangeSensorBackendBase(const std::string &backend_type)
Constructor.
Definition range_sensor_backend_base.h:75
void set_min_distance(real_t min_distance) noexcept
Set the maximum distance the range sensor can read.
Definition range_sensor_backend_base.h:41
real_t min_distance() const noexcept
Definition range_sensor_backend_base.h:35
void set_max_distance(real_t max_distance) noexcept
Set the maximum distance the range sensor can read.
Definition range_sensor_backend_base.h:30
Base class for modelling sensors with different implementations.
Definition sensor_backend_base.h:22
Definition bitrl_consts.h:14
double real_t
real_t
Definition bitrl_types.h:23