#include <parallel_node.h>
Public Member Functions | |
virtual void | halt () override |
ParallelNode (const std::string &name, unsigned threshold) | |
ParallelNode (const std::string &name, const NodeConfiguration &config) | |
void | setThresholdM (unsigned int threshold_M) |
unsigned int | thresholdM () |
~ParallelNode () | |
Static Public Member Functions | |
static PortsList | providedPorts () |
Private Member Functions | |
virtual BT::NodeStatus | tick () override |
Method to be implemented by the user. | |
Private Attributes | |
bool | read_parameter_from_ports_ |
std::set< int > | skip_list_ |
unsigned int | threshold_ |
Static Private Attributes | |
static constexpr const char * | THRESHOLD_KEY = "threshold" |
Definition at line 23 of file parallel_node.h.
BT::ParallelNode::ParallelNode | ( | const std::string & | name, |
unsigned | threshold | ||
) |
Definition at line 21 of file parallel_node.cpp.
BT::ParallelNode::ParallelNode | ( | const std::string & | name, |
const NodeConfiguration & | config | ||
) |
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. Only Async nodes that may return RUNNING should implement it.
Reimplemented from BT::ControlNode.
Definition at line 122 of file parallel_node.cpp.
static PortsList BT::ParallelNode::providedPorts | ( | ) | [inline, static] |
Definition at line 31 of file parallel_node.h.
void BT::ParallelNode::setThresholdM | ( | unsigned int | threshold_M | ) |
Definition at line 133 of file parallel_node.cpp.
unsigned int BT::ParallelNode::thresholdM | ( | ) |
Definition at line 128 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 37 of file parallel_node.cpp.
bool BT::ParallelNode::read_parameter_from_ports_ [private] |
Definition at line 48 of file parallel_node.h.
std::set<int> BT::ParallelNode::skip_list_ [private] |
Definition at line 46 of file parallel_node.h.
unsigned int BT::ParallelNode::threshold_ [private] |
Definition at line 44 of file parallel_node.h.
constexpr const char * BT::ParallelNode::THRESHOLD_KEY = "threshold" [static, private] |
Definition at line 49 of file parallel_node.h.