|
5 | 5 | <Parallel failure_threshold="1" success_threshold="2"> |
6 | 6 | <Sequence name="Robot1"> |
7 | 7 | <Action ID="Init"/> |
8 | | - <Action ID="MoveToTable"/> |
| 8 | + <Fallback> |
| 9 | + <Condition ID="atTableSpot" spot="table-front"/> |
| 10 | + <Action ID="MoveToTable"/> |
| 11 | + </Fallback> |
| 12 | + <Action ID="PickBottle"/> |
| 13 | + <Action ID="PourBottle"/> |
| 14 | + <Action ID="PlaceBottle"/> |
9 | 15 | </Sequence> |
10 | 16 | <Sequence name="Robot2"> |
11 | | - <Action ID="InitWithBroom" |
12 | | - host_name="localhost" host_port="9091"/> |
13 | | - <Action ID="MoveToBroom" |
14 | | - host_name="localhost" host_port="9091"/> |
| 17 | + <Action ID="InitWithBroom"/> |
| 18 | + <Fallback> |
| 19 | + <Condition ID="atBroomSpot" spot="broom-front"/> |
| 20 | + <Action ID="MoveToBroom"/> |
| 21 | + </Fallback> |
| 22 | + <Timeout msec="5000"> |
| 23 | + <Action ID="SweepFloor"/> |
| 24 | + </Timeout> |
15 | 25 | </Sequence> |
16 | 26 | </Parallel> |
17 | 27 | </BehaviorTree> |
18 | 28 | <!-- ////////// --> |
19 | 29 | <TreeNodesModel> |
20 | | - <RemoteAction ID="Init" server_name="/robot1/init" |
| 30 | + <!-- Robot1 --> |
| 31 | + <RemoteAction ID="Init" server_name="/t08_multimaster/robot1/init" |
21 | 32 | host_name="localhost" host_port="9090"/> |
22 | | - <RemoteAction ID="MoveToTable" server_name="/robot1/move" |
| 33 | + <RemoteAction ID="MoveToTable" server_name="/t08_multimaster/robot1/move" |
23 | 34 | host_name="localhost" host_port="9090"/> |
| 35 | + <RemoteAction ID="PickBottle" server_name="/t08_multimaster/robot1/pick" |
| 36 | + host_name="localhost" host_port="9090"/> |
| 37 | + <RemoteAction ID="PourBottle" server_name="/t08_multimaster/robot1/pour" |
| 38 | + host_name="localhost" host_port="9090"/> |
| 39 | + <RemoteAction ID="PlaceBottle" server_name="/t08_multimaster/robot1/place" |
| 40 | + host_name="localhost" host_port="9090"/> |
| 41 | + <RemoteCondition ID="atTableSpot" service_name="/t08_multimaster/robot1/atspot" |
| 42 | + host_name="localhost" host_port="9090"> |
| 43 | + <input_port name="spot" type="string"/> |
| 44 | + </RemoteCondition> |
| 45 | + |
| 46 | + <!-- Robot2 --> |
| 47 | + <RemoteAction ID="InitWithBroom" server_name="/t08_multimaster/robot2/init" |
| 48 | + host_name="localhost" host_port="9091"/> |
| 49 | + <RemoteAction ID="MoveToBroom" server_name="/t08_multimaster/robot2/move" |
| 50 | + host_name="localhost" host_port="9091"/> |
| 51 | + <RemoteAction ID="SweepFloor" server_name="/t08_multimaster/robot2/sweep" |
| 52 | + host_name="localhost" host_port="9091"/> |
| 53 | + <RemoteCondition ID="atBroomSpot" service_name="/t08_multimaster/robot2/atspot" |
| 54 | + host_name="localhost" host_port="9091"> |
| 55 | + <input_port name="spot" type="string"/> |
| 56 | + </RemoteCondition> |
24 | 57 |
|
25 | | - <RemoteAction ID="InitWithBroom" server_name="/robot2/init"/> |
26 | | - <RemoteAction ID="MoveToBroom" server_name="/robot2/move"/> |
27 | 58 | </TreeNodesModel> |
28 | 59 | <!-- ////////// --> |
29 | 60 | </root> |
|
0 commit comments