gazebo crashes on startup
Running the command
gazebo
opens two blank windows, then closes them, then opens a window with a nice toolbar and stuff that looks like it's doing what it's supposed to do. A fraction of a second later, the program closes. It doesn't seem to have any sort of error message. It just has
Gazebo multi-robot simulator, version 1.7.1
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
Msg Waiting for master.Gazebo multi-robot simulator, version 1.7.1
Copyright (C) 2013 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: 10.0.xxx.yyy
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 10.0.xxx.yyy
I also tried running gzserver and gzclient on separate terminals. gzserver seems to work fine.
Gazebo multi-robot simulator, version 1.7.1
Copyright (C) 2013 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: 10.0.xxx.yyy
However, gzclient does not.
gzclient: error while loading shared libraries: liburdfdom_model.so: cannot open shared object file: No such file or directory
Edit:
Sourcing did nothing.
gazebo /usr/empty_world.sdf got me
Gazebo multi-robot simulator, version 1.7.1
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
Msg Waiting for master.Gazebo multi-robot simulator, version 1.7.1
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
Error [SystemPaths.cc:370] File or path does not exist["/usr/empty_world.sdf"]
Error [Server.cc:259] Could not open file[/usr/empty_world.sdf]
Error [ConnectionManager.cc:88] Connection Manager is not running
Attempting to install ROS with the instructions here failed on step 1.5:
sudo rosdep init
which gave me:
sudo: rosdep: command not found
I think this can fix your problem. Source: http://gazebosim.org/wiki/Tutorials/1.5/rosenabledmodel_plugin
source /opt/ros/groovy/setup.bash
source /usr/share/gazebo/setup.sh
export GAZEBOPLUGINPATH=~/local/lib/gazeboplugins:${GAZEBOPLUGIN_PATH}
export GAZEBOMODELPATH=~/gazeborosplugin/models:${GAZEBOMODELPATH}
gazebo ~/gazeborosplugin/<yourworldfile>.world