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 MapSaveRequest {
    pub map_path: ::std::string::String,
}

impl Default for MapSaveRequest {
    fn default() -> Self {
        MapSaveRequest {
            map_path: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for MapSaveRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MapSaveResponse {
    pub success: bool,
    pub error_message: ::std::string::String,
}

impl Default for MapSaveResponse {
    fn default() -> Self {
        MapSaveResponse {
            success: false,
            error_message: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for MapSaveResponse {}


pub struct MapSave;
impl ros2_client::Service for MapSave {
    type Request = MapSaveRequest;
    type Response = MapSaveResponse;

    fn request_type_name(&self) -> &str { "MapSaveRequest" }
    fn response_type_name(&self) -> &str { "MapSaveResponse" }
}