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 GetMapRequest {

}

impl Default for GetMapRequest {
    fn default() -> Self {
        GetMapRequest {

        }
    }
}

impl ros2_client::Message for GetMapRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetMapResponse {
    pub map: crate::nav_msgs::msg::OccupancyGrid,
}

impl Default for GetMapResponse {
    fn default() -> Self {
        GetMapResponse {
            map: crate::nav_msgs::msg::OccupancyGrid::default(),
        }
    }
}

impl ros2_client::Message for GetMapResponse {}


pub struct GetMap;
impl ros2_client::Service for GetMap {
    type Request = GetMapRequest;
    type Response = GetMapResponse;

    fn request_type_name(&self) -> &str { "GetMapRequest" }
    fn response_type_name(&self) -> &str { "GetMapResponse" }
}