ros2_interfaces_rolling/rmf_traffic_msgs/msg/
shape.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct Shape {
5    #[serde(rename = "type")]    pub type_: u8,
6    pub index: u8,
7}
8
9impl Shape {
10    pub const NONE: u8 = 0;
11    pub const BOX: u8 = 1;
12    pub const CIRCLE: u8 = 2;
13}
14
15impl Default for Shape {
16    fn default() -> Self {
17        Shape {
18            type_: 0,
19            index: 0,
20        }
21    }
22}
23
24impl ros2_client::Message for Shape {}