1 #ifndef DECORATORNODE_H 2 #define DECORATORNODE_H 26 virtual void halt()
override;
52 typedef std::function<NodeStatus(NodeStatus, TreeNode&)>
TickFunctor;
const TreeNode * child() const
const std::string & name() const
std::function< NodeStatus(NodeStatus, TreeNode &)> TickFunctor
virtual void halt() override
The method used to interrupt the execution of a RUNNING node.
The SimpleDecoratorNode provides an easy to use DecoratorNode. The user should simply provide a callb...
std::unordered_map< std::string, std::string > NodeParameters
void setChild(TreeNode *child)
DecoratorNode(const std::string &name, const NodeParameters ¶meters)
NodeStatus executeTick() override
The method that will be executed to invoke tick(); and setStatus();.
virtual NodeType type() const override
virtual ~DecoratorNode() override=default
TickFunctor tick_functor_
virtual BT::NodeStatus tick()=0
Method to be implemented by the user.