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

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

impl ros2_client::Message for MapLoadRequest {}



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

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

impl ros2_client::Message for MapLoadResponse {}


pub struct MapLoad;
impl ros2_client::Service for MapLoad {
    type Request = MapLoadRequest;
    type Response = MapLoadResponse;

    fn request_type_name(&self) -> &str { "MapLoadRequest" }
    fn response_type_name(&self) -> &str { "MapLoadResponse" }
}