ros2_interfaces_iron/flexbe_msgs/msg/
state_instantiation.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct StateInstantiation {
5 pub state_path: ::std::string::String,
6 pub state_class: ::std::string::String,
7 pub initial_state_name: ::std::string::String,
8 pub input_keys: Vec<::std::string::String>,
9 pub output_keys: Vec<::std::string::String>,
10 pub cond_outcome: Vec<::std::string::String>,
11 pub cond_transition: Vec<crate::flexbe_msgs::msg::OutcomeCondition>,
12 pub behavior_class: ::std::string::String,
13 pub parameter_names: Vec<::std::string::String>,
14 pub parameter_values: Vec<::std::string::String>,
15 pub position: [f32; 2],
16 pub outcomes: Vec<::std::string::String>,
17 pub transitions: Vec<::std::string::String>,
18 pub autonomy: Vec<i8>,
19 pub userdata_keys: Vec<::std::string::String>,
20 pub userdata_remapping: Vec<::std::string::String>,
21}
22
23impl StateInstantiation {
24 pub const CLASS_STATEMACHINE: &'static str = ":STATEMACHINE";
25 pub const CLASS_CONCURRENCY: &'static str = ":CONCURRENCY";
26 pub const CLASS_PRIORITY: &'static str = ":PRIORITY";
27 pub const CLASS_BEHAVIOR: &'static str = ":BEHAVIOR";
28}
29
30impl Default for StateInstantiation {
31 fn default() -> Self {
32 StateInstantiation {
33 state_path: ::std::string::String::new(),
34 state_class: ::std::string::String::new(),
35 initial_state_name: ::std::string::String::new(),
36 input_keys: Vec::new(),
37 output_keys: Vec::new(),
38 cond_outcome: Vec::new(),
39 cond_transition: Vec::new(),
40 behavior_class: ::std::string::String::new(),
41 parameter_names: Vec::new(),
42 parameter_values: Vec::new(),
43 position: [0.0; 2],
44 outcomes: Vec::new(),
45 transitions: Vec::new(),
46 autonomy: Vec::new(),
47 userdata_keys: Vec::new(),
48 userdata_remapping: Vec::new(),
49 }
50 }
51}
52
53impl ros2_client::Message for StateInstantiation {}