ros gazebo launch error [closed]
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/empty.world __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/empty.world
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. http://gazebosim.org
This is the second part of the error[ERROR] [1349105788.131488561]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying...
What's the content of the log file?
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
Are you absolutely sure? .ros is a hidden folder. Try
cat /home/vishnudev/.ros/log/b75a2a90-0bd5-11e2-a1b8-14feb5ac04ab/gazebo-2*.log
Lorenz, sometimes nodes don't actually create the log files that they plan to generate..
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, ...).
sorry, I just get this message on trying the above line of code No such file or directory
Agreed Lorenz. And to be clear... Vishnu, do you have a .ros folder? (ls -l /home/vishnudev/.ros/)
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