Skip to content

Commit 0f31687

Browse files
committed
mujoco model fixes and tweaks
1 parent 09789a5 commit 0f31687

File tree

7 files changed

+334
-72
lines changed

7 files changed

+334
-72
lines changed

src/moveit_pro_franka_configs/franka_dual_arm_sim/description/franka.urdf.xacro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<joint name="right_grasp_link_joint" type="fixed">
3535
<parent link="right_fr3_link8"/>
3636
<child link = "right_grasp_link"/>
37-
<origin xyz="0 0 0.15" rpy="0 0 -1.5708"/>
37+
<origin xyz="0 0 0" rpy="0 0 -1.5708"/>
3838
</joint>
3939

4040
<joint name="left_mount_joint" type="fixed">
@@ -64,9 +64,9 @@
6464
<!-- This link aligns the axes of the grasp frame to our required convention for motion planning tasks. -->
6565
<link name="left_grasp_link" />
6666
<joint name="left_grasp_link_joint" type="fixed">
67-
<parent link="left_fr3_link8"/>
67+
<parent link="world"/>
6868
<child link = "left_grasp_link"/>
69-
<origin xyz="0 0 0.15" rpy="0 0 -1.5708"/>
69+
<origin xyz="0 0 0" rpy="0 0 -1.5708"/>
7070
</joint>
7171

7272
<ros2_control name="franka_mujoco_simulation" type="system">

src/moveit_pro_franka_configs/franka_dual_arm_sim/description/mujoco/franka3.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<body
101101
name="left_arm"
102102
pos="0.035 0.050681 0.356"
103-
quat="0.8730 -0.4380 -0.0229 -0.2215"
103+
quat="0.8657172 -0.4369879 0.0223569 -0.2430545"
104104
>
105105
<body name="left_base" childclass="fr3">
106106
<body name="left_fr3_link0">
@@ -411,7 +411,7 @@
411411
<body
412412
name="right_arm"
413413
pos="0.035 -0.050681 0.356"
414-
quat="0.8730 0.4380 0.0229 0.2215"
414+
quat="0.8657172 0.4369879 0.0223569 0.2430545"
415415
>
416416
<body name="right_base" childclass="fr3">
417417
<body name="right_fr3_link0">

src/moveit_pro_franka_configs/franka_dual_arm_sim/description/mujoco/scene.xml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<include file="franka3.xml" />
33

44
<statistic center="0.2 0.2 0.5" extent="1.8" />
5-
<size nkey="1"/>
6-
<size nuser_jnt="0"/>
5+
<size nkey="1" />
6+
<size nuser_jnt="0" />
77

88
<visual>
99
<global azimuth="120" elevation="-21" fovy="58" />
@@ -68,32 +68,32 @@
6868
type="box"
6969
size="0.25 0.5 0.01"
7070
pos="0 0.9 0.0"
71-
rgba="0.7 0.3 0.3 1"
71+
rgba="0.3 0.7 0.3 1"
7272
/>
7373
<geom
7474
name="box_right"
7575
type="box"
7676
size="0.25 0.5 0.01"
7777
pos="0 -0.9 0.0"
78-
rgba="0.3 0.7 0.3 1"
78+
rgba="0.7 0.3 0.3 1"
7979
/>
8080

8181
<body name="block_green_1" pos="0.5 0 0.2">
8282
<freejoint name="block_green_1" />
8383
<geom type="box" size="0.025 0.025 0.025" rgba="0 0.8 0 1" />
8484
</body>
85-
<body name="block_green_2" pos="0.5 0.1 0.2">
85+
<!-- <body name="block_green_2" pos="0.5 0.1 0.2">
8686
<freejoint name="block_green_2" />
8787
<geom type="box" size="0.025 0.025 0.025" rgba="0 0.8 0 1" />
88-
</body>
88+
</body> -->
8989
<body name="block_green_3" pos="0.5 0.2 0.2">
9090
<freejoint name="block_green_3" />
9191
<geom type="box" size="0.025 0.025 0.025" rgba="0 0.8 0 1" />
9292
</body>
93-
<body name="block_green_4" pos="0.5 -0.1 0.2">
93+
<!-- <body name="block_green_4" pos="0.5 -0.1 0.2">
9494
<freejoint name="block_green_4" />
9595
<geom type="box" size="0.025 0.025 0.025" rgba="0 0.8 0 1" />
96-
</body>
96+
</body> -->
9797
<body name="block_green_5" pos="0.5 -0.2 0.2">
9898
<freejoint name="block_green_5" />
9999
<geom type="box" size="0.025 0.025 0.025" rgba="0 0.8 0 1" />
@@ -103,18 +103,18 @@
103103
<freejoint name="block_red_1" />
104104
<geom type="box" size="0.025 0.025 0.025" rgba="0.8 0 0 1" />
105105
</body>
106-
<body name="block_red_2" pos="0.6 0.1 0.2">
106+
<!-- <body name="block_red_2" pos="0.6 0.1 0.2">
107107
<freejoint name="block_red_2" />
108108
<geom type="box" size="0.025 0.025 0.025" rgba="0.8 0 0 1" />
109-
</body>
109+
</body> -->
110110
<body name="block_red_3" pos="0.6 0.2 0.2">
111111
<freejoint name="block_red_3" />
112112
<geom type="box" size="0.025 0.025 0.025" rgba="0.8 0 0 1" />
113113
</body>
114-
<body name="block_red_4" pos="0.6 -0.1 0.2">
114+
<!-- <body name="block_red_4" pos="0.6 -0.1 0.2">
115115
<freejoint name="block_red_4" />
116116
<geom type="box" size="0.025 0.025 0.025" rgba="0.8 0 0 1" />
117-
</body>
117+
</body> -->
118118
<body name="block_red_5" pos="0.6 -0.2 0.2">
119119
<freejoint name="block_red_5" />
120120
<geom type="box" size="0.025 0.025 0.025" rgba="0.8 0 0 1" />
@@ -127,14 +127,10 @@
127127
qpos="0 -0.7854 0 -2.3562 0 1.5707 0.7853 0 0
128128
0 -0.7854 0 -2.3562 0 1.5707 0.7853 0 0
129129
0.5 0 0.2 1 0 0 0
130-
0.5 0.1 0.2 1 0 0 0
131130
0.5 0.2 0.2 1 0 0 0
132-
0.5 -0.1 0.2 1 0 0 0
133131
0.5 -0.2 0.2 1 0 0 0
134132
0.6 0 0.2 1 0 0 0
135-
0.6 0.1 0.2 1 0 0 0
136133
0.6 0.2 0.2 1 0 0 0
137-
0.6 -0.1 0.2 1 0 0 0
138134
0.6 -0.2 0.2 1 0 0 0"
139135
qvel="0 0 0 0 0 0 0 0 0
140136
0 0 0 0 0 0 0 0 0
@@ -143,14 +139,9 @@
143139
0 0 0 0 0 0
144140
0 0 0 0 0 0
145141
0 0 0 0 0 0
146-
0 0 0 0 0 0
147-
0 0 0 0 0 0
148-
0 0 0 0 0 0
149-
0 0 0 0 0 0
150142
0 0 0 0 0 0"
151143
ctrl="0 -0.7854 0 -2.3562 0 1.5707 0.7853 0 0
152144
0 -0.7854 0 -2.3562 0 1.5707 0.7853 0 0"
153145
/>
154146
</keyframe>
155-
156147
</mujoco>

src/moveit_pro_franka_configs/franka_dual_arm_sim/objectives/find_red_block.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Control ID="Sequence" name="TopLevelSequence">
66
<SubTree
77
ID="Find with prompt"
8-
_collapsed="true"
8+
_collapsed="false"
99
prompt="a red block"
1010
object_centroid="{object_centroid}"
1111
/>

src/moveit_pro_franka_configs/franka_dual_arm_sim/objectives/find_with_prompt.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
points_topic_name="/scene_camera/points"
1616
clip_model_path="models/clip.onnx"
1717
clipseg_model_path="models/clipseg.onnx"
18-
erosion_size="2"
18+
erosion_size="5"
1919
prompts="{prompt}"
2020
threshold="0.28"
2121
masks3d="{masks3d}"

0 commit comments

Comments
 (0)