ros2_interfaces_rolling/marker_msgs/msg/
marker_detection.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct MarkerDetection {
5    pub header: crate::std_msgs::msg::Header,
6    pub distance_min: f32,
7    pub distance_max: f32,
8    pub distance_max_id: f32,
9    pub view_direction: crate::geometry_msgs::msg::Quaternion,
10    pub fov_horizontal: f32,
11    pub fov_vertical: f32,
12    #[serde(rename = "type")]    pub type_: ::std::string::String,
13    pub markers: Vec<crate::marker_msgs::msg::Marker>,
14}
15
16impl Default for MarkerDetection {
17    fn default() -> Self {
18        MarkerDetection {
19            header: crate::std_msgs::msg::Header::default(),
20            distance_min: 0.0,
21            distance_max: 0.0,
22            distance_max_id: 0.0,
23            view_direction: crate::geometry_msgs::msg::Quaternion::default(),
24            fov_horizontal: 0.0,
25            fov_vertical: 0.0,
26            type_: ::std::string::String::new(),
27            markers: Vec::new(),
28        }
29    }
30}
31
32impl ros2_client::Message for MarkerDetection {}