ros2_interfaces_rolling/plotjuggler_msgs/msg/
data_point.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DataPoint {
    pub name_index: u16,
    pub stamp: f64,
    pub value: f64,
}

impl Default for DataPoint {
    fn default() -> Self {
        DataPoint {
            name_index: 0,
            stamp: 0.0,
            value: 0.0,
        }
    }
}

impl ros2_client::Message for DataPoint {}