Public Member Functions | Public Attributes | List of all members
BT::Tree Struct Reference

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::Ptrblackboard_stack
 
std::unordered_map< std::string, TreeNodeManifestmanifests
 
std::vector< TreeNode::Ptrnodes
 
TreeNoderoot_node
 

Detailed Description

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.

Constructor & Destructor Documentation

BT::Tree::Tree ( )
inline

Definition at line 85 of file bt_factory.h.

BT::Tree::~Tree ( )

Definition at line 190 of file bt_factory.cpp.

Member Function Documentation

Blackboard::Ptr BT::Tree::rootBlackboard ( )

Definition at line 197 of file bt_factory.cpp.

Member Data Documentation

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.


The documentation for this struct was generated from the following files:


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:06