-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbt_nav_mememan_interrupt.xml
29 lines (28 loc) · 1.08 KB
/
bt_nav_mememan_interrupt.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<root main_tree_to_execute = "MainTree">
<BehaviorTree ID="MainTree">
<Sequence>
<SetBlackboard output_key="Goal_a" value="-0.579;-1.341;0.0;1.0" />
<SetBlackboard output_key="Goal_b" value="5.214;-1.533;0.0;1.0" />
<SetBlackboard output_key="Goal_c" value="-1.588;1.253;0.0;1.0" />
<Fallback>
<ReactiveSequence>
<InterruptEvent event="gohome"/>
<Repeat num_cycles="10">
<Sequence>
<SubTree ID="MoveRobot" target="Goal_a" />
<SubTree ID="MoveRobot" target="Goal_b" />
</Sequence>
</Repeat>
</ReactiveSequence>
<Sequence>
<SubTree ID="MoveRobot" target="Goal_c" />
</Sequence>
</Fallback>
</Sequence>
</BehaviorTree>
<BehaviorTree ID="MoveRobot">
<Sequence name="SetGoal">
<MoveBase goal="{target}" />
</Sequence>
</BehaviorTree>
</root>