Go to the documentation of this file. 1 #ifndef XML_PARSING_BT_H
2 #define XML_PARSING_BT_H
7 #include <unordered_map>
30 bool add_includes =
true)
override;
37 std::string main_tree_to_execute = {})
override;
43 std::unique_ptr<PImpl>
_p;
47 const std::unordered_map<std::string, NodeType>& registered_nodes);
59 bool include_builtin =
false);
82 bool add_builtin_models);
86 #endif // XML_PARSING_BT_H
void clearInternalState() override
void loadFromText(const std::string &xml_text, bool add_includes=true) override
std::vector< std::string > registeredBehaviorTrees() const override
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
XMLParser & operator=(const XMLParser &other)=delete
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::unique_ptr< PImpl > _p
std::shared_ptr< Blackboard > Ptr
Tree instantiateTree(const Blackboard::Ptr &root_blackboard, std::string main_tree_to_execute={}) override
XMLParser(const BehaviorTreeFactory &factory)
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
void loadFromFile(const std::filesystem::path &filename, bool add_includes=true) override
void VerifyXML(const std::string &xml_text, const std::unordered_map< std::string, NodeType > ®istered_nodes)
The XMLParser is a class used to read the model of a BehaviorTree from file or text and instantiate t...
static const char * xml_text
std::string writeTreeXSD(const BehaviorTreeFactory &factory)
writeTreeXSD generates an XSD for the nodes defined in the factory
std::string writeTreeNodesModelXML(const BehaviorTreeFactory &factory, bool include_builtin=false)
writeTreeNodesModelXML generates an XMl that contains the manifests in the <TreeNodesModel>
The BehaviorTreeParser is a class used to read the model of a BehaviorTree from file or text and inst...