ros2_interfaces_iron/geographic_msgs/srv/
get_route_plan.rs1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct GetRoutePlanRequest {
6    pub network: crate::unique_identifier_msgs::msg::UUID,
7    pub start: crate::unique_identifier_msgs::msg::UUID,
8    pub goal: crate::unique_identifier_msgs::msg::UUID,
9}
10
11impl Default for GetRoutePlanRequest {
12    fn default() -> Self {
13        GetRoutePlanRequest {
14            network: crate::unique_identifier_msgs::msg::UUID::default(),
15            start: crate::unique_identifier_msgs::msg::UUID::default(),
16            goal: crate::unique_identifier_msgs::msg::UUID::default(),
17        }
18    }
19}
20
21impl ros2_client::Message for GetRoutePlanRequest {}
22
23
24
25#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
26pub struct GetRoutePlanResponse {
27    pub success: bool,
28    pub status: ::std::string::String,
29    pub plan: crate::geographic_msgs::msg::RoutePath,
30}
31
32impl Default for GetRoutePlanResponse {
33    fn default() -> Self {
34        GetRoutePlanResponse {
35            success: false,
36            status: ::std::string::String::new(),
37            plan: crate::geographic_msgs::msg::RoutePath::default(),
38        }
39    }
40}
41
42impl ros2_client::Message for GetRoutePlanResponse {}
43
44
45pub struct GetRoutePlan;
46impl ros2_client::Service for GetRoutePlan {
47    type Request = GetRoutePlanRequest;
48    type Response = GetRoutePlanResponse;
49
50    fn request_type_name(&self) -> &str { "GetRoutePlanRequest" }
51    fn response_type_name(&self) -> &str { "GetRoutePlanResponse" }
52}