Skip to content

Commit 6396ee1

Browse files
authored
Merge pull request #430 from PickNikRobotics/14875-move-flasks-fix
14875 Moving waypoint in Move Flasks to Burners Objective to be more robust and not collide with table
2 parents 3d4f445 + 26e509a commit 6396ee1

File tree

5 files changed

+145
-106
lines changed

5 files changed

+145
-106
lines changed

src/lab_sim/objectives/constrained_pick_place.xml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
2121
keep_orientation_tolerance="0.05"
2222
keep_orientation_link_names="grasp_link"
23+
seed="0"
2324
/>
2425
<SubTree ID="Open Gripper" />
2526
<SubTree
@@ -30,14 +31,6 @@
3031
place="Flask 1d - Place"
3132
name="Flask 1"
3233
/>
33-
<SubTree
34-
ID="Constrained Pick and Place Subtree"
35-
pre_pick="Flask 2a - Pre Pick"
36-
pick="Flask 2b - Pick"
37-
pre_place="Flask 2c - Pre Place"
38-
place="Flask 2d - Place"
39-
name="Flask 2"
40-
/>
4134
<SubTree
4235
ID="Constrained Pick and Place Subtree"
4336
pre_pick="Flask 3a - Pre Pick"
@@ -46,6 +39,15 @@
4639
place="Flask 3d - Place"
4740
name="Flask 3"
4841
/>
42+
<SubTree
43+
ID="Constrained Pick and Place Subtree"
44+
pre_pick="Flask 2a - Pre Pick"
45+
pick="Flask 2b - Pick"
46+
pre_place="Flask 2c - Pre Place"
47+
place="Flask 2d - Place"
48+
name="Flask 2"
49+
_collapsed="true"
50+
/>
4951
</Control>
5052
</BehaviorTree>
5153
<TreeNodesModel>

src/lab_sim/objectives/load_and_execute_joint_trajectory.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="UTF-8" ?>
22
<root BTCPP_format="4" main_tree_to_execute="Load and Execute Joint Trajectory">
33
<!--//////////-->
44
<BehaviorTree
55
ID="Load and Execute Joint Trajectory"
66
_description="Load a trajectory that was saved as a YAML file"
7-
_favorite="true"
7+
_favorite="false"
88
>
99
<Control ID="Sequence" name="TopLevelSequence">
1010
<!--Make sure to move the robot to the same starting position as the saved trajectory starts, otherwise the joint_trajectory_controller will use joint interpolation to align the robot with the path-->

src/lab_sim/objectives/ml_auto_grasp_object_from_clicked_point.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
marker_lifetime="0.000000"
120120
mesh_path="package://lab_sim/objectives/gripper_token.dae"
121121
mesh_pose="{grasp_pose}"
122+
mesh_name="mesh"
122123
/>
123124
<SubTree
124125
ID="Pick from Pose With Approval"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<root BTCPP_format="4" main_tree_to_execute="show grasp_link">
3+
<!--//////////-->
4+
<BehaviorTree ID="show grasp_link" _description="" _favorite="false">
5+
<Control ID="Sequence" name="TopLevelSequence">
6+
<SubTree
7+
ID="Get Transform Frame Pose"
8+
_collapsed="true"
9+
requested_pose="{grasp_pose}"
10+
requested_frame="grasp_link"
11+
/>
12+
<Action
13+
ID="VisualizePose"
14+
marker_lifetime="0.000000"
15+
marker_name="pose"
16+
marker_size="0.100000"
17+
pose="{grasp_pose}"
18+
/>
19+
<Action
20+
ID="VisualizeMesh"
21+
marker_lifetime="0.000000"
22+
mesh_name="mesh"
23+
mesh_path="package://lab_sim/objectives/gripper_token.dae"
24+
mesh_pose="{grasp_pose}"
25+
/>
26+
</Control>
27+
</BehaviorTree>
28+
<TreeNodesModel>
29+
<SubTree ID="show grasp_link">
30+
<MetadataFields>
31+
<Metadata runnable="true" />
32+
<Metadata subcategory="Application - Advanced Examples" />
33+
</MetadataFields>
34+
</SubTree>
35+
</TreeNodesModel>
36+
</root>

src/lab_sim/waypoints/ur_waypoints.yaml

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@
107107
- wrist_2_joint
108108
- wrist_3_joint
109109
position:
110-
- 0.012216800212355133
111-
- 0.04970573711721682
112-
- 0.8984514823861834
113-
- 0.1063125865651509
114-
- -0.41508272007941566
115-
- -2.751881697859383
116-
- -2.4680827148226405
117-
- 0.06614325541815676
110+
- 0.7639671853765404
111+
- 0.6551230244120644
112+
- -2.597276923961381
113+
- -1.7207992223871735
114+
- -1.8054851963579275
115+
- -2.9105970459798978
116+
- -1.012936176528235
117+
- 3.2513966966550787
118118
velocity: []
119119
multi_dof_joint_state:
120120
header:
@@ -150,14 +150,14 @@
150150
- wrist_2_joint
151151
- wrist_3_joint
152152
position:
153-
- 0.052558135449284636
154-
- 0.1015560185661144
155-
- 0.8742197383524934
156-
- 0.596069253342475
157-
- -0.5146934305221308
158-
- -3.1414852154720943
159-
- -2.4442469657377055
160-
- 0.06294310366684684
153+
- 0.7639662602883518
154+
- 0.6416717485181368
155+
- -2.4872028523038185
156+
- -2.2797066973266604
157+
- -2.135135409489318
158+
- -2.0350474070457296
159+
- -0.9043501601840921
160+
- 3.2728332839692875
161161
velocity: []
162162
multi_dof_joint_state:
163163
header:
@@ -193,14 +193,14 @@
193193
- wrist_2_joint
194194
- wrist_3_joint
195195
position:
196-
- 0.552721299565486
197-
- -0.8026817877894441
198-
- 0.7832655701857458
199-
- 0.2347983960726958
200-
- -0.47185366935901807
201-
- -2.944152059324353
202-
- -2.3543647658190983
203-
- -0.0324954245702678
196+
- 0.7639676351734388
197+
- -0.14695746092055925
198+
- -2.8650633002008017
199+
- -1.8611906531500544
200+
- -1.7478027758503683
201+
- -2.810467735524929
202+
- -1.2774332801079342
203+
- 3.2091308552581377
204204
velocity: []
205205
multi_dof_joint_state:
206206
header:
@@ -236,14 +236,14 @@
236236
- wrist_2_joint
237237
- wrist_3_joint
238238
position:
239-
- 0.5527237261550169
240-
- -0.8095633402493997
241-
- 0.8041978448752184
242-
- 0.3469595920821291
243-
- -0.4759133036391534
244-
- -3.0449635096222445
245-
- -2.3752901974217586
246-
- -0.03355586908682823
239+
- 0.7639636129146917
240+
- -0.14375285311965005
241+
- -2.8600433649921495
242+
- -1.9461602101793198
243+
- -1.8756681071759462
244+
- -2.597844115240611
245+
- -1.272458370221303
246+
- 3.209846268837379
247247
velocity: []
248248
multi_dof_joint_state:
249249
header:
@@ -279,14 +279,14 @@
279279
- wrist_2_joint
280280
- wrist_3_joint
281281
position:
282-
- 0.7888251346894957
283-
- 0.28410448263455473
284-
- 0.7522809111415887
285-
- 0.14258472176098788
286-
- -0.6567553362551677
287-
- -2.6535637271089603
288-
- -2.3237504598801015
289-
- -0.010010484715838389
282+
- 0.7639644752524631
283+
- 0.8130633024853088
284+
- -2.726859433670606
285+
- -1.8891510728754208
286+
- -1.424665285030513
287+
- -3.112945310941763
288+
- -1.1412179091798282
289+
- 3.2296261212002166
290290
velocity: []
291291
multi_dof_joint_state:
292292
header:
@@ -322,14 +322,14 @@
322322
- wrist_2_joint
323323
- wrist_3_joint
324324
position:
325-
- 0.017721560439610148
326-
- 0.2691509193711033
327-
- 0.7727615348146952
328-
- 0.5552397114893021
329-
- -0.5137325863770072
330-
- -3.0003468873078876
331-
- -2.335831248791311
332-
- 0.12529289653514364
325+
- 0.7639671534487822
326+
- 0.7786119481205361
327+
- -2.5914980762265736
328+
- -2.386004216551112
329+
- -1.882582057672306
330+
- -2.1695739396137577
331+
- -1.0073664867894194
332+
- 3.25251851297434
333333
velocity: []
334334
multi_dof_joint_state:
335335
header:
@@ -365,14 +365,14 @@
365365
- wrist_2_joint
366366
- wrist_3_joint
367367
position:
368-
- 0.5527279024765758
369-
- -0.9244326009773784
370-
- 0.8128532763795221
371-
- 0.19375908538144387
372-
- -0.4813430484021708
373-
- -2.882600666994581
374-
- -2.3839438626762592
375-
- -0.033962625761634384
368+
- 0.7639660563824677
369+
- -0.2402305144870719
370+
- -2.8832984482674955
371+
- -1.8018009466305653
372+
- -1.685247569441112
373+
- -2.956647634694288
374+
- -1.2898622616661428
375+
- 3.2014481210116723
376376
velocity: []
377377
multi_dof_joint_state:
378378
header:
@@ -408,14 +408,14 @@
408408
- wrist_2_joint
409409
- wrist_3_joint
410410
position:
411-
- 0.5527294577060091
412-
- -0.9178831799453755
413-
- 0.8032232530956076
414-
- 0.36305116959502753
415-
- -0.4822710241456316
416-
- -3.0466827988573497
417-
- -2.3743200968681815
418-
- -0.03356569648918818
411+
- 0.7639675199131791
412+
- -0.24086053204199623
413+
- -2.876977231591623
414+
- -1.939806049514917
415+
- -1.8984021894234757
416+
- -2.6063762242952886
417+
- -1.2836686932398813
418+
- 3.202498456119905
419419
velocity: []
420420
multi_dof_joint_state:
421421
header:
@@ -451,14 +451,14 @@
451451
- wrist_2_joint
452452
- wrist_3_joint
453453
position:
454-
- 0.017721719550362367
455-
- 0.10614201950655074
456-
- 0.6667921047157305
457-
- -0.020173732725037447
458-
- -0.48719718634786974
459-
- -2.46144527046315
460-
- -2.2314189585794835
461-
- 0.10080448035214111
454+
- 0.7639685849147584
455+
- 0.6446458760506458
456+
- -2.7780078487258892
457+
- -1.9155374976991195
458+
- -1.3864706183602202
459+
- -3.1216050652579663
460+
- -1.191550429146523
461+
- 3.221797617570794
462462
velocity: []
463463
multi_dof_joint_state:
464464
header:
@@ -494,14 +494,14 @@
494494
- wrist_2_joint
495495
- wrist_3_joint
496496
position:
497-
- 0.01772162964006715
498-
- 0.07592482714796696
499-
- 0.7452091128812429
500-
- 0.5731708863903833
501-
- -0.5272977039075434
502-
- -3.0065755351034587
503-
- -2.308742635428776
504-
- 0.11856214137460191
497+
- 0.7639682422101212
498+
- 0.6144316834131173
499+
- -2.6658657366983283
500+
- -2.367501290161342
501+
- -1.887225784038829
502+
- -2.176385304935698
503+
- -1.0805693269230385
504+
- 3.239557435454622
505505
velocity: []
506506
multi_dof_joint_state:
507507
header:
@@ -537,14 +537,14 @@
537537
- wrist_2_joint
538538
- wrist_3_joint
539539
position:
540-
- 0.7639667711919623
541-
- -0.8205919083342896
542-
- 0.6106411457210819
543-
- 0.09629022558040691
544-
- -0.4356003871725801
545-
- -2.8163100209411844
546-
- -2.181786596029688
547-
- -0.027837851359850115
540+
- 0.7639614914449789
541+
- -0.24670890913790466
542+
- -2.9097897371763177
543+
- -2.057135798403447
544+
- -1.2794632064231153
545+
- -3.1064892677695757
546+
- -1.3160558724133762
547+
- 3.197049363506155
548548
velocity: []
549549
multi_dof_joint_state:
550550
header:
@@ -580,14 +580,14 @@
580580
- wrist_2_joint
581581
- wrist_3_joint
582582
position:
583-
- 0.7639656639313784
584-
- -0.8204325716971375
585-
- 0.6051040370509869
586-
- 0.33021173155820605
587-
- -0.441945944944294
588-
- -3.047095890623255
589-
- -2.176250244653335
590-
- -0.02772141144783419
583+
- 0.7639590920670264
584+
- -0.25674010578815215
585+
- -2.904024374297564
586+
- -2.1809624103341
587+
- -1.4905916971704432
588+
- -2.771777026484768
589+
- -1.3103568767884126
590+
- 3.198001370172111
591591
velocity: []
592592
multi_dof_joint_state:
593593
header:

0 commit comments

Comments
 (0)