Skip to content

decimating the mesh in mujoco #547

@Lhy6900

Description

@Lhy6900

I used MJX3.1.3 before, recently I have noticed that MJX3.2.4 offer method to obtain contact force. So I change the version.
The same set of code runs smoothly in version 3.1.3, but when running in version 3.2.4, the following error occurs.

/home/.conda/envs/jax/lib/python3.9/site-packages/mujoco/mjx/_src/mesh.py:177: UserWarning: Mesh "base" has a coplanar face with more than 20 vertices. This may lead to performance issues and inaccuracies in collision detection. Consider decimating the mesh.
  warnings.warn(
/home/.conda/envs/jax/lib/python3.9/site-packages/mujoco/mjx/_src/mesh.py:177: UserWarning: Mesh "foot" has a coplanar face with more than 20 vertices. This may lead to performance issues and inaccuracies in collision detection. Consider decimating the mesh.
  warnings.warn(
/home/.conda/envs/jax/lib/python3.9/site-packages/mujoco/mjx/_src/mesh.py:52: RuntimeWarning: invalid value encountered in divide
  face_norm = face_norm / np.linalg.norm(face_norm, axis=1).reshape((-1, 1))

Is there a method in mjx help decimating the mesh?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions