Gazebo | Ignition | Community
Ask Your Question
0

gazebo crashes on startup

asked 2013-04-21 17:30:26 -0600

DanielLC gravatar image

updated 2013-04-22 16:43:51 -0600

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
edit retag flag offensive close merge delete

Comments

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

skhan gravatar imageskhan ( 2013-04-23 04:40:18 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-04-24 16:40:24 -0600

nkoenig gravatar image
  1. How did you install gazebo?

  2. Can you run just gzserver?

  3. If you can run gzserver, try running gzstats in another terminal while gzserver is running.

  4. gazebo /usr/empty_world.sdf is a bad command, as the resulting error messages indicate. The file /usr/empty_world.sdf does not exist.

  5. Can you provide a backtrace?

edit flag offensive delete link more
0

answered 2013-04-22 01:48:23 -0600

AndreiHaidu gravatar image

updated 2013-04-23 01:44:36 -0600

Hi,

This liburdfdom_model.so is a library from ros it is located in /opt/ros/groovy/lib (if you are using ros groovy).
Most probably you don't have ROS installed and that is why you are getting this error. However I don't see why gazebo should depend on a ROS library. Maybe you are loading some kind of URDF model which requires ROS.

Then try fixing it by:
1) Installing ROS
or try running gazebo with an empty world with no urdfs.
2)$ gazebo /<path>/empty.world

UPDATE!!

I found a similar problem in this question. The problem was fixed by sourcing the setup.sh file:

$ source /<path>/share/gazebo/setup.sh

UPDATE!! (changed world name from empty_world.sdf to empty.world)

Error [SystemPaths.cc:370] File or path does not exist["/usr/empty_world.sdf"]

it tells you there is no world file in the given path, in the previous example <path> means the path on your pc to the empty.world.

As with installing ROS you may have done something wrong during the installation.

Cheers, Andrei

edit flag offensive delete link more

Comments

None of that worked. See my edit.

DanielLC gravatar imageDanielLC ( 2013-04-22 16:45:08 -0600 )edit

Question Tools

Stats

Asked: 2013-04-21 17:30:26 -0600

Seen: 8,062 times

Last updated: Apr 24 '13