jaejunlee0538 / gazebo_2.2_ros_indigo

2 stars 0 forks source link

Waited 1seconds for namespaces #1

Open jaejunlee0538 opened 9 years ago

jaejunlee0538 commented 9 years ago

Launch Files Working File

What are the differences among them?


willowgarage_world.launch

$ roslaunch gazebo_ros willowgarage_world.launch 
... logging to /home/ub1404/.ros/log/53e87346-1bcb-11e5-b6d8-bc5ff4fb1992/roslaunch-ub1404-desktop-23247.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ub1404-desktop:54047/

SUMMARY
========

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.13
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[gazebo-1]: started with pid [23265]
process[gazebo_gui-2]: started with pid [23271]
Gazebo multi-robot simulator, version 2.2.5
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Gazebo multi-robot simulator, version 2.2.5
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Msg Waiting for master
[ INFO] [1435300504.056493013]: Finished loading Gazebo ROS API Plugin.
Msg Waiting for master[ INFO] [1435300504.056911486]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...

sg Connected to gazebo master @ 32mhttp://127.0.0.1:11345
Msg Connected to gazebo master @ http://127.0.0.1:11345
sg 32Publicized address: 192.168.3.6mMsg
 Publicized address: 192.168.3.6
Warning [ModelDatabase.cc:334] Getting models from[http://gazebosim.org/models/]. This may take a few seconds.
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
[gazebo_gui-2] process has finished cleanly
log file: /home/ub1404/.ros/log/53e87346-1bcb-11e5-b6d8-bc5ff4fb1992/gazebo_gui-2*.log
^C[gazebo-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

mud_world.launch

$ roslaunch gazebo_ros mud_world.launch 
... logging to /home/ub1404/.ros/log/53e87346-1bcb-11e5-b6d8-bc5ff4fb1992/roslaunch-ub1404-desktop-21765.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ub1404-desktop:60655/

SUMMARY
========

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.13
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
process[gazebo-1]: started with pid [21783]
process[gazebo_gui-2]: started with pid [21789]
Gazebo multi-robot simulator, version 2.2.5
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Gazebo multi-robot simulator, version 2.2.5
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Msg Waiting for master
[ INFO] [1435300102.721283498]: Finished loading Gazebo ROS API Plugin.
Msg Waiting for master[ INFO] [1435300102.721773064]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...

sg mMsgConnected to gazebo master @ http://127.0.0.1:11345 
Connected to gazebo master @ http://127.0.0.1:11345
sg mPublicized address: 192.168.3.6Msg 
Publicized address: 192.168.3.6
Warning [ModelDatabase.cc:334] Getting models from[http://gazebosim.org/models/]. This may take a few seconds.
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
jaejunlee0538 commented 9 years ago

The differences are whether external models are included or not. You can locate world files at /usr/share/gazebo-2.0/world.

If the world files contain external model files which should be pulled from model repository, this happened.

willowgarage.world

<?xml version="1.0" ?>
<sdf version="1.4">
...
    <include>
      <uri>model://willowgarage</uri>
    </include>
...
</sdf>

shapes.world

<?xml version="1.0" ?>
<sdf version="1.4">
  <world name="default">
    <include>
      <uri>model://ground_plane</uri>
    </include>
    <include>
      <uri>model://sun</uri>
    </include>
    <model name="box">
    ...
    </model>
    <model name="sphere">
     ...
    </model>
    <model name="cylinder">
    ...
    </model>
  </world>
</sdf>
jaejunlee0538 commented 9 years ago

run the following command to download gazebo model repository.

$ wget -r -R "index\.html*" http://models.gazebosim.org/

It will take long (in my case 59m 29s).

Then you can find models.gazebosim.org folder.

You have to copy all the model files into ~/.gazebo/models/ folder.

Then try to launch the problematic launch files.

They should be launched with no issue.

The idea is from ros-community


+Better workaround is to download models repository from bitbucket.

It took just only a few minutes and also working fine.

symao commented 8 years ago

Thanks jaejunlee0538 a lot. It seems that gazebo try to download the missing model files. After I download this models from http://models.gazebosim.org/ to ~/.gazebo/models/. Everything works OK now.

gyubeomim commented 7 years ago

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