ros2_interfaces_rolling/kobuki_ros_interfaces/msg/
robot_state_event.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct RobotStateEvent {
5    pub state: u8,
6}
7
8impl RobotStateEvent {
9    pub const ONLINE: u8 = 1;
10    pub const OFFLINE: u8 = 0;
11}
12
13impl Default for RobotStateEvent {
14    fn default() -> Self {
15        RobotStateEvent {
16            state: 0,
17        }
18    }
19}
20
21impl ros2_client::Message for RobotStateEvent {}