1 #ifndef DECORATORNODE_H 2 #define DECORATORNODE_H 26 virtual void halt()
override;
53 typedef std::function<NodeStatus(NodeStatus, TreeNode&)>
TickFunctor;
const TreeNode * child() const
const std::string & name() const
Name of the instance, not the type.
const NodeConfiguration & config() const
std::function< NodeStatus(NodeStatus, TreeNode &)> TickFunctor
DecoratorNode(const std::string &name, const NodeConfiguration &config)
virtual void halt() override
The method used to interrupt the execution of this node.
The SimpleDecoratorNode provides an easy to use DecoratorNode. The user should simply provide a callb...
void haltChild()
Halt() the child node.
void setChild(TreeNode *child)
NodeStatus executeTick() override
The method that should be used to invoke tick() and setStatus();.
Abstract base class for Behavior Tree Nodes.
virtual NodeType type() const override
virtual ~DecoratorNode() override=default
TickFunctor tick_functor_
NodeType
Enumerates the possible types of nodes.
virtual BT::NodeStatus tick()=0
Method to be implemented by the user.