Struct used to store a tree. If this object goes out of scope, the tree is destroyed. More...
#include <bt_factory.h>
Public Member Functions | |
void | haltTree () |
Tree & | operator= (const Tree &)=delete |
Tree & | operator= (Tree &&other) |
Blackboard::Ptr | rootBlackboard () |
TreeNode * | rootNode () const |
NodeStatus | tickRoot () |
Tree () | |
Tree (const Tree &)=delete | |
Tree (Tree &&other) | |
~Tree () | |
Public Attributes | |
std::vector< Blackboard::Ptr > | blackboard_stack |
std::unordered_map< std::string, TreeNodeManifest > | manifests |
std::vector< TreeNode::Ptr > | nodes |
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
To tick the tree, simply call:
NodeStatus status = my_tree.tickRoot();
Definition at line 130 of file bt_factory.h.
|
inline |
Definition at line 138 of file bt_factory.h.
|
delete |
|
inline |
Definition at line 144 of file bt_factory.h.
BT::Tree::~Tree | ( | ) |
Definition at line 269 of file bt_factory.cpp.
|
inline |
Definition at line 157 of file bt_factory.h.
Definition at line 149 of file bt_factory.h.
Blackboard::Ptr BT::Tree::rootBlackboard | ( | ) |
Definition at line 274 of file bt_factory.cpp.
|
inline |
Definition at line 176 of file bt_factory.h.
|
inline |
Definition at line 181 of file bt_factory.h.
std::vector<Blackboard::Ptr> BT::Tree::blackboard_stack |
Definition at line 135 of file bt_factory.h.
std::unordered_map<std::string, TreeNodeManifest> BT::Tree::manifests |
Definition at line 136 of file bt_factory.h.
std::vector<TreeNode::Ptr> BT::Tree::nodes |
Definition at line 134 of file bt_factory.h.