EduArt Sensor Ring Library 4.0.0
Loading...
Searching...
No Matches
Header.hpp
Go to the documentation of this file.
1// Copyright (c) 2026 EduArt Robotik GmbH
2
9
10#pragma once
11
12#include <chrono>
13
17#include "sensorring/platform/SensorringExport.hpp"
18
19namespace eduart {
20
21namespace sensorring {
22
23namespace measurement {
24
32struct SENSORRING_EXPORT Header {
33
36
38 unsigned int frame_id = 0;
39
41 std::chrono::system_clock::time_point timestamp;
42
45
47 math::Vector3 position = { 0.0, 0.0, 0.0 };
48
50 math::Vector3 orientation = { 0.0, 0.0, 0.0 };
51};
52
53} // namespace measurement
54
55} // namespace sensorring
56
57} // namespace eduart
Device identifier (type, name, index) for device registration.
Unified device state enum covering lifecycle and runtime health.
DeviceState
Unified lifecycle and runtime state of a device.
Definition DeviceState.hpp:30
@ Undefined
Initial state; device not yet configured.
Definition DeviceState.hpp:31
Collection of math functions.
Identifier for a device: type, human-readable name, and index.
Definition DeviceID.hpp:27
Vector of length 3.
Definition Vector3.hpp:27
Universal header attached to every sensor measurement.
Definition Header.hpp:32
unsigned int frame_id
Frame sequence counter.
Definition Header.hpp:38
device::DeviceState state
Device health state at the time of publication.
Definition Header.hpp:44
std::chrono::system_clock::time_point timestamp
Timestamp when the measurement was taken.
Definition Header.hpp:41
math::Vector3 position
Sensor pose translation.
Definition Header.hpp:47
math::Vector3 orientation
Sensor pose orientation (roll, pitch, yaw) in degrees.
Definition Header.hpp:50
device::DeviceID device_id
ID of the sensor that produced this measurement.
Definition Header.hpp:35