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 StreamRateRequest {
    pub stream_id: u8,
    pub message_rate: u16,
    pub on_off: bool,
}

impl StreamRateRequest {
    pub const STREAM_ALL: u8 = 0;
    pub const STREAM_RAW_SENSORS: u8 = 1;
    pub const STREAM_EXTENDED_STATUS: u8 = 2;
    pub const STREAM_RC_CHANNELS: u8 = 3;
    pub const STREAM_RAW_CONTROLLER: u8 = 4;
    pub const STREAM_POSITION: u8 = 6;
    pub const STREAM_EXTRA1: u8 = 10;
    pub const STREAM_EXTRA2: u8 = 11;
    pub const STREAM_EXTRA3: u8 = 12;
}

impl Default for StreamRateRequest {
    fn default() -> Self {
        StreamRateRequest {
            stream_id: 0,
            message_rate: 0,
            on_off: false,
        }
    }
}

impl ros2_client::Message for StreamRateRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct StreamRateResponse {

}

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

        }
    }
}

impl ros2_client::Message for StreamRateResponse {}


pub struct StreamRate;
impl ros2_client::Service for StreamRate {
    type Request = StreamRateRequest;
    type Response = StreamRateResponse;

    fn request_type_name(&self) -> &str { "StreamRateRequest" }
    fn response_type_name(&self) -> &str { "StreamRateResponse" }
}