Go to the documentation of this file. 1 #ifndef PARALLEL_ROBOT_
2 #define PARALLEL_ROBOT_
7 #include "behaviortree_cpp_v3/control_node.h"
11 Parallel_robot(
const std::string& name,
int success_threshold,
int failure_threshold = 1);
12 Parallel_robot(
const std::string& name,
const BT::NodeConfiguration& config);
15 return {BT::InputPort<int>(
THRESHOLD_SUCCESS,
"number of childen which need to succeed "
19 "number of childen which need to fail to trigger a FAILURE")};
24 virtual void halt()
override;
41 virtual BT::NodeStatus
tick()
override;
virtual BT::NodeStatus tick() override
static constexpr const char * THRESHOLD_FAILURE
void setFailureThreshold(int threshold_M)
void setSuccessThreshold(int threshold_M)
std::set< int > skip_list_
static constexpr const char * THRESHOLD_SUCCESS
size_t failureThreshold() const
bool read_parameter_from_ports_
Parallel_robot(const std::string &name, int success_threshold, int failure_threshold=1)
static BT::PortsList providedPorts()
size_t successThreshold() const
virtual void halt() override
~Parallel_robot() override=default