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

}

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

        }
    }
}

impl ros2_client::Message for ListNodesRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ListNodesResponse {
    pub full_node_names: Vec<::std::string::String>,
    pub unique_ids: Vec<u64>,
}

impl Default for ListNodesResponse {
    fn default() -> Self {
        ListNodesResponse {
            full_node_names: Vec::new(),
            unique_ids: Vec::new(),
        }
    }
}

impl ros2_client::Message for ListNodesResponse {}


pub struct ListNodes;
impl ros2_client::Service for ListNodes {
    type Request = ListNodesRequest;
    type Response = ListNodesResponse;

    fn request_type_name(&self) -> &str { "ListNodesRequest" }
    fn response_type_name(&self) -> &str { "ListNodesResponse" }
}