Ask Your Question
0

SDF to URDF conversion

asked 2015-06-03 07:33:53 -0500

maztentropy gravatar image

updated 2016-03-12 13:24:34 -0500

130s gravatar image

Hello everyone!

I am starting from scratch with ROS (just recently installed Jade) and I wanted to ask for some guidance. I have followed all basic ROS tutorials already and my idea was to develop a simulation model with Gazebo that I can control through ROS nodes. I would afterwards move on to the real robot but only after the simulation model is complete and working properly.

I followed Gazebo's basic tutorials as well (still have some to go through) but the first problem I encountered is my robot has mecanum wheels. I read that the easiest way to go is using the Planar Move Plugin so I looked it up in here and apparently I should first develop a URDF file of my robot. I have been going through the tutorials (first had to learn tf) but I am starting to wonder. Do I really need the URDF file? Is there any way to work directly with SDF files both in ROS and gazebo or at least generate the URDF from the SDF I already have?

I would really appreciate it if someone could clarify this for me.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2015-06-03 17:43:56 -0500

l0g1x gravatar image

There is a pull request available for a sdf to urdf converter. I downloaded the source and it worked for me, however, if you have any plugins specified in your SDF, i dont think the person who made the pull request got around to converting plugins in SDF to URDF yet, as i had to manually copy the plugins over to the URDF.

https://bitbucket.org/osrf/sdformat/p...

edit flag offensive delete link more
1

answered 2015-06-03 10:59:06 -0500

updated 2015-06-03 11:06:18 -0500

It seems you can't avoid URDF. See this answer. Here is a tutorial describing how to work with URDF in Gazebo.

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

Stats

Asked: 2015-06-03 07:33:53 -0500

Seen: 6,131 times

Last updated: Mar 12 '16