ros2_interfaces_rolling/rmf_traffic_msgs/msg/
schedule_query_spacetime.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ScheduleQuerySpacetime {
    #[serde(rename = "type")]    pub type_: u16,
    pub regions: Vec<crate::rmf_traffic_msgs::msg::Region>,
    pub shape_context: crate::rmf_traffic_msgs::msg::ShapeContext,
    pub timespan: crate::rmf_traffic_msgs::msg::Timespan,
}

impl ScheduleQuerySpacetime {
    pub const ALL: u16 = 1;
    pub const REGIONS: u16 = 2;
    pub const TIMESPAN: u16 = 3;
}

impl Default for ScheduleQuerySpacetime {
    fn default() -> Self {
        ScheduleQuerySpacetime {
            type_: 0,
            regions: Vec::new(),
            shape_context: crate::rmf_traffic_msgs::msg::ShapeContext::default(),
            timespan: crate::rmf_traffic_msgs::msg::Timespan::default(),
        }
    }
}

impl ros2_client::Message for ScheduleQuerySpacetime {}