Go to the documentation of this file.
46 return { InputPort<int>(
NUM_CYCLES,
"Repeat a successful child up to N times. "
47 "Use -1 to create an infinite loop.") };
const NodeConfig & config() const
static PortsList providedPorts()
std::unordered_map< std::string, PortInfo > PortsList
virtual NodeStatus tick() override
Method to be implemented by the user.
virtual ~RepeatNode() override=default
static constexpr const char * NUM_CYCLES
const std::string & name() const
Name of the instance, not the type.
RepeatNode(const std::string &name, int NTries)
bool read_parameter_from_ports_
void halt() override
The method used to interrupt the execution of this node.
The RepeatNode is used to execute a child several times, as long as it succeed.