Skip to content

Commit 9d8db3c

Browse files
committed
Clean up Python example XMLs.
1 parent ee7f464 commit 9d8db3c

File tree

3 files changed

+23
-27
lines changed

3 files changed

+23
-27
lines changed

python_examples/ex03_stateful_nodes.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@
1818
<root BTCPP_format="4" >
1919
2020
<BehaviorTree ID="MainTree">
21-
<Sequence>
22-
<!-- Interpolate from the initial position to the final one printing
23-
at each step. -->
24-
<ReactiveSequence name="root">
25-
<Print value="{interpolated}" />
26-
<Interpolate x0="[1.0, 0.0]" x1="[0.0, 1.0]" out="{interpolated}" />
27-
</ReactiveSequence>
28-
</Sequence>
21+
<!-- Interpolate from the initial position to the final one printing at
22+
each step. -->
23+
<ReactiveSequence name="root">
24+
<Print value="{interpolated}" />
25+
<Interpolate x0="[1.0, 0.0]" x1="[0.0, 1.0]" out="{interpolated}" />
26+
</ReactiveSequence>
2927
</BehaviorTree>
3028
3129
</root>

python_examples/ex04_ros_interop.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@
2828
<root BTCPP_format="4" >
2929
3030
<BehaviorTree ID="MainTree">
31-
<Sequence>
32-
<ReactiveSequence name="root">
33-
<Print value="{tf}" />
34-
<GetRosTransform frame_id="odom" child_frame_id="base_link" tf="{tf}" />
35-
</ReactiveSequence>
36-
</Sequence>
31+
<ReactiveSequence name="root">
32+
<Print value="{tf}" />
33+
<GetRosTransform frame_id="odom" child_frame_id="base_link" tf="{tf}" />
34+
</ReactiveSequence>
3735
</BehaviorTree>
3836
3937
</root>

python_examples/ex05_type_interop.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
<root BTCPP_format="4" >
1212
1313
<BehaviorTree ID="MainTree">
14-
<Sequence name="root">
15-
<!-- (C++ node) Put a C++ object on the blackboard -->
16-
<RandomVector vector="{simple}" />
17-
<!-- (Py node) Print it from Python -->
18-
<Print value="{simple}" />
19-
20-
<!-- (Py node) Put a Python type onto the blackboard -->
21-
<PutVector output="{complex}" />
22-
<!-- (C++ node) Print it from C++ using native C++ types -->
23-
<PrintComplex input="{complex}" />
24-
<!-- (Py node) Print it from Python -->
25-
<Print value="{complex}" />
26-
</Sequence>
14+
<Sequence name="root">
15+
<!-- (C++ node) Put a C++ object on the blackboard -->
16+
<RandomVector vector="{simple}" />
17+
<!-- (Py node) Print it from Python -->
18+
<Print value="{simple}" />
19+
20+
<!-- (Py node) Put a Python type onto the blackboard -->
21+
<PutVector output="{complex}" />
22+
<!-- (C++ node) Print it from C++ using native C++ types -->
23+
<PrintComplex input="{complex}" />
24+
<!-- (Py node) Print it from Python -->
25+
<Print value="{complex}" />
26+
</Sequence>
2727
</BehaviorTree>
2828
2929
</root>

0 commit comments

Comments
 (0)