#include <action_node.h>
Public Member Functions | |
ActionNodeBase (const std::string &name, const NodeParameters ¶meters=NodeParameters()) | |
virtual NodeStatus | executeTick () override |
The method that will be executed to invoke tick(); and setStatus();. | |
virtual NodeType | type () const override final |
~ActionNodeBase () override |
IMPORTANT: to avoid unexpected behaviors when Sequence (not SequenceStar) is used an Action that returned SUCCESS or FAILURE will not be ticked again unless setStatus(IDLE) is called first (reset the Action).
Usually the parent node takes care of this for you.
Definition at line 30 of file action_node.h.
BT::ActionNodeBase::ActionNodeBase | ( | const std::string & | name, |
const NodeParameters & | parameters = NodeParameters() |
||
) |
Definition at line 19 of file action_node.cpp.
BT::ActionNodeBase::~ActionNodeBase | ( | ) | [override] |
NodeStatus BT::ActionNodeBase::executeTick | ( | ) | [override, virtual] |
The method that will be executed to invoke tick(); and setStatus();.
Reimplemented from BT::TreeNode.
Reimplemented in BT::CoroActionNode, BT::AsyncActionNode, and BT::SyncActionNode.
Definition at line 24 of file action_node.cpp.
virtual NodeType BT::ActionNodeBase::type | ( | ) | const [inline, override, virtual] |
Implements BT::TreeNode.
Definition at line 39 of file action_node.h.