ros gazebo launch error [closed]

asked 2012-10-01 04:43:14 -0600

Vishnu gravatar image

updated 2014-04-20 14:09:42 -0600

ngrennan gravatar image

When I try to run gazebo headless by using this code roslaunch gazebo_worlds empty_world_no_x.launch I get this error:

[gazebo-2] process has died [pid 5022, exit code 134, cmd /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/scripts/gazebo -r /opt/ros/fuerte/stacks/simulator_gazebo/gazebo_worlds/worlds/ __name:=gazebo __log:=/home/vishnudev/.ros/log/b75a2a90-0bd5-11e2-a1b8-14feb5ac04ab/gazebo-2.log].
log file: /home/vishnudev/.ros/log/b75a2a90-0bd5-11e2-a1b8-14feb5ac04ab/gazebo-2*.log

Kindly help. When I try this command rosrun gazebo gazebo -r $(rospack find gazebo_worlds)/worlds/

I get

Gazebo multi-robot simulator, version 1.0.2 Copyright (C) 2011 Nate Koenig, John Hsu, Andrew Howard, and contributors. Released under the Apache 2 License.
This is the second part of the error[ERROR] [1349105788.131488561]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying...
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-03-03 02:10:13.101199


What's the content of the log file?

Lorenz gravatar imageLorenz ( 2012-10-01 04:48:33 -0600 )edit

Sir, sorry to say I'm unable to open the log file in that location. Such a .ros folder is not to be seen in home directory

Vishnu gravatar imageVishnu ( 2012-10-01 04:57:47 -0600 )edit

Are you absolutely sure? .ros is a hidden folder. Try cat /home/vishnudev/.ros/log/b75a2a90-0bd5-11e2-a1b8-14feb5ac04ab/gazebo-2*.log

Lorenz gravatar imageLorenz ( 2012-10-01 05:14:59 -0600 )edit

Lorenz, sometimes nodes don't actually create the log files that they plan to generate..

SL Remy gravatar imageSL Remy ( 2012-10-01 05:16:24 -0600 )edit

That's true, I know. But at least the .ros directory must be there since it is used by all the ROS tools (rosmake, rospack, ...).

Lorenz gravatar imageLorenz ( 2012-10-01 05:17:52 -0600 )edit

sorry, I just get this message on trying the above line of code No such file or directory

Vishnu gravatar imageVishnu ( 2012-10-01 05:21:17 -0600 )edit

Agreed Lorenz. And to be clear... Vishnu, do you have a .ros folder? (ls -l /home/vishnudev/.ros/)

SL Remy gravatar imageSL Remy ( 2012-10-01 05:24:22 -0600 )edit

Yes I have a .ros folder. In the folder mentioned in the error I just a find master.log file. I dont need a gazebo2*.log file

Vishnu gravatar imageVishnu ( 2012-10-01 05:26:52 -0600 )edit