Skip to content

Commit 7618485

Browse files
Add explicit contact excludes between base and first link of Panda and FR3.
Normally in MuJoCo, contacts between a body and its parent are automatically excluded, but this isn't true if the parent is a static body (welded to the worldbody) PiperOrigin-RevId: 774719103
1 parent 66384c6 commit 7618485

File tree

7 files changed

+26
-0
lines changed

7 files changed

+26
-0
lines changed

franka_emika_panda/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22

33
All notable changes to this model will be documented in this file.
44

5+
## [2025-07-02]
6+
- Explicitly exclude contacts between the base and the first link.
7+
58
## [2022-09-07]
69
- Initial release.

franka_emika_panda/mjx_panda.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,4 +273,8 @@
273273
<general class="panda" name="actuator8" joint="finger_joint1"
274274
ctrlrange="0 0.04" gainprm="350 0 0" biasprm="0 -350 -10" forcerange="-200 200"/>
275275
</actuator>
276+
277+
<contact>
278+
<exclude body1="link0" body2="link1"/>
279+
</contact>
276280
</mujoco>

franka_emika_panda/mjx_panda_nohand.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,8 @@
208208
ctrlrange="-0.0175 3.7525"/>
209209
<position class="panda" name="actuator7" joint="joint7" kp="300" kv="2" forcerange="-12 12"/>
210210
</actuator>
211+
212+
<contact>
213+
<exclude body1="link0" body2="link1"/>
214+
</contact>
211215
</mujoco>

franka_emika_panda/panda.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,8 @@
280280
<keyframe>
281281
<key name="home" qpos="0 0 0 -1.57079 0 1.57079 -0.7853 0.04 0.04" ctrl="0 0 0 -1.57079 0 1.57079 -0.7853 255"/>
282282
</keyframe>
283+
284+
<contact>
285+
<exclude body1="link0" body2="link1"/>
286+
</contact>
283287
</mujoco>

franka_emika_panda/panda_nohand.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@
211211
<general class="panda" name="actuator7" joint="joint7" gainprm="2000" biasprm="0 -2000 -200" forcerange="-12 12"/>
212212
</actuator>
213213

214+
<contact>
215+
<exclude body1="link0" body2="link1"/>
216+
</contact>
217+
214218
<keyframe>
215219
<key name="home" qpos="0 0 0 -1.57079 0 1.57079 -0.7853" ctrl="0 0 0 -1.57079 0 1.57079 -0.7853"/>
216220
</keyframe>

franka_fr3/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to this model will be documented in this file.
44

5+
## [2025-07-02]
6+
- Explicitly exclude contacts between the base and the first link, in `fr3.xml`, to match `fr3_mjx.xml`.
7+
58
## [2025-04-25]
69
- Update armature, damping, friction parameters, identified in torque control.
710

franka_fr3/fr3.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@
158158
<position class="fr3" name="fr3_joint7" joint="fr3_joint7" kp="2000" kv="200"/>
159159
</actuator>
160160

161+
<contact>
162+
<exclude body1="fr3_link0" body2="fr3_link1"/>
163+
</contact>
164+
161165
<keyframe>
162166
<key name="home" qpos="0 0 0 -1.57079 0 1.57079 -0.7853" ctrl="0 0 0 -1.57079 0 1.57079 -0.7853"/>
163167
</keyframe>

0 commit comments

Comments
 (0)