EduArt Sensor Ring Library 3.0.0
Loading...
Searching...
No Matches
SensorRing.hpp
Go to the documentation of this file.
1// Copyright (c) 2026 EduArt Robotik GmbH
2
9
10#pragma once
11
12#include <memory>
13#include <vector>
14
15#include "sensorring/platform/SensorringExport.hpp"
16
17#include "SensorBus.hpp"
18
19namespace eduart {
20
21namespace ring {
22
27class SENSORRING_EXPORT SensorRing {
28
29public:
34 SensorRing(std::vector<std::unique_ptr<SensorBus> > bus_vec);
35
38
43 std::vector<SensorBus*> getSensorBuses() const;
44
49 void setBitRateSwitching(bool brs_enable);
50
55 std::vector<device::IDevice*> getDevices() const;
56
57private:
59 std::vector<std::unique_ptr<SensorBus> > _bus_vec;
60};
61
62} // namespace ring
63
64} // namespace eduart
One communication bus owning multiple sensor boards.
void setBitRateSwitching(bool brs_enable)
Enable or disable bit rate switching on CAN bus interfaces.
SensorRing(std::vector< std::unique_ptr< SensorBus > > bus_vec)
Constructor.
std::vector< device::IDevice * > getDevices() const
Get all devices connected to the sensor ring.
std::vector< SensorBus * > getSensorBuses() const
Get all sensor bus interfaces managed by this ring.