ros2_interfaces_rolling/map_msgs/srv/
get_point_map.rs

1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct GetPointMapRequest {
6
7}
8
9impl Default for GetPointMapRequest {
10    fn default() -> Self {
11        GetPointMapRequest {
12
13        }
14    }
15}
16
17impl ros2_client::Message for GetPointMapRequest {}
18
19
20
21#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
22pub struct GetPointMapResponse {
23    pub map: crate::sensor_msgs::msg::PointCloud2,
24}
25
26impl Default for GetPointMapResponse {
27    fn default() -> Self {
28        GetPointMapResponse {
29            map: crate::sensor_msgs::msg::PointCloud2::default(),
30        }
31    }
32}
33
34impl ros2_client::Message for GetPointMapResponse {}
35
36
37pub struct GetPointMap;
38impl ros2_client::Service for GetPointMap {
39    type Request = GetPointMapRequest;
40    type Response = GetPointMapResponse;
41
42    fn request_type_name(&self) -> &str { "GetPointMapRequest" }
43    fn response_type_name(&self) -> &str { "GetPointMapResponse" }
44}