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

MJX collision between Ellipsoid / Cylinder and Hfield #2420

Open
youwyu opened this issue Feb 11, 2025 · 1 comment
Open

MJX collision between Ellipsoid / Cylinder and Hfield #2420

youwyu opened this issue Feb 11, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@youwyu
Copy link

youwyu commented Feb 11, 2025

The feature, motivation and pitch

As shown in MJX 3.2.7, ELLIPSOID and CYLINDER are implemented but only collide with other primitives. If I use mesh for wheeled robots, the GPU memory consumption will be incredible for Rough environments with hfield. If I only use the empty world with flat plane, the GPU memory consumption is also not reasonable.

Alternatives

No response

Additional context

Details for my settings. I use Mujoco-Playground and parallel 8192 wheeled robots. I use train_jax_ppo.py for training.

  1. Flat Plane
    The GPU memory will take around 20GB, much bigger than other examples (e.g., GO1) that take no more than 5GB.
  2. Rough Hfield
    W external/xla/xla/hlo/transforms/simplifiers/hlo_rematerialization.cc:3021] Can't reduce memory use below 17.42GiB (18704526550 bytes) by rematerialization; only reduced to 168.35GiB (180768929689 bytes), down from 169.22GiB (181694524993 bytes) originally
@youwyu youwyu added the enhancement New feature or request label Feb 11, 2025
@hello-robot-shehab
Copy link

Hi @yuvaltassa, I didn't want to open a duplicate/related issue; do you know if supporting cylinder to mesh geom collisions in MJX is planned to be supported?

We're trying to use this mobile manipulator from the Mujoco Menagerie https://github.com/google-deepmind/mujoco_menagerie/tree/main/hello_robot_stretch_3 with MJX, but the main issue with using this MJCF are the cylinders used for wheel collision. Like @youwyu says, using a mesh cylinders for wheels is no-go.

Thank you for your thoughts on what we could do here!

Side-question: I don't know much about how these geom colliders are built, but I see sphere <> mesh collisions implemented, is there a way to re-purpose that sphere implementation for cylinders? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants