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
35
36
37
38
42 RetryNode(
const std::string& name,
int NTries);
44 RetryNode(
const std::string& name,
const NodeConfig& config);
46 ~RetryNode()
override =
default;
53 static PortsList providedPorts()
55 return { InputPort<
int>(NUM_ATTEMPTS,
"Execute again a failing child up to N times. "
56 "Use -1 to create an infinite loop.") };
59 virtual void halt()
override;
65 bool read_parameter_from_ports_;
66 static constexpr const char* NUM_ATTEMPTS =
"num_attempts";
71class [[deprecated(
"RetryUntilSuccesful was a typo and deprecated, use "
72 "RetryUntilSuccessful "
76 RetryNodeTypo(
const std::string& name,
int NTries) :
RetryNode(name, NTries){};
78 RetryNodeTypo(
const std::string& name,
const NodeConfig& config)
81 ~RetryNodeTypo()
override =
default;
The DecoratorNode is the base class for nodes that have exactly one child.
Definition: decorator_node.h:19
The RetryNode is used to execute a child several times if it fails.
Definition: retry_node.h:40
virtual void halt() override
The method used to interrupt the execution of this node.
Definition: retry_node.h:74
Definition: action_node.h:24
NodeStatus
Definition: basic_types.h:34
Definition: tree_node.h:105