ros2_interfaces_rolling/geometry_msgs/msg/
polygon.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Polygon {
    pub points: Vec<crate::geometry_msgs::msg::Point32>,
}

impl Default for Polygon {
    fn default() -> Self {
        Polygon {
            points: Vec::new(),
        }
    }
}

impl ros2_client::Message for Polygon {}