ros2_interfaces_rolling/mapviz_interfaces/srv/
add_mapviz_display.rs1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct AddMapvizDisplayRequest {
6 pub name: ::std::string::String,
7 #[serde(rename = "type")] pub type_: ::std::string::String,
8 pub draw_order: i32,
9 pub visible: bool,
10 pub properties: Vec<crate::marti_common_msgs::msg::KeyValue>,
11}
12
13impl Default for AddMapvizDisplayRequest {
14 fn default() -> Self {
15 AddMapvizDisplayRequest {
16 name: ::std::string::String::new(),
17 type_: ::std::string::String::new(),
18 draw_order: 0,
19 visible: false,
20 properties: Vec::new(),
21 }
22 }
23}
24
25impl ros2_client::Message for AddMapvizDisplayRequest {}
26
27
28
29#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
30pub struct AddMapvizDisplayResponse {
31 pub success: bool,
32 pub message: ::std::string::String,
33}
34
35impl Default for AddMapvizDisplayResponse {
36 fn default() -> Self {
37 AddMapvizDisplayResponse {
38 success: false,
39 message: ::std::string::String::new(),
40 }
41 }
42}
43
44impl ros2_client::Message for AddMapvizDisplayResponse {}
45
46
47pub struct AddMapvizDisplay;
48impl ros2_client::Service for AddMapvizDisplay {
49 type Request = AddMapvizDisplayRequest;
50 type Response = AddMapvizDisplayResponse;
51
52 fn request_type_name(&self) -> &str { "AddMapvizDisplayRequest" }
53 fn response_type_name(&self) -> &str { "AddMapvizDisplayResponse" }
54}