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 DetectFillingLevelRequest {
    pub pose_frame: ::std::string::String,
    pub region_of_interest_id: ::std::string::String,
    pub region_of_interest_2d_id: ::std::string::String,
    pub load_carrier_ids: Vec<::std::string::String>,
    pub robot_pose: crate::geometry_msgs::msg::Pose,
    pub filling_level_cell_count: crate::rc_reason_msgs::msg::GridSize,
}

impl Default for DetectFillingLevelRequest {
    fn default() -> Self {
        DetectFillingLevelRequest {
            pose_frame: ::std::string::String::new(),
            region_of_interest_id: ::std::string::String::new(),
            region_of_interest_2d_id: ::std::string::String::new(),
            load_carrier_ids: Vec::new(),
            robot_pose: crate::geometry_msgs::msg::Pose::default(),
            filling_level_cell_count: crate::rc_reason_msgs::msg::GridSize::default(),
        }
    }
}

impl ros2_client::Message for DetectFillingLevelRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DetectFillingLevelResponse {
    pub timestamp: crate::builtin_interfaces::msg::Time,
    pub load_carriers: Vec<crate::rc_reason_msgs::msg::LoadCarrierWithFillingLevel>,
    pub return_code: crate::rc_common_msgs::msg::ReturnCode,
}

impl Default for DetectFillingLevelResponse {
    fn default() -> Self {
        DetectFillingLevelResponse {
            timestamp: crate::builtin_interfaces::msg::Time::default(),
            load_carriers: Vec::new(),
            return_code: crate::rc_common_msgs::msg::ReturnCode::default(),
        }
    }
}

impl ros2_client::Message for DetectFillingLevelResponse {}


pub struct DetectFillingLevel;
impl ros2_client::Service for DetectFillingLevel {
    type Request = DetectFillingLevelRequest;
    type Response = DetectFillingLevelResponse;

    fn request_type_name(&self) -> &str { "DetectFillingLevelRequest" }
    fn response_type_name(&self) -> &str { "DetectFillingLevelResponse" }
}