Robotics StackExchange | Archived questions

What namespace does gazebo expects?

HI all,

I installed Ubuntu 14.04 and ros indigo. And gazebo 2.2 also got installed along with it (was not expecting as it is being said that gazebo needs to be installed separately). While running some sample worlds, I found that it waits for certain namesapce. and after few trials gives up. What namespace is it looking for?

The console output is:


$roslaunch gazebo_ros empty_world.launch
....
Warning [ModelDatabase.cc:334] Getting models from[http://gazebosim.org/models/]. This may take a few seconds.

Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 172.22.52.63
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Error [gazebo.cc:220] Waited 11 seconds for namespaces. Giving up.
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
[ INFO] [1408212911.275419703, 0.023000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1408212911.340969773, 0.086000000]: Physics dynamic reconfigure ready.

After this, the world seems to be spawning fine. But, what namespace is it looking for??

Asked by aknirala on 2014-08-16 13:25:58 UTC

Comments

I have this problem too. Did you solve it? The answer posted below regarding environment variables did not help for me.

Asked by sterlingm on 2014-11-16 22:23:10 UTC

Answers

It may be caused by wrong environment variable or LD_PATH..?

you can try this

source /usr/local/share/gazebo-2.2/setup.sh

---------------------------setup.sh----------------------------------------

export GAZEBO_MASTER_URI=http://localhost:11345
export GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models
export GAZEBO_RESOURCE_PATH=/usr/local/share/gazebo-2.2:/usr/local/share/gazebo_models
export GAZEBO_PLUGIN_PATH=/usr/local/lib/x86_64-linux-gnu/gazebo-2.2/plugins
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/x86_64-linux-gnu/gazebo-2.2/plugins
export OGRE_RESOURCE_PATH=/usr/local/lib/OGRE

Asked by Zheng yo chen on 2014-09-04 00:55:02 UTC

Comments

To solve this, update from 2.2 to 2.2.5.

sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu trusty main" > /etc/apt/sources.list.d/gazebo-latest.list' wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -

And update Ubuntu.

more details

[EDIT] The above didn't work out for me though. Check the contents of ~/.gazebo/models. I had only ground_plane.
Another solution could be to download them manually and copy paste into ~/.gazebo/models
$ wget -r -R "index\.html*" http://old.gazebosim.org/models/

Reference

Asked by Ratnesh Madaan on 2015-03-12 09:03:17 UTC

Comments

I disconnected to Internet and worked well. but i dont know why but there's a connection problem ;-0

or edited both /usr/share/gazebo-2.2/setup.sh /usr/share/gazebo/setup.sh

from

export GAZEBO_MASTER_URI=http://localhost:11345 export GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models

to

export GAZEBO_MASTER_URI="" export GAZEBO_MODEL_DATABASE_URI=""

and

$ source /usr/share/gazebo-2.2/setup.sh

then worked fine

Asked by edward0im on 2017-07-09 02:05:48 UTC

Comments

I got the same problem when I ran an example from gazebo official tutorial. I finally solved my problem.Maybe this could help you. Open an example world file such as example.world.You may found an element like:

model://modelname

When you start this world,gazebo will go into ~/.gazebo/models to find a model directory according to the modelname given inside uri.If gazebo can't find a model diretory named by modelname,you'll get a 'No namespace found'. So lookup the world file,find any model it needed and download it to ~/.gazebo/models.You can download models from http://gazebosim.org/models/(appeared in your console output) or use bitbucket to clone.

Asked by xieal on 2018-01-24 05:05:47 UTC

Comments

I added the appropriate files (sun and ground_plane) but it's still throwing the same namespace error. Any ideas?

Asked by Void on 2018-05-11 13:03:33 UTC