1#ifndef XML_PARSING_BT_H
2#define XML_PARSING_BT_H
4#include "behaviortree_cpp/bt_parser.h"
7#include <unordered_map>
12
13
14
15
21 ~XMLParser()
override;
23 XMLParser(
const XMLParser& other) =
delete;
29 void loadFromFile(
const std::filesystem::path& filename,
30 bool add_includes =
true)
override;
32 void loadFromText(
const std::string& xml_text,
bool add_includes =
true)
override;
34 [[
nodiscard]] std::vector<std::string> registeredBehaviorTrees()
const override;
37 std::string main_tree_to_execute = {})
override;
39 void clearInternalState()
override;
43 std::unique_ptr<PImpl> _p;
46void VerifyXML(
const std::string& xml_text,
47 const std::unordered_map<std::string, NodeType>& registered_nodes);
50
51
52
53
54
55
56
57
59 bool include_builtin =
false);
62
63
64
65
66
67
71
72
73
74
75
76
77
78
79
80
82 bool add_builtin_models);
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
Definition: bt_factory.h:227
The Blackboard is the mechanism used by BehaviorTrees to exchange typed data.
Definition: blackboard.h:35
The BehaviorTreeParser is a class used to read the model of a BehaviorTree from file or text and inst...
Definition: bt_parser.h:28
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
Definition: bt_factory.h:96
The XMLParser is a class used to read the model of a BehaviorTree from file or text and instantiate t...
Definition: xml_parsing.h:17
Definition: action_node.h:24
std::string writeTreeXSD(const BehaviorTreeFactory &factory)
writeTreeXSD generates an XSD for the nodes defined in the factory
std::string WriteTreeToXML(const Tree &tree, bool add_metadata, bool add_builtin_models)
WriteTreeToXML create a string that contains the XML that corresponds to a given tree....
std::string writeTreeNodesModelXML(const BehaviorTreeFactory &factory, bool include_builtin=false)
writeTreeNodesModelXML generates an XMl that contains the manifests in the <TreeNodesModel>