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

}

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

        }
    }
}

impl ros2_client::Message for GetStateRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetStateResponse {
    pub current_state: crate::lifecycle_msgs::msg::State,
}

impl Default for GetStateResponse {
    fn default() -> Self {
        GetStateResponse {
            current_state: crate::lifecycle_msgs::msg::State::default(),
        }
    }
}

impl ros2_client::Message for GetStateResponse {}


pub struct GetState;
impl ros2_client::Service for GetState {
    type Request = GetStateRequest;
    type Response = GetStateResponse;

    fn request_type_name(&self) -> &str { "GetStateRequest" }
    fn response_type_name(&self) -> &str { "GetStateResponse" }
}