ros2_interfaces_rolling/mapviz_interfaces/srv/
add_mapviz_display.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
use serde::{Deserialize, Serialize};


#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AddMapvizDisplayReq {
    pub name: ::std::string::String,
    #[serde(rename = "type")]    pub type_: ::std::string::String,
    pub draw_order: i32,
    pub visible: bool,
    pub properties: Vec<crate::marti_common_msgs::msg::KeyValue>,
}

impl Default for AddMapvizDisplayReq {
    fn default() -> Self {
        AddMapvizDisplayReq {
            name: ::std::string::String::new(),
            type_: ::std::string::String::new(),
            draw_order: 0,
            visible: false,
            properties: Vec::new(),
        }
    }
}

impl ros2_client::Message for AddMapvizDisplayReq {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AddMapvizDisplayRes {
    pub success: bool,
    pub message: ::std::string::String,
}

impl Default for AddMapvizDisplayRes {
    fn default() -> Self {
        AddMapvizDisplayRes {
            success: false,
            message: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for AddMapvizDisplayRes {}


pub struct AddMapvizDisplay;
impl ros2_client::Service for AddMapvizDisplay {
    type Request = AddMapvizDisplayReq;
    type Response = AddMapvizDisplayRes;

    fn request_type_name(&self) -> &str { "AddMapvizDisplayReq" }
    fn response_type_name(&self) -> &str { "AddMapvizDisplayRes" }
}