Simple script to wrap an .obj file in a .urdf file.
Creates a .urdf file wrapping a .obj file representing the 3D geometry of an object. The urdf file is created in the same folder as the obj file.
python obj2urdf.py <path to the file.obj>
By default the object is made white, its position set to 0, its scale set to 1, and its inertia set to 0.
To test the script, run the following example:
python obj2urdf.py example/cube.obj
This will create the corresponding urdf file: example/cube.urdf