The FallbackNode is used to try different strategies, until one succeeds. If any child returns RUNNING, previous children will NOT be ticked again. More...
#include <fallback_node.h>
Public Member Functions | |
FallbackNode (const std::string &name) | |
virtual void | halt () override |
virtual | ~FallbackNode () override |
Private Member Functions | |
virtual BT::NodeStatus | tick () override |
Method to be implemented by the user. | |
Private Attributes | |
unsigned int | current_child_idx_ |
The FallbackNode is used to try different strategies, until one succeeds. If any child returns RUNNING, previous children will NOT be ticked again.
Definition at line 33 of file fallback_node.h.
BT::FallbackNode::FallbackNode | ( | const std::string & | name | ) |
Definition at line 19 of file fallback_node.cpp.
virtual BT::FallbackNode::~FallbackNode | ( | ) | [override, virtual] |
void BT::FallbackNode::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 72 of file fallback_node.cpp.
NodeStatus BT::FallbackNode::tick | ( | ) | [override, private, virtual] |
Method to be implemented by the user.
Implements BT::TreeNode.
Definition at line 26 of file fallback_node.cpp.
unsigned int BT::FallbackNode::current_child_idx_ [private] |
Definition at line 43 of file fallback_node.h.