@@ -5,7 +5,7 @@ In the [first tutorial](tutorial-basics/tutorial_01_first_tree.md) this simple t
55was presented.
66
77``` XML
8- <root main_tree_to_execute = " MainTree " >
8+ <root BTCPP_format = " 4 " >
99 <BehaviorTree ID =" MainTree" >
1010 <Sequence name =" root_sequence" >
1111 <SaySomething name =" action_hello" message =" Hello" />
@@ -23,10 +23,7 @@ You may notice that:
2323
2424- The tag ` <BehaviorTree> ` should have the attribute ` [ID] ` .
2525
26- - The tag ` <root> ` should contain the attribute ` [main_tree_to_execute] ` .
27-
28- - The attribute ` [main_tree_to_execute] ` is mandatory if the file contains multiple ` <BehaviorTree> ` ,
29- optional otherwise.
26+ - The tag ` <root> ` should contain the attribute ` [BTCPP_format] ` .
3027
3128- Each TreeNode is represented by a single tag. In particular:
3229
@@ -56,7 +53,7 @@ In the following example:
5653 the blackboard called "my_message";
5754
5855``` XML
59- <root main_tree_to_execute = " MainTree " >
56+ <root BTCPP_format = " 4 " >
6057 <BehaviorTree ID =" MainTree" >
6158 <Sequence name =" root_sequence" >
6259 <SaySomething message =" Hello" />
@@ -80,7 +77,7 @@ We will call the former syntax "__compact__" and the latter "__explicit__".
8077The first example represented with the explicit syntax would become:
8178
8279``` XML
83- <root main_tree_to_execute = " MainTree " >
80+ <root BTCPP_format = " 4 " >
8481 <BehaviorTree ID =" MainTree" >
8582 <Sequence name =" root_sequence" >
8683 <Action ID =" SaySomething" name =" action_hello" message =" Hello" />
@@ -102,7 +99,7 @@ must be modified as follows:
10299
103100
104101``` XML
105- <root main_tree_to_execute = " MainTree " >
102+ <root BTCPP_format = " 4 " >
106103 <BehaviorTree ID =" MainTree" >
107104 <Sequence name =" root_sequence" >
108105 <SaySomething name =" action_hello" message =" Hello" />
@@ -134,7 +131,7 @@ Let's say that we want to incapsulate few action into the behaviorTree "__GraspO
134131(being optional, attributes [ name] are omitted for simplicity).
135132
136133``` XML
137- <root main_tree_to_execute = " MainTree " >
134+ <root BTCPP_format = " 4 " >
138135
139136 <BehaviorTree ID =" MainTree" >
140137 <Sequence >
@@ -173,7 +170,7 @@ using the previous example, we may split the two behavior trees into two files:
173170``` XML hl_lines="5"
174171 <!-- file maintree.xml -->
175172
176- <root main_tree_to_execute = " MainTree " >
173+ <root BTCPP_format = " 4 " >
177174
178175 <include path =" grasp.xml" />
179176
@@ -189,7 +186,7 @@ using the previous example, we may split the two behavior trees into two files:
189186``` XML
190187 <!-- file grasp.xml -->
191188
192- <root main_tree_to_execute = " GraspObject " >
189+ <root BTCPP_format = " 4 " >
193190 <BehaviorTree ID =" GraspObject" >
194191 <Sequence >
195192 <Action ID =" OpenGripper" />
0 commit comments