#include <parallel_node.h>
Public Member Functions | |
virtual void | halt () override |
The method used to interrupt the execution of a RUNNING node. | |
ParallelNode (const std::string &name, int threshold) | |
ParallelNode (const std::string &name, const NodeParameters ¶ms) | |
void | setThresholdM (unsigned int threshold_M) |
unsigned int | thresholdM () |
~ParallelNode () | |
Static Public Member Functions | |
static const NodeParameters & | requiredNodeParameters () |
Private Member Functions | |
virtual BT::NodeStatus | tick () override |
Method to be implemented by the user. | |
Private Attributes | |
unsigned int | failure_childred_num_ |
bool | read_parameter_from_blackboard_ |
unsigned int | success_childred_num_ |
unsigned int | threshold_ |
Static Private Attributes | |
static constexpr const char * | THRESHOLD_KEY = "threshold" |
Definition at line 21 of file parallel_node.h.
BT::ParallelNode::ParallelNode | ( | const std::string & | name, |
int | threshold | ||
) |
Definition at line 21 of file parallel_node.cpp.
BT::ParallelNode::ParallelNode | ( | const std::string & | name, |
const NodeParameters & | params | ||
) |
Definition at line 29 of file parallel_node.cpp.
void BT::ParallelNode::halt | ( | ) | [override, virtual] |
The method used to interrupt the execution of a RUNNING node.
Reimplemented from BT::ControlNode.
Definition at line 100 of file parallel_node.cpp.
static const NodeParameters& BT::ParallelNode::requiredNodeParameters | ( | ) | [inline, static] |
Definition at line 29 of file parallel_node.h.
void BT::ParallelNode::setThresholdM | ( | unsigned int | threshold_M | ) |
Definition at line 112 of file parallel_node.cpp.
unsigned int BT::ParallelNode::thresholdM | ( | ) |
Definition at line 107 of file parallel_node.cpp.
NodeStatus BT::ParallelNode::tick | ( | ) | [override, private, virtual] |
Method to be implemented by the user.
Implements BT::TreeNode.
Definition at line 44 of file parallel_node.cpp.
unsigned int BT::ParallelNode::failure_childred_num_ [private] |
Definition at line 45 of file parallel_node.h.
bool BT::ParallelNode::read_parameter_from_blackboard_ [private] |
Definition at line 47 of file parallel_node.h.
unsigned int BT::ParallelNode::success_childred_num_ [private] |
Definition at line 44 of file parallel_node.h.
unsigned int BT::ParallelNode::threshold_ [private] |
Definition at line 43 of file parallel_node.h.
constexpr const char * BT::ParallelNode::THRESHOLD_KEY = "threshold" [static, private] |
Definition at line 48 of file parallel_node.h.