ros2_interfaces_jazzy/marti_nav_msgs/srv/
get_route.rs1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct GetRouteRequest {
6 pub guid: ::std::string::String,
7}
8
9impl Default for GetRouteRequest {
10 fn default() -> Self {
11 GetRouteRequest {
12 guid: ::std::string::String::new(),
13 }
14 }
15}
16
17impl ros2_client::Message for GetRouteRequest {}
18
19
20
21#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
22pub struct GetRouteResponse {
23 pub route: crate::marti_nav_msgs::msg::Route,
24 pub success: bool,
25 pub message: ::std::string::String,
26}
27
28impl Default for GetRouteResponse {
29 fn default() -> Self {
30 GetRouteResponse {
31 route: crate::marti_nav_msgs::msg::Route::default(),
32 success: false,
33 message: ::std::string::String::new(),
34 }
35 }
36}
37
38impl ros2_client::Message for GetRouteResponse {}
39
40
41pub struct GetRoute;
42impl ros2_client::Service for GetRoute {
43 type Request = GetRouteRequest;
44 type Response = GetRouteResponse;
45
46 fn request_type_name(&self) -> &str { "GetRouteRequest" }
47 fn response_type_name(&self) -> &str { "GetRouteResponse" }
48}