ros2-interfaces-iron 0.0.2

Structs for Messages and Services listed by ROS Index for ROS2 Iron. Built around the `ros2-client` crate.
Documentation
use serde::{Deserialize, Serialize};


#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetGeoPathRequest {
    pub start: crate::geographic_msgs::msg::GeoPoint,
    pub goal: crate::geographic_msgs::msg::GeoPoint,
}

impl Default for GetGeoPathRequest {
    fn default() -> Self {
        GetGeoPathRequest {
            start: crate::geographic_msgs::msg::GeoPoint::default(),
            goal: crate::geographic_msgs::msg::GeoPoint::default(),
        }
    }
}

impl ros2_client::Message for GetGeoPathRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetGeoPathResponse {
    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 GetGeoPathResponse {
    fn default() -> Self {
        GetGeoPathResponse {
            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 GetGeoPathResponse {}


pub struct GetGeoPath;
impl ros2_client::Service for GetGeoPath {
    type Request = GetGeoPathRequest;
    type Response = GetGeoPathResponse;

    fn request_type_name(&self) -> &str { "GetGeoPathRequest" }
    fn response_type_name(&self) -> &str { "GetGeoPathResponse" }
}