ros2-interfaces-rolling 0.0.1

Structs for Messages and Services listed by ROS Index for ROS2 Rolling. Built around the `ros2-client` crate.
Documentation
use serde::{Deserialize, Serialize};


#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetPoseReq {
    pub pose: crate::geometry_msgs::msg::PoseWithCovarianceStamped,
}

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

impl ros2_client::Message for SetPoseReq {}



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

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

impl ros2_client::Message for SetPoseRes {}


pub struct SetPose;
impl ros2_client::Service for SetPose {
    type Request = SetPoseReq;
    type Response = SetPoseRes;

    fn request_type_name(&self) -> &str { "SetPoseReq" }
    fn response_type_name(&self) -> &str { "SetPoseRes" }
}