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 SetPoseRequest {
    pub pose: crate::geometry_msgs::msg::PoseWithCovarianceStamped,
}

impl Default for SetPoseRequest {
    fn default() -> Self {
        SetPoseRequest {
            pose: crate::geometry_msgs::msg::PoseWithCovarianceStamped::default(),
        }
    }
}

impl ros2_client::Message for SetPoseRequest {}



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

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

impl ros2_client::Message for SetPoseResponse {}


pub struct SetPose;
impl ros2_client::Service for SetPose {
    type Request = SetPoseRequest;
    type Response = SetPoseResponse;

    fn request_type_name(&self) -> &str { "SetPoseRequest" }
    fn response_type_name(&self) -> &str { "SetPoseResponse" }
}