Functions | Variables
t07_load_multiple_xml.cpp File Reference
#include "dummy_nodes.h"
#include "behaviortree_cpp/bt_factory.h"
Include dependency graph for t07_load_multiple_xml.cpp:

Go to the source code of this file.

Functions

int main ()
 

Variables

static const char * xml_text_main
 
static const char * xml_text_subA
 
static const char * xml_text_subB
 

Function Documentation

◆ main()

int main ( )

Definition at line 40 of file t07_load_multiple_xml.cpp.

Variable Documentation

◆ xml_text_main

const char* xml_text_main
static
Initial value:
= R"(
<root BTCPP_format="4">
<BehaviorTree ID="MainTree">
<Sequence>
<SaySomething message="starting MainTree" />
<SubTree ID="SubA"/>
<SubTree ID="SubB"/>
</Sequence>
</BehaviorTree>
</root> )"

This example show how it is possible to:

  • load BehaviorTrees from multiple files manually (without the tag)
  • instantiate a specific tree, instead of the one specified by [main_tree_to_execute]

Definition at line 11 of file t07_load_multiple_xml.cpp.

◆ xml_text_subA

const char* xml_text_subA
static
Initial value:
= R"(
<root BTCPP_format="4">
<BehaviorTree ID="SubA">
<SaySomething message="Executing SubA" />
</BehaviorTree>
</root> )"

Definition at line 22 of file t07_load_multiple_xml.cpp.

◆ xml_text_subB

const char* xml_text_subB
static
Initial value:
= R"(
<root BTCPP_format="4">
<BehaviorTree ID="SubB">
<SaySomething message="Executing SubB" />
</BehaviorTree>
</root> )"

Definition at line 29 of file t07_load_multiple_xml.cpp.



behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:18