bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
sensor_manager.h
Go to the documentation of this file.
1#ifndef SENSOR_MANAGER_H
2#define SENSOR_MANAGER_H
3
4#include "bitrl/bitrl_types.h"
6#include <memory>
7#include <vector>
8#include <boost/noncopyable.hpp>
9
10namespace bitrl
11{
12namespace sensors
13{
14
21class SensorManager: private boost::noncopyable
22{
23public:
24
26
31 void add(std::shared_ptr<SensorBase> sensor);
32
36 void update();
37
41 uint_t n_sensors() const { return sensors_.size(); }
42
43private:
44
45 uint_t n_sensors_;
46
50 std::vector< std::shared_ptr<SensorBase>> sensors_;
51
52};
53}
54}
55
56
57#endif //SENSOR_MANAGER_H
Class for managing sensor updates.
Definition sensor_manager.h:22
uint_t n_sensors() const
Definition sensor_manager.h:41
void add(std::shared_ptr< SensorBase > sensor)
Add a new sensor to manage.
Definition sensor_manager.cpp:19
void update()
Update all the enabled sensors.
Definition sensor_manager.cpp:24
Definition bitrl_consts.h:14
std::size_t uint_t
uint_t
Definition bitrl_types.h:43