robotics_signals/sensors/time_reference.rs
1use cdds_derive::*;
2use cyclonedds_rs::*;
3use serde_derive::{Deserialize, Serialize};
4
5use crate::standard::{Header, Timestamp};
6
7/// Simple temperature reading
8#[repr(C)]
9#[derive(Serialize, Deserialize, Topic)]
10pub struct TimeReference {
11 // local timestamp of the measurement
12 // frame_id is not used
13 pub header: Header,
14
15 /// Measurement of the Temperature in Degrees Celsius.
16 pub time_ref: Timestamp,
17
18 /// The source of this time
19 pub source: String,
20}