Gazebo | Ignition | Community
Ask Your Question

spawn_model fails in ROS groovy (Gazebo 1.3.0)

asked 2013-01-29 15:51:53 -0500

Tobi_von_T gravatar image

updated 2013-01-29 16:09:41 -0500

Hello, A few days ago I switched from fuerte to groovy. The shipped gazebo version at this time was 1.2.5 . Scince everything was working fine (simulating robots, spawning models, etc.) I decided to install groovy on 2 other machines. On those machines simulator gazebo has version 1.3.0 and it is not possible to spawn any models via "rosrun gazebo spawn_model ...". When using files with SDF version 1.3 I always get the following error:

[ERROR] [1359494067.230314246]: GazeboRosApiPlugin SpawnModel Failure: input xml format not recognized

I've made some experiments with really simple models and even older sdf versions. Nothing seems to work here. Any suggestions why this not working anymore?

Best regards,


edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2013-02-04 19:42:44 -0500

nkoenig gravatar image

How to spawn a model:

$ gzfactory spawn -f <sdf_file>

There are bunch of other options:

$ gzfactory -h
edit flag offensive delete link more

answered 2013-02-04 13:45:01 -0500

Ben B gravatar image

I get the feeling that most of the command line tools for spawning models are broken. The preferred way to launch SDFs is by putting models in the appropriate directory. Then they appear in the list of insertable models in Gazebo. The instructions are here.

edit flag offensive delete link more

answered 2013-02-04 19:39:32 -0500

hsu gravatar image

It was an uncaught sdf format update (root element of SDF changed from <gazebo> to <sdf>), addressed by ticket 5611. To be fixed with a new patch release.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools



Asked: 2013-01-29 15:51:53 -0500

Seen: 935 times

Last updated: Feb 04 '13