use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetGeoPathReq {
pub start: crate::geographic_msgs::msg::GeoPoint,
pub goal: crate::geographic_msgs::msg::GeoPoint,
}
impl Default for GetGeoPathReq {
fn default() -> Self {
GetGeoPathReq {
start: crate::geographic_msgs::msg::GeoPoint::default(),
goal: crate::geographic_msgs::msg::GeoPoint::default(),
}
}
}
impl ros2_client::Message for GetGeoPathReq {}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetGeoPathRes {
pub success: bool,
pub status: ::std::string::String,
pub plan: crate::geographic_msgs::msg::GeoPath,
pub network: crate::unique_identifier_msgs::msg::UUID,
pub start_seg: crate::unique_identifier_msgs::msg::UUID,
pub goal_seg: crate::unique_identifier_msgs::msg::UUID,
pub distance: f64,
}
impl Default for GetGeoPathRes {
fn default() -> Self {
GetGeoPathRes {
success: false,
status: ::std::string::String::new(),
plan: crate::geographic_msgs::msg::GeoPath::default(),
network: crate::unique_identifier_msgs::msg::UUID::default(),
start_seg: crate::unique_identifier_msgs::msg::UUID::default(),
goal_seg: crate::unique_identifier_msgs::msg::UUID::default(),
distance: 0.0,
}
}
}
impl ros2_client::Message for GetGeoPathRes {}
pub struct GetGeoPath;
impl ros2_client::Service for GetGeoPath {
type Request = GetGeoPathReq;
type Response = GetGeoPathRes;
fn request_type_name(&self) -> &str { "GetGeoPathReq" }
fn response_type_name(&self) -> &str { "GetGeoPathRes" }
}