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 CommandIntRequest {
    pub broadcast: bool,
    pub frame: u8,
    pub command: u16,
    pub current: u8,
    pub autocontinue: u8,
    pub param1: f32,
    pub param2: f32,
    pub param3: f32,
    pub param4: f32,
    pub x: i32,
    pub y: i32,
    pub z: f32,
}

impl Default for CommandIntRequest {
    fn default() -> Self {
        CommandIntRequest {
            broadcast: false,
            frame: 0,
            command: 0,
            current: 0,
            autocontinue: 0,
            param1: 0.0,
            param2: 0.0,
            param3: 0.0,
            param4: 0.0,
            x: 0,
            y: 0,
            z: 0.0,
        }
    }
}

impl ros2_client::Message for CommandIntRequest {}



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

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

impl ros2_client::Message for CommandIntResponse {}


pub struct CommandInt;
impl ros2_client::Service for CommandInt {
    type Request = CommandIntRequest;
    type Response = CommandIntResponse;

    fn request_type_name(&self) -> &str { "CommandIntRequest" }
    fn response_type_name(&self) -> &str { "CommandIntResponse" }
}