Converting URDF to SDF 1.0 in fuerte? [closed]

asked 2012-11-25 20:14:23 -0500

updated 2014-01-28 17:14:23 -0500

ngrennan gravatar image

I have a URDF robot model with old, pre-SDF 1.0 gazebo configuration for controllers, used with Fuerte. It gets loaded into Gazebo using spawn_model as usual, from a param named "robot_description".

I would like however to re-write the Gazebo controller configuration to use SDF 1.0, but it seems like I need the document element of the model XML to be "gazebo", with a version="1.0" attribute to get Gazebo to treat it as a SDF file, rather as a legacy confug.

Is there some official way of transforming the non-gazebo-specific parts of the URDF to SDF 1.0 at run-time? I'd essentially like to read the value of the "robot_description" param and write its equivalent SDF into a another param so it can be subsequently loaded using spawn_model.

Note I don't expect it to convert the legacy Gazebo config, just the URDF parts.

edit retag flag offensive reopen merge delete

Closed for the following reason Gazebo Question: The Gazebo community prefers to answer questions at: http://answers.gazebosim.org by tfoote
close date 2015-06-29 02:23:38.570486