ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
14

Gazebo URDF deprecated?

asked 2012-08-17 10:55:23 -0500

Norman Hendrich gravatar image

updated 2014-01-28 17:13:21 -0500

ngrennan gravatar image

HI all,

today I installed the newest version of Gazebo... (Ubuntu 12.04, 64-bit). Trying to get the Shadow-hand running in Fuerte. My problem with broken ContactSensor is still there, but Gazebo now greets all my launch files with an error message about urdf files being not only deprecated but being rejected after 1/July/2012. Gazebo tells me to try some tool called "gzsdf" to fix this.

In my opinion, this is not good. Not good at all, rather a critical bug.

You will have your reasons, and of course SDF has some advantages like allowing parallel-linkages and such. But after all, Gazebo is now the "official" robot simulator of WillowGarage, and urdf is the "official" description of all non-trivial robots out there. Why drop this, and why require all users to come up with a second separate description for robot simulation?

Even if Gazebo has problems with its "parser_deprecated.cc" stuff: If the "gzsdf" tool actually works, there is no reason to not just silently call gzsdf on user-supplied xacro/urdf files, and everything works as before.

If gzsdf does NOT work, all the complex urdf robot-descriptions created by ROS users are now BROKEN in Gazebo: do you/we (Gazebo developers) actually want that?

I tried running a few of my xacro files through the process:

  • rosrun xacro xacro.py foo.urdf.xacro > foo.urdf (xacro -> urdf)
  • rosrun gazebo urdf2model -f foo.urdf -o foo.xml (urdf -> old Gazebo sdf)
  • rosrun gazebo gzsdf print foo.xml > foo.sdf (old Gazebo -> new sdf)

and it is pretty annoying, as well as removing the nice hierarchical structure from the xacro files. It can't even be put on one command line, because all the converters insist on their particular calling conventions.

TODO:

  1. reinstate support for URDF in Gazebo (best!)
  2. provide xacro2sdf tool (but what do we gain over a fixed/updated parser_deprecated.cc?)

Feedback and explations very welcome, Cheers, Norman

edit retag flag offensive close merge delete

Comments

Not obvious from the title, but I am in the same boat. http://answers.ros.org/question/41294/gazebo-with-controller/

phil0stine gravatar image phil0stine  ( 2012-08-17 17:35:37 -0500 )edit

Related thread from gazebosim.org

130s gravatar image 130s  ( 2012-12-29 18:04:24 -0500 )edit

hello sir, would you mind to please help me out? here is my question" http://answers.ros.org/question/62646/please-help-converting-urdfxacro-to-sdf/

Gazer gravatar image Gazer  ( 2013-05-13 12:54:41 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-08-19 09:29:34 -0500

phil0stine gravatar image

updated 2013-03-13 03:38:07 -0500

felix k gravatar image

Check out @hsu 's answer on gazebo with controller.

edit flag offensive delete link more
-1

answered 2013-01-31 08:03:40 -0500

Jey_316 gravatar image

updated 2013-01-31 08:05:18 -0500

i want to transform an URDF file to an SDF file? what am I doing WRONG? @phil0stine @Alexandr Buyval

john@john-K53SD:/opt/ros/fuerte/stacks/simulator_gazebo/gazebo$ ./gazebo/bin/gzsdf print /home/john/fuerte_workspace/sandbox/miurdf/01-myfirstyo.urdf

Warning [parser.cc:348] Gazebo SDF has no gazebo element Error [parser.cc:263] parse as old deprecated model file failed. Error: SDF parsing the xml failed

edit flag offensive delete link more

Comments

4

you should write as a new question, posting here is for answers only. If you need to discuss stuff use the comments fields

PeterMilani gravatar image PeterMilani  ( 2013-01-31 13:12:14 -0500 )edit

Question Tools

8 followers

Stats

Asked: 2012-08-17 10:55:23 -0500

Seen: 5,038 times

Last updated: Mar 13 '13