ros2_interfaces_rolling/controller_manager_msgs/msg/
controller_state.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct ControllerState {
5 pub name: ::std::string::String,
6 pub state: ::std::string::String,
7 #[serde(rename = "type")] pub type_: ::std::string::String,
8 pub claimed_interfaces: Vec<::std::string::String>,
9 pub required_command_interfaces: Vec<::std::string::String>,
10 pub required_state_interfaces: Vec<::std::string::String>,
11 pub is_chainable: bool,
12 pub is_chained: bool,
13 pub exported_state_interfaces: Vec<::std::string::String>,
14 pub reference_interfaces: Vec<::std::string::String>,
15 pub chain_connections: Vec<crate::controller_manager_msgs::msg::ChainConnection>,
16}
17
18impl Default for ControllerState {
19 fn default() -> Self {
20 ControllerState {
21 name: ::std::string::String::new(),
22 state: ::std::string::String::new(),
23 type_: ::std::string::String::new(),
24 claimed_interfaces: Vec::new(),
25 required_command_interfaces: Vec::new(),
26 required_state_interfaces: Vec::new(),
27 is_chainable: false,
28 is_chained: false,
29 exported_state_interfaces: Vec::new(),
30 reference_interfaces: Vec::new(),
31 chain_connections: Vec::new(),
32 }
33 }
34}
35
36impl ros2_client::Message for ControllerState {}