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 ControlWorldRequest {
    pub world_control: crate::ros_gz_interfaces::msg::WorldControl,
}

impl Default for ControlWorldRequest {
    fn default() -> Self {
        ControlWorldRequest {
            world_control: crate::ros_gz_interfaces::msg::WorldControl::default(),
        }
    }
}

impl ros2_client::Message for ControlWorldRequest {}



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

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

impl ros2_client::Message for ControlWorldResponse {}


pub struct ControlWorld;
impl ros2_client::Service for ControlWorld {
    type Request = ControlWorldRequest;
    type Response = ControlWorldResponse;

    fn request_type_name(&self) -> &str { "ControlWorldRequest" }
    fn response_type_name(&self) -> &str { "ControlWorldResponse" }
}