SDF versions - Unable to convert from SDF version 1.5 to 1.4

asked 2016-02-08 19:46:13 -0500

dyupleks gravatar image

Gazebo version 2.2.6, Indigo

Hello, Gazebo Community!

I would like to ask you about SDF versions. Nowadays, I am confused what SDF version is appropriate for running .world files. The question is appeared when I got errors following gazebo tutorials. Here , the .world file used SDF version 1.5 and It gave me errors:

Error [Converter.cc:127] Unable to convert from SDF version 1.5 to 1.4
Error [parser.cc:697] XML Element[population], child of element[world] not defined in SDF. Ignoring.[world]
Error [parser.cc:688] Error reading element <world>
Error [parser.cc:348] Unable to read element <sdf>
Error:   Could not find the 'robot' element in the xml file
     at line 81 in /build/buildd/urdfdom-0.2.10+dfsg/urdf_parser/src/model.cpp
Error [parser_urdf.cc:2608] Unable to call parseURDF on robot model
Error [parser.cc:273] parse as old deprecated model file failed.

I looked other .world files that run without any problem.. The files is under SDF version 1.4.

I was surfing ROS answers and gazebo tutorials, I didnt get the right answer.. If you will look at the resource, you will see versions 1.4, 1.5, 1.6 are available. But, there are exist higher version in downloads

What the version can I use in order I will not have any errors in version discrepancy?

edit retag flag offensive close merge delete

Comments

The higher versions you're seeing in the downloads link is for the SDF C++ API, currently in version 4. Not to be confused (but I can see how it is confusing) with the SDF protocol version (basically the XML), which is currently in version 1.6.

chapulina gravatar imagechapulina ( 2016-02-16 17:46:38 -0500 )edit

Thank you for your reply. I will attach the link (http://answers.ros.org/question/226087/sdf-versions/) of another answer from ROS answer. Maybe, it will help to someone

dyupleks gravatar imagedyupleks ( 2016-02-18 05:19:07 -0500 )edit

Also, the change from 1.4 to 1.5 is fairly minor. You can try changing the version number in the XML file from 1.5 to 1.4.

nkoenig gravatar imagenkoenig ( 2016-02-18 11:42:57 -0500 )edit