14 #ifndef DECORATOR_REPEAT_NODE_H 15 #define DECORATOR_REPEAT_NODE_H 49 "Repeat a succesful child up to N times. " 50 "Use -1 to create an infinite loop.") };
const std::string & name() const
Name of the instance, not the type.
const NodeConfiguration & config() const
The RepeatNode is used to execute a child several times, as long as it succeed.
static constexpr const char * NUM_CYCLES
virtual ~RepeatNode() override=default
virtual NodeStatus tick() override
Method to be implemented by the user.
RepeatNode(const std::string &name, int NTries)
std::unordered_map< std::string, PortInfo > PortsList
void halt() override
The method used to interrupt the execution of this node.
static PortsList providedPorts()
bool read_parameter_from_ports_