ros2_interfaces_humble/rmf_task_msgs/msg/
dispatch_command.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct DispatchCommand {
5 pub fleet_name: ::std::string::String,
6 pub task_id: ::std::string::String,
7 pub dispatch_id: u64,
8 pub timestamp: crate::builtin_interfaces::msg::Time,
9 #[serde(rename = "type")] pub type_: u8,
10}
11
12impl DispatchCommand {
13 pub const TYPE_AWARD: u8 = 1;
14 pub const TYPE_REMOVE: u8 = 2;
15}
16
17impl Default for DispatchCommand {
18 fn default() -> Self {
19 DispatchCommand {
20 fleet_name: ::std::string::String::new(),
21 task_id: ::std::string::String::new(),
22 dispatch_id: 0,
23 timestamp: crate::builtin_interfaces::msg::Time::default(),
24 type_: 0,
25 }
26 }
27}
28
29impl ros2_client::Message for DispatchCommand {}