50 return {InputPort<int>(
NUM_ATTEMPTS,
"Execute again a failing child up to N times. " 51 "Use -1 to create an infinite loop.")};
54 virtual void halt()
override;
66 class [[deprecated("RetryUntilSuccesful was a typo and deprecated, use "
67 "RetryUntilSuccessful "
68 "instead.")]] RetryNodeTypo :
public RetryNode 71 RetryNodeTypo(
const std::string&
name,
int NTries) :
RetryNode(name, NTries){};
76 virtual ~RetryNodeTypo()
override =
default;
const NodeConfiguration & config() const
bool read_parameter_from_ports_
The RetryNode is used to execute a child several times if it fails.
RetryNode(const std::string &name, int NTries)
const std::string & name() const
Name of the instance, not the type.
static PortsList providedPorts()
std::unordered_map< std::string, PortInfo > PortsList
static constexpr const char * NUM_ATTEMPTS
virtual void halt() override
The method used to interrupt the execution of this node.
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
virtual ~RetryNode() override=default