ros gazebo launch error
When I try to run gazebo headless by using this code roslaunch gazeboworlds emptyworldnox.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...
Asked by Vishnu on 2012-10-01 04:43:14 UTC
Comments
What's the content of the log file?
Asked by Lorenz on 2012-10-01 04:48:33 UTC
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
Asked by Vishnu on 2012-10-01 04:57:47 UTC
Are you absolutely sure? .ros is a hidden folder. Try
cat /home/vishnudev/.ros/log/b75a2a90-0bd5-11e2-a1b8-14feb5ac04ab/gazebo-2*.log
Asked by Lorenz on 2012-10-01 05:14:59 UTC
Lorenz, sometimes nodes don't actually create the log files that they plan to generate..
Asked by SL Remy on 2012-10-01 05:16:24 UTC
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, ...).
Asked by Lorenz on 2012-10-01 05:17:52 UTC
sorry, I just get this message on trying the above line of code No such file or directory
Asked by Vishnu on 2012-10-01 05:21:17 UTC
Agreed Lorenz. And to be clear... Vishnu, do you have a .ros folder? (ls -l /home/vishnudev/.ros/)
Asked by SL Remy on 2012-10-01 05:24:22 UTC
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
Asked by Vishnu on 2012-10-01 05:26:52 UTC
Ok. That can happen... But we need to get a real error message somehow. Whats the output of:
rosrun gazebo gazebo -r $(rospack find gazebo_worlds)/worlds/empty.world
Asked by Lorenz on 2012-10-01 05:30:03 UTC
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
[ERROR] [1349105788.131488561]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying..."
Asked by Vishnu on 2012-10-01 05:37:35 UTC
Please edit your question and add the complete output.
Asked by Lorenz on 2012-10-01 05:38:46 UTC
This is the second part of the error[ERROR] [1349105788.131488561]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying..."
Asked by Vishnu on 2012-10-01 05:42:22 UTC
Please don't put the error message into a comment but edit your original question. That's what the edit function is for. And please start roscore in a different terminal before executing the rosrun command.
Asked by Lorenz on 2012-10-01 05:59:35 UTC
Please don't ignore my comments to save time. As I said before, you need to start roscore in a different terminal and keep it running before you execute the rosrun command above.
Asked by Lorenz on 2012-10-01 06:45:59 UTC