MuJoCo models for YCB objects (https://www.ycbbenchmarks.com/)
- Download YCB objects from http://ycb-benchmarks.s3-website-us-east-1.amazonaws.com/. For example, the
055_baseball
is underYCB_models
folder. - Create
assets_obj_name.xml
andbody_obj_name.xml
, and specify the file path of its mesh and texture. - Add it into
ycb_objects.xml
and runpython -m mujoco.viewer --mjcf=ycb_objects.xml
for visualization.
- MuJoCo 2.3.5 is highly recommended. The old version might have issues to load
*.obj
meshes or visualize the texture. - The collision behavior in MuJoCo is wrong for concave objects. Since MuJoCo only detects collisions with the convex hulls of concave objects, a convex decomposition of the concave mesh is required, for example, using a script from obj2mjcf, which is based on V-HACD for the decomposition.