Antkeeper
0.0.1
|
Behavior tree (BT) More...
Classes | |
struct | node |
Abstract base class for behavior tree nodes. More... | |
struct | decorator_node |
A node with exactly one child. More... | |
struct | composite_node |
A node that can have one or more children. More... | |
struct | action |
Executes a function on a context and returns the status. More... | |
struct | condition |
Evaluates a boolean condition (predicate) and returns either status::success or status::failure . More... | |
struct | inverter |
Executes a child node and returns its inverted status. If the child returns status::success , then status::failure will be returned. Otherwise if the child returns status::failure , then status::success will be returned. More... | |
struct | repeater |
Attempts to execute a child node n times or until the child fails. More... | |
struct | succeeder |
Executes a child node and returns status::success regardless of the child node status. More... | |
struct | sequence |
Attempts to execute each child node sequentially until one fails. If all children are executed successfully, status::success will be returned. Otherwise if any children fail, status::failure will be returned. More... | |
struct | selector |
Attempts to execute each child node sequentially until one succeeds. If a child succeeds, status::success will be returned. Otherwise if all children fail, status::failure will be returned. More... | |
Typedefs | |
template<class T > | |
using | leaf_node = node< T > |
Behavior tree node with no children. More... | |
Enumerations | |
enum class | status { failure , success , running } |
Behavior tree node return status enumerations. More... | |
Behavior tree (BT)
using ai::bt::leaf_node = typedef node<T> |
|
strong |
Behavior tree node return status enumerations.
Enumerator | |
---|---|
failure | Indicates a node's execution has failed. |
success | Indicates a node's execution has succeeded. |
running | Indicates a node's execution has not finished. |
Definition at line 27 of file status.hpp.