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 | |
Blackboard::Ptr | rootBlackboard () |
Tree () | |
~Tree () | |
Public Attributes | |
std::vector< Blackboard::Ptr > | blackboard_stack |
std::unordered_map< std::string, TreeNodeManifest > | manifests |
std::vector< TreeNode::Ptr > | nodes |
TreeNode * | root_node |
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.root_node->executeTick();
Definition at line 78 of file bt_factory.h.
|
inline |
Definition at line 85 of file bt_factory.h.
BT::Tree::~Tree | ( | ) |
Definition at line 190 of file bt_factory.cpp.
Blackboard::Ptr BT::Tree::rootBlackboard | ( | ) |
Definition at line 197 of file bt_factory.cpp.
std::vector<Blackboard::Ptr> BT::Tree::blackboard_stack |
Definition at line 82 of file bt_factory.h.
std::unordered_map<std::string, TreeNodeManifest> BT::Tree::manifests |
Definition at line 83 of file bt_factory.h.
std::vector<TreeNode::Ptr> BT::Tree::nodes |
Definition at line 81 of file bt_factory.h.
TreeNode* BT::Tree::root_node |
Definition at line 80 of file bt_factory.h.