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

#include <retry_node.h>

Inheritance diagram for BT::RetryNode:
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.
 RetryNode (const std::string &name, unsigned int NTries)
 RetryNode (const std::string &name, const NodeParameters &params)
virtual ~RetryNode () override

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 max_attempts_
bool read_parameter_from_blackboard_
unsigned int try_index_

Static Private Attributes

static constexpr const char * NUM_ATTEMPTS = "num_attempts"

Detailed Description

Definition at line 21 of file retry_node.h.


Constructor & Destructor Documentation

BT::RetryNode::RetryNode ( const std::string &  name,
unsigned int  NTries 
)

Definition at line 20 of file retry_node.cpp.

BT::RetryNode::RetryNode ( const std::string &  name,
const NodeParameters params 
)

Definition at line 29 of file retry_node.cpp.

virtual BT::RetryNode::~RetryNode ( ) [override, virtual]

Member Function Documentation

void BT::RetryNode::halt ( ) [override, virtual]

The method used to interrupt the execution of a RUNNING node.

Reimplemented from BT::DecoratorNode.

Definition at line 44 of file retry_node.cpp.

static const NodeParameters& BT::RetryNode::requiredNodeParameters ( ) [inline, static]

Definition at line 31 of file retry_node.h.

NodeStatus BT::RetryNode::tick ( ) [override, private, virtual]

Method to be implemented by the user.

Implements BT::TreeNode.

Definition at line 50 of file retry_node.cpp.


Member Data Documentation

unsigned int BT::RetryNode::max_attempts_ [private]

Definition at line 40 of file retry_node.h.

constexpr const char * BT::RetryNode::NUM_ATTEMPTS = "num_attempts" [static, private]

Definition at line 44 of file retry_node.h.

Definition at line 43 of file retry_node.h.

unsigned int BT::RetryNode::try_index_ [private]

Definition at line 41 of file retry_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