bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
bitrl::sensors::SensorManager Class Reference

Class for managing sensor updates. More...

#include <sensor_manager.h>

Inheritance diagram for bitrl::sensors::SensorManager:
Collaboration diagram for bitrl::sensors::SensorManager:

Public Member Functions

 SensorManager (uint_t n_sensors)
 
void add (std::shared_ptr< SensorBase > sensor)
 Add a new sensor to manage.
 
void update ()
 Update all the enabled sensors.
 
uint_t n_sensors () const
 

Detailed Description

Class for managing sensor updates.

Constructor & Destructor Documentation

◆ SensorManager()

bitrl::sensors::SensorManager::SensorManager ( uint_t  n_sensors)
explicit

Member Function Documentation

◆ add()

void bitrl::sensors::SensorManager::add ( std::shared_ptr< SensorBase sensor)

Add a new sensor to manage.

Parameters
sensor

◆ n_sensors()

uint_t bitrl::sensors::SensorManager::n_sensors ( ) const
inline
Returns
The number of sensors the manager handles

◆ update()

void bitrl::sensors::SensorManager::update ( )

Update all the enabled sensors.


The documentation for this class was generated from the following files: