ros2_interfaces_rolling/map_msgs/srv/
get_point_map.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
use serde::{Deserialize, Serialize};


#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetPointMapReq {

}

impl Default for GetPointMapReq {
    fn default() -> Self {
        GetPointMapReq {

        }
    }
}

impl ros2_client::Message for GetPointMapReq {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetPointMapRes {
    pub map: crate::sensor_msgs::msg::PointCloud2,
}

impl Default for GetPointMapRes {
    fn default() -> Self {
        GetPointMapRes {
            map: crate::sensor_msgs::msg::PointCloud2::default(),
        }
    }
}

impl ros2_client::Message for GetPointMapRes {}


pub struct GetPointMap;
impl ros2_client::Service for GetPointMap {
    type Request = GetPointMapReq;
    type Response = GetPointMapRes;

    fn request_type_name(&self) -> &str { "GetPointMapReq" }
    fn response_type_name(&self) -> &str { "GetPointMapRes" }
}