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

Skip to content

Commit 8f000d6

Browse files
committed
cleanups: site removed and tag <remap> descouraged
1 parent ed16076 commit 8f000d6

File tree

91 files changed

+5
-21533
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+5
-21533
lines changed

examples/t06_subtree_port_remapping.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ static const char* xml_text = R"(
2828
<Sequence name="main_sequence">
2929
<SetBlackboard output_key="move_goal" value="1;2;3" />
3030
<SubTree ID="MoveRobot" target="move_goal" output="move_result" />
31-
<!-- elternatively use the verbose version...
32-
<SubTree ID="MoveRobot">
33-
<remap internal="target" external="move_goal"/>
34-
<remap internal="output" external="move_result"/>
35-
</SubTree>
36-
-->
3731
<SaySomething message="{move_result}"/>
3832
</Sequence>
3933
@@ -56,12 +50,6 @@ static const char* xml_text = R"(
5650

5751
// clang-format on
5852

59-
/** using the <remap> tag we where able to connect the ports as follows:
60-
*
61-
* MoveRobot->target is connected to MainTree->move_goal
62-
* MoveRobot->output is connected to MainTree->move_result
63-
*
64-
*/
6553

6654
using namespace BT;
6755
using namespace DummyNodes;

gtest/gtest_factory.cpp

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -165,34 +165,8 @@ const std::string xml_text_issue = R"(
165165

166166

167167
// clang-format off
168-
static const char* xml_ports_subtree = R"(
169-
170-
<root main_tree_to_execute = "MainTree" >
171-
172-
<BehaviorTree ID="TalkToMe">
173-
<Sequence>
174-
<SaySomething message="{hello_msg}" />
175-
<SaySomething message="{bye_msg}" />
176-
<SetBlackboard output_key="output" value="done!" />
177-
</Sequence>
178-
</BehaviorTree>
179168

180-
<BehaviorTree ID="MainTree">
181-
<Sequence>
182-
<SetBlackboard output_key="talk_hello" value="hello" />
183-
<SetBlackboard output_key="talk_bye" value="bye bye" />
184-
<SubTree ID="TalkToMe">
185-
<remap internal="hello_msg" external="talk_hello" />
186-
<remap internal="bye_msg" external="talk_bye" />
187-
<remap internal="output" external="talk_out" />
188-
</SubTree>
189-
<SaySomething message="{talk_out}" />
190-
</Sequence>
191-
</BehaviorTree>
192-
193-
</root> )";
194-
195-
static const char* xml_ports_subtre_compact = R"(
169+
static const char* xml_ports_subtree = R"(
196170
197171
<root main_tree_to_execute = "MainTree" >
198172
@@ -208,7 +182,9 @@ static const char* xml_ports_subtre_compact = R"(
208182
<Sequence>
209183
<SetBlackboard output_key="talk_hello" value="hello" />
210184
<SetBlackboard output_key="talk_bye" value="bye bye" />
211-
<SubTree ID="TalkToMe" hello_msg="{talk_hello}" bye_msg="{talk_bye}" output="{talk_out}" />
185+
<SubTree ID="TalkToMe" hello_msg="talk_hello"
186+
bye_msg="talk_bye"
187+
output="talk_out" />
212188
<SaySomething message="{talk_out}" />
213189
</Sequence>
214190
</BehaviorTree>

0 commit comments

Comments
 (0)