Skip to content

Commit e7cb46f

Browse files
btabacopybara-github
authored andcommitted
Revert to more stable values for mjx Aloha.
PiperOrigin-RevId: 678787966 Change-Id: Ibc6ac695b1ada3f496983f89368bdde0e8295294
1 parent 98b2634 commit e7cb46f

File tree

2 files changed

+46
-15
lines changed

2 files changed

+46
-15
lines changed

aloha/mjx_aloha.patch

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
1-
--- aloha.xml 2024-07-24 19:38:17.000000000 +0100
2-
+++ mjx_aloha.xml 2024-09-17 10:18:25.000000000 +0100
3-
@@ -84,10 +84,16 @@
1+
--- aloha.xml 2024-07-24 11:38:17.000000000 -0700
2+
+++ mjx_aloha.xml 2024-09-25 11:33:18.000000000 -0700
3+
@@ -1,7 +1,11 @@
4+
<mujoco model="aloha">
5+
<compiler angle="radian" meshdir="assets" autolimits="true"/>
6+
7+
- <option cone="elliptic" impratio="10"/>
8+
+ <option impratio="5"/>
9+
+
10+
+ <visual>
11+
+ <scale contactwidth="0.075" contactheight="0.025" forcewidth="0.05"/>
12+
+ </visual>
13+
14+
<asset>
15+
<material name="black" rgba="0.15 0.15 0.15 1"/>
16+
@@ -21,6 +25,7 @@
17+
</asset>
18+
19+
<default>
20+
+ <mesh maxhullvert="32"/>
21+
<default class="vx300s">
22+
<joint axis="0 1 0" actuatorfrcrange="-35 35"/>
23+
<site group="4"/>
24+
@@ -72,7 +77,7 @@
25+
where the gripper is actuated to its fully closed and fully open positions. Therefore the
26+
control range represents limits enforced by _software_ on the real robot.
27+
-->
28+
- <position ctrlrange="0.002 0.037" kp="2000" kv="124"/>
29+
+ <position ctrlrange="0.002 0.037" kp="365"/>
30+
<default class="left_finger">
31+
<joint range="0 0.041" axis="0 0 -1"/>
32+
</default>
33+
@@ -84,10 +89,17 @@
434
<geom type="mesh" mass="0" group="2" material="black" contype="0" conaffinity="0"/>
535
</default>
636
<default class="collision">
@@ -13,20 +43,21 @@
1343
<geom type="sphere" size="0.0006" rgba="1 0 0 1"/>
1444
</default>
1545
+ <default class="primitive_collision">
16-
+ <geom contype="0" conaffinity="1" rgba="1 0 0 0.5" group="3"/>
46+
+ <geom contype="0" conaffinity="1" rgba="1 0 0 0.5" group="3"
47+
+ condim="3" solref="0.01 1" friction="1 0.005 0.0001"/>
1748
+ </default>
1849
</default>
1950
</default>
2051
</default>
21-
@@ -149,6 +155,7 @@
52+
@@ -149,6 +161,7 @@
2253
<geom class="collision" pos="0 -0.03525 -0.0227" quat="0 -1 0 -1" type="mesh" mesh="vx300s_7_gripper_wrist_mount"/>
2354
<geom class="visual" pos="0 -0.0824748 -0.0095955" quat="0 0 -0.21644 -0.976296" type="mesh" mesh="d405_solid"/>
2455
<geom class="collision" pos="0 -0.0824748 -0.0095955" quat="0 0 -0.21644 -0.976296" type="mesh" mesh="d405_solid"/>
2556
+ <geom class="primitive_collision" type="capsule" fromto="0.055 0 0.015 -0.055 0 0.015" size="0.03" />
2657
<camera name="wrist_cam_left" pos="0 -0.0824748 -0.0095955" mode="fixed" euler="2.70525955359 0 0"
2758
focal="1.93e-3 1.93e-3" resolution="1280 720" sensorsize="3896e-6 2140e-6"/>
2859
<body name="left/left_finger_link" pos="0.0191 -0.0141637 0.0211727" quat="1 -1 -1 1">
29-
@@ -157,8 +164,10 @@
60+
@@ -157,8 +170,10 @@
3061
<joint name="left/left_finger" class="left_finger"/>
3162
<geom pos="0.0141637 0.0211727 0.06" class="visual" quat="1 1 1 -1" type="mesh"
3263
mesh="vx300s_8_custom_finger_left"/>
@@ -38,7 +69,7 @@
3869
<geom name="left/left_g0" pos="0.013 -0.0892 0.0268" class="sphere_collision"/>
3970
<geom name="left/left_g1" pos="0.0222 -0.0892 0.0268" class="sphere_collision"/>
4071
<geom name="left/left_g2" pos="0.0182 -0.0845 0.0266" class="sphere_collision"/>
41-
@@ -170,8 +179,10 @@
72+
@@ -170,8 +185,10 @@
4273
<joint name="left/right_finger" class="right_finger"/>
4374
<geom pos="0.0141637 -0.0211727 0.0597067" class="visual" quat="1 -1 -1 -1" type="mesh"
4475
mesh="vx300s_8_custom_finger_right"/>
@@ -50,15 +81,15 @@
5081
<geom name="left/right_g0" pos="0.013 0.0892 0.0268" class="sphere_collision"/>
5182
<geom name="left/right_g1" pos="0.0222 0.0892 0.0268" class="sphere_collision"/>
5283
<geom name="left/right_g2" pos="0.0182 0.0845 0.0266" class="sphere_collision"/>
53-
@@ -237,6 +248,7 @@
84+
@@ -237,6 +254,7 @@
5485
<geom class="collision" pos="0 -0.03525 -0.0227" quat="0 -0.707107 0 -0.707107" type="mesh" mesh="vx300s_7_gripper_wrist_mount"/>
5586
<geom class="visual" pos="0 -0.0824748 -0.0095955" quat="0 0 -0.21644 -0.976296" type="mesh" mesh="d405_solid"/>
5687
<geom class="collision" pos="0 -0.0824748 -0.0095955" quat="0 0 -0.21644 -0.976296" type="mesh" mesh="d405_solid"/>
5788
+ <geom class="primitive_collision" type="capsule" fromto="0.055 0 0.015 -0.055 0 0.015" size="0.03" />
5889
<camera name="wrist_cam_right" pos="0 -0.0824748 -0.0095955" mode="fixed" euler="2.70525955359 0 0"
5990
focal="1.93e-3 1.93e-3" resolution="1280 720" sensorsize="3896e-6 2140e-6"/>
6091
<body name="right/left_finger_link" pos="0.0191 -0.0141637 0.0211727" quat="1 -1 -1 1">
61-
@@ -245,8 +257,10 @@
92+
@@ -245,8 +263,10 @@
6293
<joint name="right/left_finger" class="left_finger"/>
6394
<geom pos="0.0141637 0.0211727 0.06" class="visual" quat="1 1 1 -1" type="mesh"
6495
mesh="vx300s_8_custom_finger_left"/>
@@ -70,7 +101,7 @@
70101
<geom name="right/left_g0" pos="0.013 -0.0892 0.0268" class="sphere_collision"/>
71102
<geom name="right/left_g1" pos="0.0222 -0.0892 0.0268" class="sphere_collision"/>
72103
<geom name="right/left_g2" pos="0.0182 -0.0845 0.0266" class="sphere_collision"/>
73-
@@ -258,8 +272,10 @@
104+
@@ -258,8 +278,10 @@
74105
<joint name="right/right_finger" class="right_finger"/>
75106
<geom pos="0.0141637 -0.0211727 0.0597067" class="visual" quat="1 -1 -1 -1" type="mesh"
76107
mesh="vx300s_8_custom_finger_right"/>
@@ -82,7 +113,7 @@
82113
<geom name="right/right_g0" pos="0.013 0.0892 0.0268" class="sphere_collision"/>
83114
<geom name="right/right_g1" pos="0.0222 0.0892 0.0268" class="sphere_collision"/>
84115
<geom name="right/right_g2" pos="0.0182 0.0845 0.0266" class="sphere_collision"/>
85-
@@ -285,6 +301,5 @@
116+
@@ -285,6 +307,5 @@
86117
<joint joint1="right/left_finger" joint2="right/right_finger" polycoef="0 1 0 0 0"/>
87118
</equality>
88119

aloha/mjx_scene.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- scene.xml 2024-07-24 11:01:16.000000000 -0700
2-
+++ mjx_scene.xml 2024-07-24 11:01:09.000000000 -0700
1+
--- scene.xml 2024-07-24 11:38:17.000000000 -0700
2+
+++ mjx_scene.xml 2024-09-25 10:13:59.000000000 -0700
33
@@ -1,7 +1,13 @@
44
<mujoco model="aloha_scene">
55
<compiler meshdir="assets" texturedir="assets"/>
@@ -8,10 +8,10 @@
88
+ <include file="mjx_aloha.xml"/>
99
+
1010
+ <custom>
11-
+ <numeric data="8" name="max_contact_points"/>
11+
+ <numeric data="12" name="max_contact_points"/>
1212
+ </custom>
1313
+
14-
+ <option iterations="8" ls_iterations="8" timestep="0.01"/>
14+
+ <option iterations="8" ls_iterations="8" timestep="0.005"/>
1515

1616
<statistic center="0 -0.1 0.2" extent="0.6" meansize="0.05"/>
1717

0 commit comments

Comments
 (0)