Gazebo | Ignition | Community
Ask Your Question

ROS Groovy Gazebo cannot spawn objects

asked 2013-01-25 11:51:26 -0500

jys gravatar image

I am just trying to spawn objects and I have just copied two commands from tutorial: Both give same exact errors. I have tried with multipe model files under gazeboworlds/objects/*.model but they all seems to give same errors below.

1.  rosrun gazebo spawn_model -file `rospack find gazebo_worlds`/objects/desk1.model -gazebo -model desk1 -x 0
2.  rosrun gazebo spawn_model -file `rospack find gazebo_worlds`/objects/000.580.67.model -gazebo -model cup -z 2

Warning [] Gazebo SDF has no <gazebo> element in file[data-string]
[ERROR] [1358995976.958104948, 86.064000000]: Could not find the 'robot' element in the xml file
Error [] Unable to call parseURDF on robot model
Warning [] Gazebo SDF has no <gazebo> element in file[urdf string]
Error [] parse as old urdf model file failed.
Error [] Unable to read sdf string

I am not able to spawn any objects that came with ROS Groovy. Are these model files outdated?

edit retag flag offensive close merge delete


I have a similar problem. The models should be fine, because Gazebo can load them from model directory or if they are embedded from world. It is juts spawn_model node of ROS that can't load the model. My question in ROS QA:

r0nald gravatar imager0nald ( 2013-01-28 04:39:45 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-01-25 15:10:14 -0500

nkoenig gravatar image

I just looked at the .model files in gazebo_worlds in groovy. They are all from Gazebo < 1.0, and are longer supported.

edit flag offensive delete link more


Nate, while your attention is on SDF problems, have you seen this: ? There's a good workaround proposed, but I think the original problem stems from a bug.

Ben B gravatar imageBen B ( 2013-01-25 16:43:05 -0500 )edit

Okay. Why is none of the supported model files included in ROS Groovy? Accoridng to Gazebo 1.2 documentation, it should have objects appear under "Insert" Tab, but none appears in ROS Gazebo.. Is this a known issue?

jys gravatar imagejys ( 2013-01-26 14:10:14 -0500 )edit

@ps for version 1.2.5 you can insert them if they are in ~/.gazebo/models folder, I couldn't manage to set the paths so they can be seen from other folders. Maybe it is fixed on newer versions.

AndreiHaidu gravatar imageAndreiHaidu ( 2013-01-28 04:31:12 -0500 )edit

answered 2013-01-25 14:52:59 -0500

AndreiHaidu gravatar image

Those tutorials are outdated, depeding on which gazebo version you have (most probably 1.2.5 which comes with Groovy), you should use these tutorials.

edit flag offensive delete link more

Question Tools



Asked: 2013-01-25 11:51:26 -0500

Seen: 1,586 times

Last updated: Jan 25 '13