ros2-interfaces-rolling 0.0.2

Structs for Messages and Services listed by ROS Index for ROS2 Rolling. Built around the `ros2-client` crate.
Documentation
use serde::{Deserialize, Serialize};


#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct COTargetDoubleRequest {
    pub target: f64,
}

impl Default for COTargetDoubleRequest {
    fn default() -> Self {
        COTargetDoubleRequest {
            target: 0.0,
        }
    }
}

impl ros2_client::Message for COTargetDoubleRequest {}



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

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

impl ros2_client::Message for COTargetDoubleResponse {}


pub struct COTargetDouble;
impl ros2_client::Service for COTargetDouble {
    type Request = COTargetDoubleRequest;
    type Response = COTargetDoubleResponse;

    fn request_type_name(&self) -> &str { "COTargetDoubleRequest" }
    fn response_type_name(&self) -> &str { "COTargetDoubleResponse" }
}