ros2_interfaces_humble/py_trees_ros_interfaces/msg/
behaviour_tree.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct BehaviourTree {
5 pub behaviours: Vec<crate::py_trees_ros_interfaces::msg::Behaviour>,
6 pub changed: bool,
7 pub blackboard_on_visited_path: Vec<crate::diagnostic_msgs::msg::KeyValue>,
8 pub blackboard_activity: Vec<crate::py_trees_ros_interfaces::msg::ActivityItem>,
9 pub statistics: crate::py_trees_ros_interfaces::msg::Statistics,
10}
11
12impl Default for BehaviourTree {
13 fn default() -> Self {
14 BehaviourTree {
15 behaviours: Vec::new(),
16 changed: false,
17 blackboard_on_visited_path: Vec::new(),
18 blackboard_activity: Vec::new(),
19 statistics: crate::py_trees_ros_interfaces::msg::Statistics::default(),
20 }
21 }
22}
23
24impl ros2_client::Message for BehaviourTree {}