4#include "behaviortree_cpp/tree_node.h"
9
10
11
12
13
14
15
16
17
24 DecoratorNode(
const std::string& name,
const NodeConfig& config);
26 ~DecoratorNode()
override =
default;
40 virtual void halt()
override;
45 virtual NodeType type()
const override
58
59
60
61
62
63
64
65
66
73 SimpleDecoratorNode(
const std::string& name, TickFunctor tick_functor,
76 ~SimpleDecoratorNode()
override =
default;
86 TickFunctor tick_functor_;
The DecoratorNode is the base class for nodes that have exactly one child.
Definition: decorator_node.h:19
void haltChild()
Same as resetChild()
virtual void halt() override
The method used to interrupt the execution of this node.
NodeStatus executeTick() override
The method that should be used to invoke tick() and setStatus();.
The SimpleDecoratorNode provides an easy to use DecoratorNode. The user should simply provide a callb...
Definition: decorator_node.h:68
virtual NodeStatus tick() override
Method to be implemented by the user.
Abstract base class for Behavior Tree Nodes.
Definition: tree_node.h:154
Definition: action_node.h:24
NodeStatus
Definition: basic_types.h:34
NodeType
Enumerates the possible types of nodes.
Definition: basic_types.h:21
Definition: tree_node.h:105