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 SetLinkStateRequest {
    pub link_state: crate::gazebo_msgs::msg::LinkState,
}

impl Default for SetLinkStateRequest {
    fn default() -> Self {
        SetLinkStateRequest {
            link_state: crate::gazebo_msgs::msg::LinkState::default(),
        }
    }
}

impl ros2_client::Message for SetLinkStateRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetLinkStateResponse {
    pub success: bool,
    pub status_message: ::std::string::String,
}

impl Default for SetLinkStateResponse {
    fn default() -> Self {
        SetLinkStateResponse {
            success: false,
            status_message: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for SetLinkStateResponse {}


pub struct SetLinkState;
impl ros2_client::Service for SetLinkState {
    type Request = SetLinkStateRequest;
    type Response = SetLinkStateResponse;

    fn request_type_name(&self) -> &str { "SetLinkStateRequest" }
    fn response_type_name(&self) -> &str { "SetLinkStateResponse" }
}