ros2_interfaces_rolling/robot_localization/srv/
to_ll.rs

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