2
3
4
5
6
7
8
9
10
11
15#include "behaviortree_cpp/control_node.h"
22
23
24
25
26
27
28
29
30
31
32
33
37 ParallelAllNode(
const std::string& name,
const NodeConfig& config);
39 static PortsList providedPorts()
41 return { InputPort<
int>(
"max_failures", 1,
42 "If the number of children returning FAILURE exceeds this "
44 "ParallelAll returns FAILURE") };
47 ~ParallelAllNode()
override =
default;
54 virtual void halt()
override;
56 size_t failureThreshold()
const;
57 void setFailureThreshold(
int threshold);
60 size_t failure_threshold_;
62 std::set<size_t> completed_list_;
63 size_t failure_count_ = 0;
The ControlNode is the base class for nodes that can have multiple children.
Definition: control_node.h:32
The ParallelAllNode execute all its children concurrently, but not in separate threads!
Definition: parallel_all_node.h:35
virtual void halt() override
Definition: action_node.h:24
NodeStatus
Definition: basic_types.h:34
Definition: tree_node.h:105