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 CommandBoolRequest {
    pub value: bool,
}

impl Default for CommandBoolRequest {
    fn default() -> Self {
        CommandBoolRequest {
            value: false,
        }
    }
}

impl ros2_client::Message for CommandBoolRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CommandBoolResponse {
    pub success: bool,
    pub result: u8,
}

impl Default for CommandBoolResponse {
    fn default() -> Self {
        CommandBoolResponse {
            success: false,
            result: 0,
        }
    }
}

impl ros2_client::Message for CommandBoolResponse {}


pub struct CommandBool;
impl ros2_client::Service for CommandBool {
    type Request = CommandBoolRequest;
    type Response = CommandBoolResponse;

    fn request_type_name(&self) -> &str { "CommandBoolRequest" }
    fn response_type_name(&self) -> &str { "CommandBoolResponse" }
}