2
3
4
5
6
7
8
9
10
11
12
16#include "behaviortree_cpp/decorator_node.h"
21
22
23
24
25
26
27
28
29
30
31
32
33
34
38 RepeatNode(
const std::string& name,
int NTries);
40 RepeatNode(
const std::string& name,
const NodeConfig& config);
42 ~RepeatNode()
override =
default;
49 static PortsList providedPorts()
51 return { InputPort<
int>(NUM_CYCLES,
"Repeat a successful child up to N times. "
52 "Use -1 to create an infinite loop.") };
59 bool read_parameter_from_ports_;
60 static constexpr const char* NUM_CYCLES =
"num_cycles";
The DecoratorNode is the base class for nodes that have exactly one child.
Definition: decorator_node.h:19
The RepeatNode is used to execute a child several times, as long as it succeed.
Definition: repeat_node.h:36
Definition: action_node.h:24
NodeStatus
Definition: basic_types.h:34
Definition: tree_node.h:105