#include <retry_node.h>
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 ¶ms) | |
virtual | ~RetryNode () override |
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 | max_attempts_ |
bool | read_parameter_from_blackboard_ |
unsigned int | try_index_ |
Static Private Attributes | |
static constexpr const char * | NUM_ATTEMPTS = "num_attempts" |
Definition at line 21 of file retry_node.h.
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] |
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.
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.
bool BT::RetryNode::read_parameter_from_blackboard_ [private] |
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.