ros2_interfaces_humble/robot_controllers_msgs/msg/
controller_state.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct ControllerState {
5    pub name: ::std::string::String,
6    #[serde(rename = "type")]    pub type_: ::std::string::String,
7    pub state: u8,
8}
9
10impl ControllerState {
11    pub const STOPPED: u8 = 0;
12    pub const RUNNING: u8 = 1;
13    pub const ERROR: u8 = 2;
14}
15
16impl Default for ControllerState {
17    fn default() -> Self {
18        ControllerState {
19            name: ::std::string::String::new(),
20            type_: ::std::string::String::new(),
21            state: 0,
22        }
23    }
24}
25
26impl ros2_client::Message for ControllerState {}