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 TestBondRequest {
    pub topic: ::std::string::String,
    pub id: ::std::string::String,
    pub delay_connect: u32,
    pub delay_death: u32,
    pub inhibit_death: bool,
    pub inhibit_death_message: bool,
    pub a: i64,
    pub b: i64,
}

impl Default for TestBondRequest {
    fn default() -> Self {
        TestBondRequest {
            topic: ::std::string::String::new(),
            id: ::std::string::String::new(),
            delay_connect: 0,
            delay_death: 0,
            inhibit_death: false,
            inhibit_death_message: false,
            a: 0,
            b: 0,
        }
    }
}

impl ros2_client::Message for TestBondRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct TestBondResponse {
    pub sum: i64,
}

impl Default for TestBondResponse {
    fn default() -> Self {
        TestBondResponse {
            sum: 0,
        }
    }
}

impl ros2_client::Message for TestBondResponse {}


pub struct TestBond;
impl ros2_client::Service for TestBond {
    type Request = TestBondRequest;
    type Response = TestBondResponse;

    fn request_type_name(&self) -> &str { "TestBondRequest" }
    fn response_type_name(&self) -> &str { "TestBondResponse" }
}