Go to the documentation of this file.
14 #ifndef CONDITIONNODE_H
15 #define CONDITIONNODE_H
29 virtual void halt() override final
NodeType
Enumerates the possible types of nodes.
const NodeConfig & config() const
virtual ~ConditionNode() override=default
Abstract base class for Behavior Tree Nodes.
ConditionNode(const std::string &name, const NodeConfig &config)
const std::string & name() const
Name of the instance, not the type.
void resetStatus()
Set the status to IDLE.
std::function< NodeStatus(TreeNode &)> TickFunctor
virtual NodeType type() const override final
The SimpleConditionNode provides an easy to use ConditionNode. The user should simply provide a callb...
virtual NodeStatus tick() override
Method to be implemented by the user.
TickFunctor tick_functor_
virtual void halt() override final
SimpleConditionNode(const std::string &name, TickFunctor tick_functor, const NodeConfig &config)
~SimpleConditionNode() override=default