Ask Your Question
0

Convert SDF world made with building editor to URDF

asked 2019-05-22 02:30:56 -0500

Elric gravatar image

I'm using ROS Melodic and Gazebo 9.6.0.

I will use Gazebo's Build Editor to build a building using a floor plant image, like this:

image description

You can see how it can be done in this video.

I'm going to use that world with ROS, but its format will be SDF, and I need a URDF file.

Do I need to convert it to URDF or I can use it in SDF format?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-06-06 08:13:55 -0500

c-mon gravatar image

updated 2019-06-06 22:38:48 -0500

ROS only works with urdf from what I've read and tried.

This python project should work for the conversion https://github.com/andreasBihlmaier/p... .

The usage looks like this sdf2urdf.py model.sdf model.urdf you can additionally add this before the model.sdf -p plotfile.png to export an image of model.sdf.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-05-22 02:30:56 -0500

Seen: 102 times

Last updated: Jun 06