The FallbackStarNode is used to try different strategies, until one succeed. If any child returns RUNNING, previous children will NOT be ticked again. More...
#include <fallback_star_node.h>
Public Member Functions | |
FallbackStarNode (const std::string &name) | |
virtual void | halt () override |
The method used to interrupt the execution of a RUNNING node. | |
Private Member Functions | |
virtual BT::NodeStatus | tick () override |
Method to be implemented by the user. | |
Private Attributes | |
unsigned int | current_child_idx_ |
The FallbackStarNode is used to try different strategies, until one succeed. If any child returns RUNNING, previous children will NOT be ticked again.
Definition at line 34 of file fallback_star_node.h.
BT::FallbackStarNode::FallbackStarNode | ( | const std::string & | name | ) |
Definition at line 18 of file fallback_star_node.cpp.
void BT::FallbackStarNode::halt | ( | ) | [override, virtual] |
The method used to interrupt the execution of a RUNNING node.
Reimplemented from BT::ControlNode.
Definition at line 70 of file fallback_star_node.cpp.
NodeStatus BT::FallbackStarNode::tick | ( | ) | [override, private, virtual] |
Method to be implemented by the user.
Implements BT::TreeNode.
Definition at line 24 of file fallback_star_node.cpp.
unsigned int BT::FallbackStarNode::current_child_idx_ [private] |
Definition at line 42 of file fallback_star_node.h.