ros2_interfaces_humble/as2_msgs/msg/
platform_state_machine_event.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct PlatformStateMachineEvent {
5    pub event: i8,
6}
7
8impl PlatformStateMachineEvent {
9    pub const EMERGENCY: i8 = -1;
10    pub const ARM: i8 = 0;
11    pub const DISARM: i8 = 1;
12    pub const TAKE_OFF: i8 = 2;
13    pub const TOOK_OFF: i8 = 3;
14    pub const LAND: i8 = 4;
15    pub const LANDED: i8 = 5;
16}
17
18impl Default for PlatformStateMachineEvent {
19    fn default() -> Self {
20        PlatformStateMachineEvent {
21            event: 0,
22        }
23    }
24}
25
26impl ros2_client::Message for PlatformStateMachineEvent {}