Overview of obj2mjcf
mainobj2mjcf is a command-line interface (CLI) tool designed to process composite Wavefront OBJ files for use in MuJoCo. It automates the conversion process by:
- Splitting OBJ files: It breaks down a single OBJ file into sub-meshes based on the materials referenced in the associated MTL file.
- Generating MJCF XML: It creates an MJCF XML file that is pre-populated with the necessary
<material>,<mesh>, and<geom>elements that reference the processed OBJ files. - Collision Mesh Generation: It can optionally generate collision meshes by performing convex decomposition on the OBJ using CoACD.