Go to the documentation of this file.
7 <root BTCPP_format="4" main_tree_to_execute="MainTree" >
8 <BehaviorTree ID="MainTree">
10 <Script code="vect:='1,2,3,4'"/>
11 <PrintVector value="{vect}"/>;
12 <SubTree ID="MySub" v4="{vect}"/>
16 <BehaviorTree ID="MySub">
17 <PrintVector value="{v4}"/>;
23 int main(
int argc,
char** argv)
28 std::string plugin_path =
"test_plugin_action.so";
33 plugin_path = argv[1];
void registerFromPlugin(const std::string &file_path)
registerFromPlugin load a shared library and execute the function BT_REGISTER_NODES (see macro).
static const char * xml_text
NodeStatus tickWhileRunning(std::chrono::milliseconds sleep_time=std::chrono::milliseconds(10))
Tree createTreeFromText(const std::string &text, Blackboard::Ptr blackboard=Blackboard::create())
createTreeFromText will parse the XML directly from string. The XML needs to contain either a single ...
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
int main(int argc, char **argv)
std::string writeTreeNodesModelXML(const BehaviorTreeFactory &factory, bool include_builtin=false)
writeTreeNodesModelXML generates an XMl that contains the manifests in the <TreeNodesModel>