Home | Tutorials | Wiki | Issues
Ask Your Question
0

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

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

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
Peshala

edit retag flag offensive close merge delete

Comments

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

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

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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Stats

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

Seen: 720 times

Last updated: Apr 30 '13