google-deepmind / google-deepmind/mujoco

Unexpected Bouncing Behavior with Hfield Using Margin>0 (Demo provided)

Open
#1,817 2 comments 0 reactions 1 assignee Claimed by @kbayes View on GitHub
bug
Dominant language
C++
Stars
15.2k
Forks
1.8k
Avg merge
10d 16h
Merged PRs (30d)
25

Description

Dear MuJoCo Team,

I am encountering an unexpected bouncing issue when I replace a plane with a flat hfield and set margin=1 in my MuJoCo model. Here’s my XML file:

```xml




























```

This strange bouncing always happens with margin > 0 with type `hfield`, but does not happen when the geom is using a `plane` type. Could anyone help diagnose the cause of this issue?

https://github.com/user-attachments/assets/05257a0c-9a26-4060-8892-a9742c8dc356

Operating system: MacOS 14.5
MuJoCo version: v3.1.6 and v3.2.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.