ros2_interfaces_rolling/visualization_msgs/msg/
interactive_marker_update.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InteractiveMarkerUpdate {
    pub server_id: ::std::string::String,
    pub seq_num: u64,
    #[serde(rename = "type")]    pub type_: u8,
    pub markers: Vec<crate::visualization_msgs::msg::InteractiveMarker>,
    pub poses: Vec<crate::visualization_msgs::msg::InteractiveMarkerPose>,
    pub erases: Vec<::std::string::String>,
}

impl InteractiveMarkerUpdate {
    pub const KEEP_ALIVE: u8 = 0;
    pub const UPDATE: u8 = 1;
}

impl Default for InteractiveMarkerUpdate {
    fn default() -> Self {
        InteractiveMarkerUpdate {
            server_id: ::std::string::String::new(),
            seq_num: 0,
            type_: 0,
            markers: Vec::new(),
            poses: Vec::new(),
            erases: Vec::new(),
        }
    }
}

impl ros2_client::Message for InteractiveMarkerUpdate {}