ros2_interfaces_rolling/visualization_msgs/msg/
menu_entry.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
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MenuEntry {
    pub id: u32,
    pub parent_id: u32,
    pub title: ::std::string::String,
    pub command: ::std::string::String,
    pub command_type: u8,
}

impl MenuEntry {
    pub const FEEDBACK: u8 = 0;
    pub const ROSRUN: u8 = 1;
    pub const ROSLAUNCH: u8 = 2;
}

impl Default for MenuEntry {
    fn default() -> Self {
        MenuEntry {
            id: 0,
            parent_id: 0,
            title: ::std::string::String::new(),
            command: ::std::string::String::new(),
            command_type: 0,
        }
    }
}

impl ros2_client::Message for MenuEntry {}