EduArt Sensor Ring Library 4.0.0
Loading...
Searching...
No Matches
DeviceParams.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 <unordered_map>
14
16#include "sensorring/platform/SensorringExport.hpp"
17
18namespace eduart {
19
20namespace sensorring {
21
22namespace device {
23
28struct SENSORRING_EXPORT DeviceParams {
29 virtual ~DeviceParams() = default;
30
33
35 bool enable = true;
36
39 double max_rate_hz = 15.0;
40};
41
43using DeviceParamsMap = std::unordered_map<DeviceType, std::shared_ptr<DeviceParams> >;
44
45} // namespace device
46
47} // namespace sensorring
48
49} // namespace eduart
Device identifier (type, name, index) for device registration.
std::unordered_map< DeviceType, std::shared_ptr< DeviceParams > > DeviceParamsMap
Container for device parameters keyed by device type.
Definition DeviceParams.hpp:43
Identifier for a device: type, human-readable name, and index.
Definition DeviceID.hpp:27
Base parameter structure of a device. A device is one sensor or actuator on a sensor board.
Definition DeviceParams.hpp:28
double max_rate_hz
Definition DeviceParams.hpp:39
bool enable
Whether the device is enabled at creation.
Definition DeviceParams.hpp:35
DeviceID id
Device identifier (type, name, index).
Definition DeviceParams.hpp:32