ros2_interfaces_rolling/tuw_nav_msgs/msg/
controller_state.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct ControllerState {
5 pub header: crate::std_msgs::msg::Header,
6 pub state: i32,
7 pub progress: u32,
8 pub progress_in_relation_to: u32,
9 pub info: ::std::string::String,
10}
11
12impl ControllerState {
13 pub const STATE_IDLE: i32 = 0;
14 pub const STATE_DRIVING: i32 = 1;
15 pub const STATE_FINISHED: i32 = 2;
16}
17
18impl Default for ControllerState {
19 fn default() -> Self {
20 ControllerState {
21 header: crate::std_msgs::msg::Header::default(),
22 state: 0,
23 progress: 0,
24 progress_in_relation_to: 0,
25 info: ::std::string::String::new(),
26 }
27 }
28}
29
30impl ros2_client::Message for ControllerState {}