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 SpawnModelRequest {
    pub model_name: ::std::string::String,
    pub model_xml: ::std::string::String,
    pub robot_namespace: ::std::string::String,
    pub initial_pose: crate::geometry_msgs::msg::Pose,
    pub reference_frame: ::std::string::String,
}

impl Default for SpawnModelRequest {
    fn default() -> Self {
        SpawnModelRequest {
            model_name: ::std::string::String::new(),
            model_xml: ::std::string::String::new(),
            robot_namespace: ::std::string::String::new(),
            initial_pose: crate::geometry_msgs::msg::Pose::default(),
            reference_frame: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for SpawnModelRequest {}



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

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

impl ros2_client::Message for SpawnModelResponse {}


pub struct SpawnModel;
impl ros2_client::Service for SpawnModel {
    type Request = SpawnModelRequest;
    type Response = SpawnModelResponse;

    fn request_type_name(&self) -> &str { "SpawnModelRequest" }
    fn response_type_name(&self) -> &str { "SpawnModelResponse" }
}