39 throw std::runtime_error(
"Missing parameter [threshold] in ParallelNode");
50 throw std::runtime_error(
"Missing parameter [threshold] in ParallelNode");
60 for (
unsigned int i = 0; i < children_count; i++)
BT::optional< T > getParam(const std::string &key) const
unsigned int thresholdM()
const std::string & name() const
unsigned int success_childred_num_
std::vector< TreeNode * > children_nodes_
virtual void halt() override
The method used to interrupt the execution of a RUNNING node.
void setRegistrationName(const std::string ®istration_name)
registrationName() is set by the BehaviorTreeFactory
std::unordered_map< std::string, std::string > NodeParameters
ParallelNode(const std::string &name, int threshold)
static constexpr const char * THRESHOLD_KEY
void setThresholdM(unsigned int threshold_M)
virtual void halt() override
The method used to interrupt the execution of a RUNNING node.
bool read_parameter_from_blackboard_
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
static bool isBlackboardPattern(StringView str)
virtual BT::NodeStatus executeTick()
The method that will be executed to invoke tick(); and setStatus();.
unsigned int failure_childred_num_
std::basic_string< CharT, Traits > to_string(basic_string_view< CharT, Traits > v)
void setStatus(NodeStatus new_status)