1 #ifndef __TREE_FROM_KF__
2 #define __TREE_FROM_KF__
5 #include <ros/package.h>
7 #include <json/json.hpp>
8 #include <sarafun_msgs/KeyframeMsg.h>
10 using json = nlohmann::json;
11 namespace tree_generator {
62 json
modifyId(json node, std::vector<int> &indices);
81 json
createTree(
const std::vector<sarafun_msgs::KeyframeMsg> &keyframes_list);
89 void addChildren(
const json &tree, std::map<std::string, json> &children_map);
void replaceWithUnderscore(std::string &label)
SubTreeFromKF subtree_parser_
bool loadLabel(std::string label)
json createSubTree(std::vector< int > &indices)
json createTree(const std::vector< sarafun_msgs::KeyframeMsg > &keyframes_list)
json modifyId(json node, std::vector< int > &indices)
std::vector< int > indices_
void addChildren(const json &tree, std::map< std::string, json > &children_map)