Drake's IIWA model currently references .obj (i.e., Wavefront) files because its visualizer only supports this format. Unfortunately, Gazebo does _not_ support .obj files and instead supports .dae (i.e., COLLADA) files. Because of this, we are unable to load Drake's IIWA model into Gazebo. Being able to load the same model into Gazebo is beneficial since it will enable us to do comparisons and provide an alternative framework within which to debug and improve the model.
The following options are sorted from least effort the most effort.
Automatically convert .obj to .dae to the other file format on-demand. This can be done automatically by the build system. It could also be done manually by running a script. Basically, the idea is to maintain a single "master" version from which other versions using different file formats can be derived.
Use xacro to generate two URDFs. One will be called iiwa14_drake.urdf, which references .obj files, and other will be called iiwa14_gazebo.urdf, which references .dae files. Since the same code generator is used to create both files, there shouldn't be a problem keeping the two syncronized.
Convert iiwa14.urdf to SDF and use embedded ruby to generate a version for Gazebo and another version for Drake as described here: http://answers.gazebosim.org/question/14063/how-can-i-declare-a-variable-in-modelsdf-file/.
Modify Drake to support .dae files or Gazebo to support .obj files. I'm unsure how much work and time this will take.
For reference, see: https://github.com/robotlocomotion/drake/pull/3507#issuecomment-248637867
Modifying Gazebo to support .obj files for geometry seems like the cleanest solution, and I think it would get used a lot. What do you think @nkoenig ?
I agree with @sherm1. Gazebo should support .obj files. We'll get started on that asap.
Actually I believe director supports anything that vtk supports, include dae, etc.
Gazebo 7 now supports loading OBJ files. A debian release will be available today or tomorrow.
This is great news, Nate -- thanks!
Gazebo should be able to do this now / soon.
@nkoenig, does Gazebo 8 not support .obj? I just tried loading Drake's KUKA iiwa model into Gazebo 8 and the visualizations did not work.
Most helpful comment
I agree with @sherm1. Gazebo should support
.objfiles. We'll get started on that asap.