Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
BT::ParallelNode Class Reference

#include <parallel_node.h>

Inheritance diagram for BT::ParallelNode:
Inheritance graph
[legend]

List of all members.

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 &params)
void setThresholdM (unsigned int threshold_M)
unsigned int thresholdM ()
 ~ParallelNode ()

Static Public Member Functions

static const NodeParametersrequiredNodeParameters ()

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"

Detailed Description

Definition at line 21 of file parallel_node.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

Definition at line 45 of file parallel_node.h.

Definition at line 47 of file parallel_node.h.

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.


The documentation for this class was generated from the following files:


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Feb 2 2019 03:50:10