46 return {InputPort<int>(
NUM_CYCLES,
"Repeat a succesful child up to N times. " 47 "Use -1 to create an infinite loop.")};
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
const std::string & name() const
Name of the instance, not the type.
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_