Skip to content

Commit 15fd5b0

Browse files
authored
Merge pull request #543 from PickNikRobotics/add-mujoco-objectives-to-all-configs
Add MujocoBehaviorsLoader and mujoco_objectives to all robot configs
2 parents 5ba4180 + 1ee2277 commit 15fd5b0

13 files changed

Lines changed: 98 additions & 10 deletions

File tree

src/april_tag_sim/config/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ objectives:
2323
# Specify source folder for objectives
2424
# [Required]
2525
objective_library_paths:
26+
mujoco_objectives:
27+
package_name: "moveit_pro_objectives"
28+
relative_path: "objectives/mujoco"
2629
sim_objectives:
2730
package_name: "april_tag_sim"
2831
relative_path: "objectives"

src/april_tag_sim/description/scene.xml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,28 @@
141141
<include file="ur5e/ur5e_linear_rail.xml" />
142142
</worldbody>
143143

144-
<!-- <keyframe>-->
145-
<!-- <key-->
146-
<!-- qpos="-0.886764 0.727551 0.472375 -0.834559 -6.95805e-05 -6.1375e-05 -0.550919 -0.499647 0.689928 0.470942 -0.749838 3.91843e-05 -5.08119e-05 -0.661622 -0.3609 0.609537 0.470941 -0.757741 2.96011e-05 4.00136e-05 -0.652556 -0.303591 0.696467 0.470989 -0.7788 -5.32927e-05 2.99347e-06 -0.627272 -0.000373058 0.88828 0.473534 -0.838137 -1.0566e-05 -3.07868e-06 0.54546 -0.0963647 0.840186 0.473528 0.281469 -1.36042e-05 6.60035e-06 -0.95957 0.0484372 0.842182 0.473688 -0.758342 6.07647e-06 2.73022e-05 -0.651856 0.2 0.75 0.499376 1 0 0 0 1.70629e-05 0.749992 0.499377 1 0.00016562 0.000360588 1.95345e-10 -0.2 0.75 0.499376 1 0 0 0 0 0 -1.88491 1.10028 -1.25653 -1.57075 -1.08677e-12 0.0208231 0.000536851 0.0221006 -0.022866 0.020837 0.000547055 0.0221413 -0.0229382"-->
147-
<!-- qvel="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"-->
148-
<!-- ctrl="0 -1.8849 1.0997 -1.2566 -1.57075 0 0 0"-->
149-
<!-- />-->
150-
<!-- </keyframe>-->
144+
<keyframe>
145+
<!-- qpos layout: -->
146+
<!-- block1..block6 freejoints [x y z qw qx qy qz] (6 x 7 = 42) -->
147+
<!-- linear_rail_joint slide (1) -->
148+
<!-- shoulder_pan, shoulder_lift, elbow, wrist_1, wrist_2, wrist_3 (6) -->
149+
<!-- robotiq_85_right_knuckle_joint (1) -->
150+
<!-- 7 gripper mimic joints (7) -->
151+
<!-- total: 42 + 1 + 6 + 1 + 7 = 57 -->
152+
<key
153+
name="default"
154+
qpos="
155+
1.75 0.75 0.575 1 0 0 0
156+
1.0 0.75 0.575 1 0 0 0
157+
0.25 0.75 0.575 1 0 0 0
158+
-0.5 0.75 0.575 1 0 0 0
159+
-1.25 0.75 0.575 1 0 0 0
160+
-2.0 0.75 0.575 1 0 0 0
161+
0
162+
-1.88491 1.10028 -1.25653 -1.57075 0 0
163+
0
164+
0 0 0 0 0 0 0"
165+
ctrl="0 -1.8849 1.0997 -1.2566 -1.57075 0 0 0"
166+
/>
167+
</keyframe>
151168
</mujoco>

src/dual_arm_sim/config/config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ hardware:
3232
# Many of these are specific to the UR descriptions packages, and can be customized as needed.
3333
# [Optional]
3434
urdf_params:
35+
- mujoco_keyframe: "default"
3536
- mujoco_model: "description/mujoco/scene.xml"
3637
- mujoco_viewer: false
3738
simulated_hardware_launch_file:
@@ -86,6 +87,7 @@ objectives:
8687
- "moveit_pro::behaviors::MTCCoreBehaviorsLoader"
8788
- "moveit_pro::behaviors::VisionBehaviorsLoader"
8889
- "moveit_pro::behaviors::ConverterBehaviorsLoader"
90+
- "moveit_pro::behaviors::MujocoBehaviorsLoader"
8991
# Specify source folder for objectives
9092
# [Required]
9193
objective_library_paths:
@@ -101,6 +103,9 @@ objectives:
101103
visualization_objectives:
102104
package_name: "moveit_pro_objectives"
103105
relative_path: "objectives/visualization"
106+
mujoco_objectives:
107+
package_name: "moveit_pro_objectives"
108+
relative_path: "objectives/mujoco"
104109
custom_objectives:
105110
package_name: "dual_arm_sim"
106111
relative_path: "objectives"

src/factory_sim/config/config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ hardware:
4141
# Many of these are specific to the descriptions packages, and can be customized as needed.
4242
# [Optional]
4343
urdf_params:
44-
# Use "mock", "mujoco", or "real"
44+
# Use "mock", "mujoco", or "real"
4545
- hardware_interface: "mujoco"
4646
- mujoco_viewer: "false"
4747

@@ -124,6 +124,7 @@ objectives:
124124
- "moveit_pro::behaviors::MTCCoreBehaviorsLoader"
125125
- "moveit_pro::behaviors::VisionBehaviorsLoader"
126126
- "moveit_pro::behaviors::ConverterBehaviorsLoader"
127+
- "moveit_pro::behaviors::MujocoBehaviorsLoader"
127128
# Specify source folder for objectives
128129
# [Required]
129130
objective_library_paths:
@@ -139,6 +140,9 @@ objectives:
139140
visualization_objectives:
140141
package_name: "moveit_pro_objectives"
141142
relative_path: "objectives/visualization"
143+
mujoco_objectives:
144+
package_name: "moveit_pro_objectives"
145+
relative_path: "objectives/mujoco"
142146
sim_objectives:
143147
package_name: "factory_sim"
144148
relative_path: "objectives"

src/factory_sim/description/scene.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,4 +412,25 @@
412412

413413
<!-- Add welds for suction gripping of parts -->
414414
<include file="box-welds.xml" />
415+
416+
<keyframe>
417+
<!-- qpos layout: -->
418+
<!-- robot [joint_1..joint_6] (6) -->
419+
<!-- shelf freejoint [x y z qw qx qy qz] (7) -->
420+
<!-- bracket-0 freejoint (7), bracket-1 freejoint (7), bracket-2 freejoint (7) -->
421+
<!-- suction_tool (gripper_base) freejoint (7) -->
422+
<!-- inspection_tool freejoint (7) -->
423+
<key
424+
name="default"
425+
qpos="
426+
0 0 0 0 0 0
427+
0.25 -0.4 0.2301 1 0 0 0
428+
-0.42 0.5 0.35 1 0 0 0
429+
-0.42 0.56 0.40 1 0 0 0
430+
-0.42 0.62 0.45 1 0 0 0
431+
0.25 0.08 0.3 0 1 0 0
432+
0.25 -0.08 0.3 0 1 0 0"
433+
ctrl="0 0 0 0 0 0"
434+
/>
435+
</keyframe>
415436
</mujoco>

src/grinding_sim/config/config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ hardware:
4141
# Many of these are specific to the descriptions packages, and can be customized as needed.
4242
# [Optional]
4343
urdf_params:
44-
# Use "mock", "mujoco", or "real"
44+
- mujoco_keyframe: "default"
45+
# Use "mock", "mujoco", or "real"
4546
- hardware_interface: "mujoco"
4647

4748
# Sets ROS global params for launch.
@@ -115,6 +116,7 @@ objectives:
115116
- "moveit_pro::behaviors::MTCCoreBehaviorsLoader"
116117
- "moveit_pro::behaviors::VisionBehaviorsLoader"
117118
- "moveit_pro::behaviors::ConverterBehaviorsLoader"
119+
- "moveit_pro::behaviors::MujocoBehaviorsLoader"
118120
# Specify source folder for objectives
119121
# [Required]
120122
objective_library_paths:
@@ -130,6 +132,9 @@ objectives:
130132
visualization_objectives:
131133
package_name: "moveit_pro_objectives"
132134
relative_path: "objectives/visualization"
135+
mujoco_objectives:
136+
package_name: "moveit_pro_objectives"
137+
relative_path: "objectives/mujoco"
133138
sim_objectives:
134139
package_name: "grinding_sim"
135140
relative_path: "objectives"

src/kitchen_sim/config/config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ hardware:
3333
# Many of these are specific to the UR descriptions packages, and can be customized as needed.
3434
# [Optional]
3535
urdf_params:
36+
- mujoco_keyframe: "default"
3637
- mujoco_model: "description/mujoco/scene.xml"
3738
- mujoco_viewer: false
3839
simulated_hardware_launch_file:
@@ -52,6 +53,7 @@ objectives:
5253
- "moveit_pro::behaviors::MTCCoreBehaviorsLoader"
5354
- "moveit_pro::behaviors::VisionBehaviorsLoader"
5455
- "moveit_pro::behaviors::ConverterBehaviorsLoader"
56+
- "moveit_pro::behaviors::MujocoBehaviorsLoader"
5557
# Specify source folder for objectives
5658
# [Required]
5759
objective_library_paths:
@@ -67,6 +69,9 @@ objectives:
6769
visualization_objectives:
6870
package_name: "moveit_pro_objectives"
6971
relative_path: "objectives/visualization"
72+
mujoco_objectives:
73+
package_name: "moveit_pro_objectives"
74+
relative_path: "objectives/mujoco"
7075
sim_objectives:
7176
package_name: "kitchen_sim"
7277
relative_path: "objectives"

src/kitchen_sim/description/mujoco/scene.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
fr3_finger1 - We control only one finger.
158158
-->
159159
<key
160-
name="home"
160+
name="default"
161161
qpos="0 -0.7854 0 -2.3562 0 1.5707 0.7853 0.035 0.035 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0.6 0.96 0 0 0 0"
162162
ctrl="0 -0.7854 0 -2.3562 0 1.5707 0.7853 0.035"
163163
/>

src/lab_sim/config/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ hardware:
1616
package: "lab_sim"
1717
path: "config/moveit/picknik_ur.srdf"
1818
urdf_params:
19+
- mujoco_keyframe: "default"
1920
- mujoco_model: "description/scene.xml"
2021
- mujoco_viewer: false
2122

src/moveit_pro_kinova_configs/kinova_sim/config/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ hardware:
5151
# Many of these are specific to the UR descriptions packages, and can be customized as needed.
5252
# [Optional]
5353
urdf_params:
54+
- mujoco_keyframe: "default"
5455
- arm: "gen3"
5556
- dof: "7"
5657
- vision: "false"

0 commit comments

Comments
 (0)