Gazebo not running from terminal

asked 2017-03-22 06:42:44 -0500

sirsomething gravatar image

Hi!

I just finished installing ros full desktop package and gazebo but when I run gazebo in terminal it simply doesn't launch. I'm going crazy since I can't find anyone else with this problem. I'm running it on a desktop with dedicated graphics. Does anyone have an idea of how to solve the problem?

Thanks!

EDIT: I'm using jade and gazebo5, btw

EDIT2: When I run gazebo --verbose it gives me:

Gazebo multi-robot simulator, version 5.4.0
Copyright (C) 2012-2015 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.86
Gazebo multi-robot simulator, version 5.4.0
Copyright (C) 2012-2015 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.86
[Err] [RTShaderSystem.cc:414] Unable to find shader lib. Shader generating will fail.[Err] [Server.cc:285] Could not open file[worlds/empty.world]

EDIT3: I noticed I have several gazebos in /usr/share folder. Gazebo3 and Gazebo5.4 and when I run this command:

export GAZEBO_RESOURCE_PATH=/usr/share/gazebo-5.0:/usr/share/gazebo_models:${GAZEBO_RESOURCE_PATH}

I am able to run gazebo but I have to do it every single time I open the terminal. Is there any way to make it permanent?

edit retag flag offensive close merge delete

Comments

I would recommend you uninstall all your gazebo and ros, make sure there is nothing left under /usr, and install everything again. It's also recommended to use ROS Kinetic + Gazebo 7, since Gazebo 5 has reached end of life and is no longer supported.

chapulina gravatar imagechapulina ( 2017-03-22 12:15:51 -0500 )edit

That doesn't make much sense tho. It was a fresh ubuntu + ros + gazebo install, it shouldn't have those folders. I added that last export to bashrc file and it runs well now. I don't think I can use Kinetic because I need some older packages from jade. Thanks anyway ;)

sirsomething gravatar imagesirsomething ( 2017-03-23 07:54:11 -0500 )edit