const TreeNode * child() const
const std::string & name() const
virtual void halt()=0
The method used to interrupt the execution of a RUNNING node.
std::function< NodeStatus(NodeStatus, TreeNode &)> TickFunctor
virtual NodeStatus tick() override
Method to be implemented by the user.
virtual void halt() override
The method used to interrupt the execution of a RUNNING node.
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();.
SimpleDecoratorNode(const std::string &name, TickFunctor tick_functor, const NodeParameters ¶ms=NodeParameters())
NodeStatus status() const
TickFunctor tick_functor_
virtual BT::NodeStatus executeTick()
The method that will be executed to invoke tick(); and setStatus();.
void setStatus(NodeStatus new_status)