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 ExistNodeRequest {
    pub node: crate::plansys2_msgs::msg::Node,
}

impl Default for ExistNodeRequest {
    fn default() -> Self {
        ExistNodeRequest {
            node: crate::plansys2_msgs::msg::Node::default(),
        }
    }
}

impl ros2_client::Message for ExistNodeRequest {}



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

impl Default for ExistNodeResponse {
    fn default() -> Self {
        ExistNodeResponse {
            exist: false,
        }
    }
}

impl ros2_client::Message for ExistNodeResponse {}


pub struct ExistNode;
impl ros2_client::Service for ExistNode {
    type Request = ExistNodeRequest;
    type Response = ExistNodeResponse;

    fn request_type_name(&self) -> &str { "ExistNodeRequest" }
    fn response_type_name(&self) -> &str { "ExistNodeResponse" }
}