Sarafun Behavior Trees package
1
Behavior trees for the SARAFun project
|
#include <TreeFromKF.hpp>
Public Member Functions | |
SubTreeFromKF () | |
~SubTreeFromKF () | |
bool | loadLabel (std::string label) |
json | createSubTree (std::vector< int > &indices) |
Private Member Functions | |
json | modifyId (json node, std::vector< int > &indices) |
Private Attributes | |
ros::NodeHandle | nh_ |
json | subtree_ |
std::ifstream | file_ |
bool | has_label_ |
std::string | current_id_ |
This class constructs one pre-defined BT subtree, given the semantic information contained in a keyframe.
The files describing the subtrees are defined in the /data/subtrees directory, and must have names matching the labels loaded in the parameter server.
Definition at line 22 of file TreeFromKF.hpp.