Sarafun Behavior Trees package  1
Behavior trees for the SARAFun project
 All Data Structures Namespaces Functions Variables Enumerations Enumerator
TreeRunner.h
1 #include <ros/ros.h>
2 #include <behavior_tree_core/BehaviorTree.h>
3 #include <behavior_tree_core/ControlNode.h>
4 #include <sarafun_tree/parse_tree.h>
5 
6 using namespace BT;
7 namespace sarafun
8 {
15  class TreeRunner
16  {
17  public:
21  TreeRunner(int tick_period);
22 
29  bool startTree(std::string tree_description_path);
30 
34  void stopTree();
35 
36  private:
39  ControlNode *root_;
40  boost::thread *tree_thread_, *draw_thread_;
41  };
42 }
ControlNode * root_
Definition: TreeRunner.h:39
bt_parser::Parser * parser_
Definition: TreeRunner.h:38
boost::thread * tree_thread_
Definition: TreeRunner.h:40