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 WriteStateRequest {
    pub filename: ::std::string::String,
    pub include_unfinished_submaps: bool,
}

impl Default for WriteStateRequest {
    fn default() -> Self {
        WriteStateRequest {
            filename: ::std::string::String::new(),
            include_unfinished_submaps: false,
        }
    }
}

impl ros2_client::Message for WriteStateRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct WriteStateResponse {
    pub status: crate::cartographer_ros_msgs::msg::StatusResponse,
}

impl Default for WriteStateResponse {
    fn default() -> Self {
        WriteStateResponse {
            status: crate::cartographer_ros_msgs::msg::StatusResponse::default(),
        }
    }
}

impl ros2_client::Message for WriteStateResponse {}


pub struct WriteState;
impl ros2_client::Service for WriteState {
    type Request = WriteStateRequest;
    type Response = WriteStateResponse;

    fn request_type_name(&self) -> &str { "WriteStateRequest" }
    fn response_type_name(&self) -> &str { "WriteStateResponse" }
}