43 ParallelNode(
const std::string&
name,
int success_threshold,
int failure_threshold = 1);
49 return {InputPort<int>(
THRESHOLD_SUCCESS,
"number of childen which need to succeed " 53 "number of childen which need to fail to trigger a FAILURE")};
58 virtual void halt()
override;
size_t failureThreshold() const
const NodeConfiguration & config() const
static constexpr const char * THRESHOLD_SUCCESS
ParallelNode(const std::string &name, int success_threshold, int failure_threshold=1)
static constexpr const char * THRESHOLD_FAILURE
~ParallelNode() override=default
const std::string & name() const
Name of the instance, not the type.
std::set< int > skip_list_
bool read_parameter_from_ports_
void setSuccessThreshold(int threshold_M)
virtual void halt() override
std::unordered_map< std::string, PortInfo > PortsList
void setFailureThreshold(int threshold_M)
size_t successThreshold() const
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
The ParallelNode execute all its children concurrently, but not in separate threads! ...
static PortsList providedPorts()