Gazebo | Ignition | Community
Ask Your Question

error spawning sdf models in gazebo under ROS groovy

asked 2012-12-05 10:45:54 -0500

AndreiHaidu gravatar image

updated 2012-12-13 03:31:36 -0500


When trying to spawn a sdf model in Gazebo 1.2, I get the following errors:

Error [] Unknown URI prefix[models/static_sphere.sdf]

Error [] Unable to download model[models/static_sphere.sdf]

Error [] Invalid model manifest file[/manifest.xml]

Error [] Unable to read sdf file.

I am running Ubuntu 12.04 with ROS groovy, Gazebo 1.2.5.

I set up the variables with: source /path/gazebo-1.2/

The paths in the manifest.xml file look like this:

gazebo gazebo_media_path="${prefix}"

gazebo plugin_path="${prefix}/lib"

Do I have to set up other path variables in the ROS package?

Thanks, Andrei

I have a ros package in ~/ros_package/ with the /models and /world folders in it.

There I use a world plugin to spawn models from my package (this used to work in Gazebo 1.0.2 with Fuerte, and it doesn't with 1.2.5 under Groovy). Here is my manifest.xml file from the package where the paths should be loaded.

As a workaround I copied all my models into ~/.gazebo/models and spawned them directly from the world file. But this is not very portable I would prefer setting up the paths in a way that I can use them from my package (I tried all the combination with the gazebo paths, and still had these errors).

This question is somehow related or may be duplicate of this one.

Cheers, Andrei

edit retag flag offensive close merge delete


I'm unclear on what you're trying to do, can you update your post with the command your running, the version of gazebo, the exact output of gazebo, and the directory structure of your model?

nkoenig gravatar imagenkoenig ( 2012-12-12 17:45:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-12-13 18:10:15 -0500

nkoenig gravatar image

Gazebo looks the GAZEBO_MODEL_PATH to find models.

In your case:

export GAZEBO_MODEL_PATH=~/ros_package/models:$GAZEBO_MODEL_PATH

Gazebo looks in the GAZEBO_RESOURCE_PATH to find world files.

In your case:


edit flag offensive delete link more

Question Tools


Asked: 2012-12-05 10:45:54 -0500

Seen: 984 times

Last updated: Dec 13 '12