Skip to content

Instantly share code, notes, and snippets.

@liziwl
Last active March 19, 2018 09:36
Show Gist options
  • Save liziwl/ac456b38734cf355b7c41ead10133143 to your computer and use it in GitHub Desktop.
Save liziwl/ac456b38734cf355b7c41ead10133143 to your computer and use it in GitHub Desktop.
解决gazebo启动错误

参考链接:link

错误信息

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

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

Msg Waiting for master
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 192.168.1.152
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 192.168.1.152
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.

原因

Gazebo try to collect models from http://gazebosim.org/models but there 's something wrong... the folder ~/.gazebo/models does not exist and Gazebo simulator can not start.

解决方式

运行

wget -r -R "index\.html*" "http://models.gazebosim.org" --reject=tar.gz

Got all models from gazebosim and copy them into ~/.gazebo/models folder and everything will be ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment