ros2_interfaces_jazzy/map_msgs/srv/
get_point_map_roi.rs1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct GetPointMapROIRequest {
6 pub x: f64,
7 pub y: f64,
8 pub z: f64,
9 pub r: f64,
10 pub l_x: f64,
11 pub l_y: f64,
12 pub l_z: f64,
13}
14
15impl Default for GetPointMapROIRequest {
16 fn default() -> Self {
17 GetPointMapROIRequest {
18 x: 0.0,
19 y: 0.0,
20 z: 0.0,
21 r: 0.0,
22 l_x: 0.0,
23 l_y: 0.0,
24 l_z: 0.0,
25 }
26 }
27}
28
29impl ros2_client::Message for GetPointMapROIRequest {}
30
31
32
33#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
34pub struct GetPointMapROIResponse {
35 pub sub_map: crate::sensor_msgs::msg::PointCloud2,
36}
37
38impl Default for GetPointMapROIResponse {
39 fn default() -> Self {
40 GetPointMapROIResponse {
41 sub_map: crate::sensor_msgs::msg::PointCloud2::default(),
42 }
43 }
44}
45
46impl ros2_client::Message for GetPointMapROIResponse {}
47
48
49pub struct GetPointMapROI;
50impl ros2_client::Service for GetPointMapROI {
51 type Request = GetPointMapROIRequest;
52 type Response = GetPointMapROIResponse;
53
54 fn request_type_name(&self) -> &str { "GetPointMapROIRequest" }
55 fn response_type_name(&self) -> &str { "GetPointMapROIResponse" }
56}