Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh Penetration Issue in MJX #2477

Open
2 tasks done
Stillwtm opened this issue Mar 7, 2025 · 0 comments
Open
2 tasks done

Mesh Penetration Issue in MJX #2477

Stillwtm opened this issue Mar 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Stillwtm
Copy link

Stillwtm commented Mar 7, 2025

Intro

Hi!

I am a undergrad student at SJTU, I use MuJoCo for my research on robot manipulation.

My setup

mujoco 3.3.0, mujoco-mjx 3.2.7, Python, Ubuntu 20.04

What's happening? What did you expect?

I used the following command to load my model in MJX and visualize:

JAX_PLATFORM_NAME=cpu python -m mujoco.mjx.viewer --mjcf scene.xml

I noticed that a significant penetration occurs between the mesh of a bottle and a box.

2025-03-07.17.26.45.webm

However, when I removed three empty bodies from the model, this penetration issue seemed to disappear.

I am unsure why this behavior occurs, as my previous understanding was that empty bodies should not affect the physics simulation.

Steps for reproduction

  1. Run
JAX_PLATFORM_NAME=cpu python -m mujoco.mjx.viewer --mjcf scene.xml
  1. Observe penetration between bottle mesh and the box
  2. Comment out L72-74 in r0_real2sim.xml (as shown in r0_real2sim_1.xml).
      <!-- <body name='a' pos="1.05 0.25 0.97"/>
      <body name='b' pos="1.05 0.283 0.97"/>
      <body name='c' pos="1.05 0.217 0.97"/> -->
  1. Run the viewer again; observe that the mesh penetration issue disappears.

Minimal model for reproduction

demo.zip

Code required for reproduction

No response

Confirmations

@Stillwtm Stillwtm added the bug Something isn't working label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant