Home | Tutorials | Wiki | Issues
Ask Your Question

How to convert a .urdf file to .sdf 1.4 format

asked 2013-04-26 02:42:02 -0500

peshala gravatar image

Hello all,

gzsdf print pr2.urdf > pr2.sdf gives errors in gazebo 1.7.1

Error [parser.cc:719] XML Element[turnGravityOff], child of element[link] not defined in SDF. Ignoring.[link]
Error [parser.cc:710] Error reading element <link>
Error [parser.cc:710] Error reading element <model>
Error [parser.cc:369] Unable to read element <sdf>
Error [parser.cc:291] parse as old deprecated model file failed.

why does gzsdf fail?

Thank you

edit retag flag offensive close merge delete


why does Gazebo still requires ros-fuerte-urdfdom by the way? (I am using Groovy)

peshala gravatar imagepeshala ( 2013-04-26 05:50:06 -0500 )edit

Ubuntu Precise builds of Gazebo require `ros-fuerte-urdfdom` because we wanted to limit the number of ubuntu/ros/gazebo builds.

nkoenig gravatar imagenkoenig ( 2013-04-26 16:02:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-04-30 23:35:21 -0500

peshala gravatar image

Tags like <turnGravityOff> no longer exists in new sdf format and in fact being replaced by <gravity> and so on. By manually changing these tags accordingly I could convert the urdf to sdf.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2013-04-26 02:42:02 -0500

Seen: 674 times

Last updated: Apr 30 '13