15#include "auto_apms_behavior_tree/util/node.hpp"
23 model::StartExecutor ele = parent.
insertNode<model::StartExecutor>(before_this);
24 ele.set_build_request(tree_str);
25 ele.set_build_handler(
"auto_apms_behavior_tree::TreeFromStringBuildHandler");
41 model::StartExecutor ele = parent.
insertNode<model::StartExecutor>(before_this);
42 ele.set_build_request(identity.
str());
43 ele.set_build_handler(
"auto_apms_behavior_tree::TreeFromResourceBuildHandler");
Handle for a single node of a TreeDocument.
NodeElement insertNode(const std::string &name, const NodeElement *before_this=nullptr)
Add a new node to the children of this node.
Handle for a single behavior tree of a TreeDocument.
NodeManifest getRequiredNodeManifest() const
Assemble the node manifest that is required for successfully creating an instance of this tree.
std::string writeToString() const
Write this behavior tree to an XML encoded in a string.
model::StartExecutor insertStartExecutorFromResource(core::TreeDocument::NodeElement &parent, const core::TreeResourceIdentity &identity, const core::TreeDocument::NodeElement *before_this=nullptr)
Helper that extends the children of a given parent node by a StartExecutor node for a specific behavi...
model::StartExecutor insertStartExecutorFromString(core::TreeDocument::NodeElement &parent, const std::string &tree_str, const core::TreeDocument::NodeElement *before_this=nullptr)
Helper that extends the children of a given parent node by a StartExecutor node for a specific behavi...
Useful tooling for incorporating behavior trees for task development.
Struct that encapsulates the identity string for a declared behavior tree.
std::string str() const
Create the corresponding identity string.