Home | Tutorials | Wiki | Issues
Ask Your Question

SDF to URDF converter?

asked 2013-02-08 07:20:16 -0600

isura gravatar image

updated 2013-02-08 07:20:35 -0600

Since SDF and URDF are both used in ROS/Gazebo as mentioned in: http://answers.gazebosim.org/question/853/should-urdf-in-gazebo-tutorials-be-replaced-with/


Is there a way to convert from SDF to URDF? I have a robot in SDF that I want to use with ROS mechanism_controllers.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-02-08 17:44:53 -0600

nkoenig gravatar image

Sorry, but there currently is no converter from SDF to URDF.

edit flag offensive delete link more


hi, sorry for commenting here but I posted my doubt and no one answered. I have the same problem in using ros. I have SDF file for my model which I got from gazebo and I want to use it in ros rviz. But ros is supporting urdf only. is it possible to proceed with sdf now ?

mukesh_148 gravatar imagemukesh_148 ( 2017-08-23 11:28:01 -0600 )edit

answered 2016-05-04 12:48:50 -0600

I stumbled upon the following package: https://github.com/andreasBihlmaier/p...

It contains a sdf2urdf script, which worked for me after some tweaking.

edit flag offensive delete link more


can you please explain what things you have tried to make it work.

mukesh_148 gravatar imagemukesh_148 ( 2017-08-23 11:32:44 -0600 )edit

I have created a video that describes step by step how to make it work. Steps are the following: 1- Clone the SDF2URDF package and install (the one indicated by aorthey) 2- Use the sdf2urdf command to convert into URDF: > rosrun pysdf sdf2urdf my_model.sdf result_model.urdf 3- Load the URDF into the parameter server from the launch file of the simulation 4- Use Rviz to check that the URDF has been actually loaded and that it is correct Find the video here: https://youtu.be/8g5nMxhi_Pw

Ricardo Tellez L. gravatar imageRicardo Tellez L. ( 2017-08-28 12:01:30 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2013-02-08 07:20:16 -0600

Seen: 4,024 times

Last updated: Feb 08 '13