URDF is an important file format regarding robot-related tasks. We build some tools for URDF-centered format conversion.
notes: for these functionality with blender required, please install blender first, setup blender to work please refer to below.
- obj2fbx/fbx2obj: blender required
- obj2dae/dae2obj: blender required
- obj2urdf
- urdf2fbx: blender required
- urdf2dae: blender required
python setup.py develop
- Setup blende (For functionalities requires Blender). Download blender from here. Decompress it and move to a proper location.
# export the blender to path
export PATH="/path/to/blender/executable:$PATH"
- Test with converter
- Convert URDF to something else
from model_format_converter.converter import Converter
converter = Converter(input_file="/path/to/input/file/or/dir", to_format="fbx", urdf_tmp_path="/tmp.pickle", blender_vis=False, delete_tmp_after=True)
converter.convert()
- Convert Other Format
from model_format_converter.converter import Converter
converter = Converter(input_file="/path/to/input/file/or/dir", to_format="fbx", blender_vis=False)
converter.convert()