2
3
4
5
6
7
8
9
10
11
15#include "behaviortree_cpp/control_node.h"
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
43 TryCatchNode(
const std::string& name,
const NodeConfig& config);
45 ~TryCatchNode()
override =
default;
52 static PortsList providedPorts()
54 return { InputPort<
bool>(
"catch_on_halt",
false,
55 "If true, execute the catch child when "
56 "the node is halted during the try-block") };
62 size_t current_child_idx_ = 0;
63 size_t skipped_count_ = 0;
64 bool in_catch_ =
false;
The ControlNode is the base class for nodes that can have multiple children.
Definition: control_node.h:32
The TryCatch node executes children 1..N-1 as a Sequence ("try" block).
Definition: try_catch_node.h:41
Definition: action_node.h:24
NodeStatus
Definition: basic_types.h:34
Definition: tree_node.h:105