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 GimbalGetInformationRequest {

}

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

        }
    }
}

impl ros2_client::Message for GimbalGetInformationRequest {}



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

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

impl ros2_client::Message for GimbalGetInformationResponse {}


pub struct GimbalGetInformation;
impl ros2_client::Service for GimbalGetInformation {
    type Request = GimbalGetInformationRequest;
    type Response = GimbalGetInformationResponse;

    fn request_type_name(&self) -> &str { "GimbalGetInformationRequest" }
    fn response_type_name(&self) -> &str { "GimbalGetInformationResponse" }
}