1 #ifndef XML_PARSING_BT_H 2 #define XML_PARSING_BT_H 34 std::vector<TreeNode::Ptr>
nodes;
36 Tree() : root_node(nullptr)
42 : root_node(root_node), nodes(nodes)
63 const std::string& text,
74 const std::string& filename,
78 bool compact_representation =
false);
81 #endif // XML_PARSING_BT_H
Tree(TreeNode *root_node, std::vector< TreeNode::Ptr > nodes)
const std::string xml_text
std::shared_ptr< Blackboard > Ptr
std::string writeXML(const BehaviorTreeFactory &factory, const TreeNode *root_node, bool compact_representation=false)
void haltAllActions(TreeNode *root_node)
void loadFromFile(const std::string &filename)
Tree buildTreeFromFile(const BehaviorTreeFactory &factory, const std::string &filename, const Blackboard::Ptr &blackboard=Blackboard::Ptr())
TreeNode::Ptr instantiateTree(std::vector< TreeNode::Ptr > &nodes, const Blackboard::Ptr &blackboard)
void loadFromText(const std::string &xml_text)
std::vector< TreeNode::Ptr > nodes
XMLParser(const BehaviorTreeFactory &factory)
std::shared_ptr< TreeNode > Ptr
Tree buildTreeFromText(const BehaviorTreeFactory &factory, const std::string &text, const Blackboard::Ptr &blackboard=Blackboard::Ptr())
XMLParser & operator=(const XMLParser &other)=delete