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 BasicSrvRequest {
    pub req: ::std::string::String,
}

impl Default for BasicSrvRequest {
    fn default() -> Self {
        BasicSrvRequest {
            req: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for BasicSrvRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct BasicSrvResponse {
    pub resp: ::std::string::String,
}

impl Default for BasicSrvResponse {
    fn default() -> Self {
        BasicSrvResponse {
            resp: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for BasicSrvResponse {}


pub struct BasicSrv;
impl ros2_client::Service for BasicSrv {
    type Request = BasicSrvRequest;
    type Response = BasicSrvResponse;

    fn request_type_name(&self) -> &str { "BasicSrvRequest" }
    fn response_type_name(&self) -> &str { "BasicSrvResponse" }
}