Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 856cebe

Browse files
comment update
1 parent 15816fe commit 856cebe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/behaviortree_cpp_v3/decorators/subtree_node.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ class SubtreeNode : public DecoratorNode
3838
<BehaviorTree ID="MainTree">
3939
<Sequence>
4040
41-
<SetBlackboard value="Hello" output_key="myParam" />
41+
<SetBlackboard value="Hello World" output_key="myParam" />
4242
<SubTreePlus ID="Talk" param="{myParam}" />
4343
44-
<SubTreePlus ID="Talk" param="World" />
44+
<SubTreePlus ID="Talk" param="Listen to me" />
4545
4646
<SetBlackboard value="Auto remapped" output_key="param" />
4747
<SubTreePlus ID="Talk" __autoremap="1" />
@@ -56,14 +56,14 @@ class SubtreeNode : public DecoratorNode
5656
5757
* You may notice three different approaches to remapping:
5858
*
59-
* 1) Subtree: "{param}" -> Parent: "{myParam}" -> Value: "Hello"
59+
* 1) Subtree: "{param}" -> Parent: "{myParam}" -> Value: "Hello World"
6060
* Classical remapping from one port to another, but you need to use the syntax
6161
* {myParam} to say that you are remapping the another port.
6262
*
63-
* 2) Subtree: "{param}" -> Value: "World"
63+
* 2) Subtree: "{param}" -> Value: "Listen to me"
6464
* syntax without {}, in this case param directly point to the string "World".
6565
*
66-
* 3) Subtree: "{param}" -> Parent: "{parent}"
66+
* 3) Subtree: "{param}" -> Parent: "{parent}" -> Value: "Auto remapped"
6767
* Setting to true (or 1) the attribute "__autoremap", we are automatically remapping
6868
* each port. Usefull to avoid some boilerplate.
6969

0 commit comments

Comments
 (0)