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

SDF versions

asked 2016-02-08 19:55:20 -0600

Gazebo version 2.2.6, Indigo

Hello, ROS 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

2 Answers

Sort by ยป oldest newest most voted
2

answered 2016-02-09 00:11:46 -0600

yasagitov gravatar image

The tag population is only applicable in Gazebo 5 or higher, you can actually see this in upper right corner at the link you provided. I highly suggest you to move to the new versions of Gazebo (and ROS) if you want all of the options.

edit flag offensive delete link more

Comments

Thank you for your reply. You helped me to understand my several problems. I didnt notice to the upper right corner ) The idea to reinstall ROS and Gazebo is not attractive for me now.. But, I think that I dont have another choice

dyupleks gravatar image dyupleks  ( 2016-02-09 02:52:44 -0600 )edit
1

answered 2016-05-06 13:14:48 -0600

filipposanfilippo gravatar image

Is there any way to use the population tag in Gazebo 2? I am forced to use ROS indigo + Gazebo2. Any possibilities? Any other way to achieve something similar?

edit flag offensive delete link more

Comments

Unfortunately, it is not possible. Look at sdf specification. You use sdf version 1.4 with Gazebo 2, but population tag is available from version 1.5 and higher (click on World button and try to find population tag for 1.4 and 1.5)

dyupleks gravatar image dyupleks  ( 2016-05-06 21:40:59 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-02-08 19:55:20 -0600

Seen: 7,368 times

Last updated: May 06 '16