Base class for modelling sensors with different implementations.
More...
#include <sensor_backend_base.h>
Base class for modelling sensors with different implementations.
◆ ~SensorBackendBase()
| virtual bitrl::sensors::backends::SensorBackendBase::~SensorBackendBase |
( |
| ) |
|
|
virtualdefault |
◆ SensorBackendBase()
| bitrl::sensors::backends::SensorBackendBase::SensorBackendBase |
( |
const std::string & |
backend_type | ) |
|
|
inlineprotected |
◆ backend_type_str()
| std::string bitrl::sensors::backends::SensorBackendBase::backend_type_str |
( |
| ) |
const |
|
inlinenoexcept |
@bief Return a string that specifies the type of the backend
- Returns
◆ load_from_json()
| virtual void bitrl::sensors::backends::SensorBackendBase::load_from_json |
( |
const std::string & |
filename | ) |
|
|
pure virtual |
Load robot and simulation parameters from a JSON file.
This function initializes the robot and its associated Chrono simulation objects based on the contents of the provided JSON configuration file.
Typical parameters may include:
- Physical dimensions
- Mass and inertia properties
- Wheel configuration
- Simulation settings
- Parameters
-
| filename | Path to the JSON configuration file. |
- Exceptions
-
| std::runtime_error | If the file cannot be read or parsed. |
◆ n_read_values()
| uint_t bitrl::sensors::backends::SensorBackendBase::n_read_values |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- The number of values the implementation returns
◆ read_values()
| virtual std::vector< real_t > bitrl::sensors::backends::SensorBackendBase::read_values |
( |
| ) |
|
|
pure virtual |
Read the sensor value.
- Returns
◆ sampling_period()
| real_t bitrl::sensors::backends::SensorBackendBase::sampling_period |
( |
| ) |
const |
|
inlinenoexcept |
Returns the sampling period of the sensor.
- Returns
◆ sensor_units()
| virtual std::string bitrl::sensors::backends::SensorBackendBase::sensor_units |
( |
| ) |
const |
|
inlinevirtual |
◆ set_sampling_period()
| void bitrl::sensors::backends::SensorBackendBase::set_sampling_period |
( |
real_t |
period | ) |
|
|
inline |
Set the sampling period of the backend.
- Parameters
-
The documentation for this class was generated from the following file: