Home | Tutorials | Wiki | Issues
Ask Your Question
2

What namespace does gazebo expects?

asked 2014-08-16 13:25:58 -0600

aknirala gravatar image

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??

edit retag flag offensive close merge delete

Comments

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

sterlingm gravatar imagesterlingm ( 2014-11-16 21:23:10 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2017-07-09 02:05:48 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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

edit flag offensive delete link more
0

answered 2015-03-12 09:03:17 -0600

Ratnesh Madaan gravatar image

updated 2015-03-12 09:18:07 -0600

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

edit flag offensive delete link more
0

answered 2014-09-04 00:55:02 -0600

Zheng yo chen gravatar image

updated 2014-09-09 19:04:20 -0600

nkoenig gravatar image

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
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-08-16 13:25:58 -0600

Seen: 10,524 times

Last updated: Jul 09