ros2_interfaces_rolling/marti_sensor_msgs/msg/
direction.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct Direction {
5 pub header: crate::std_msgs::msg::Header,
6 pub direction: i8,
7}
8
9impl Direction {
10 pub const BACKWARD: i8 = -1;
11 pub const ZERO: i8 = 0;
12 pub const FORWARD: i8 = 1;
13 pub const UNKNOWN: i8 = 127;
14}
15
16impl Default for Direction {
17 fn default() -> Self {
18 Direction {
19 header: crate::std_msgs::msg::Header::default(),
20 direction: 0,
21 }
22 }
23}
24
25impl ros2_client::Message for Direction {}