ROS Gazebo (OSX) - Waiting for master
Hello,
I have embarked on the dangerous task to compile gazebo on OSX and after many linking and include changes I finally got it to compile. I am using ROS groovy, which comes with gazebo 1.3.
If I execute the command :
roslaunch gazebo_worlds empty_world.launch
I get the following output :
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
* /use_sim_time
NODES
/
gazebo (gazebo/gazebo)
gazebo_gui (gazebo/gui)
auto-starting new master
process[master]: started with pid [45910]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to d21e6682-8396-11e2-929b-20c9d044a4bb
process[rosout-1]: started with pid [45913]
started core service [/rosout]
process[gazebo-2]: started with pid [45914]
process[gazebo_gui-3]: started with pid [45930]
Gazebo multi-robot simulator, version 1.3.0
Copyright (C) 2012 Nate Koenig, John Hsu, and contributors.
Released under the Apache 2 License.
http://gazebosim.org
Gazebo multi-robot simulator, version 1.3.0
Copyright (C) 2012 Nate Koenig, John Hsu, and contributors.
Released under the Apache 2 License.
http://gazebosim.org
Warning [parser.cc:361] Converting a deprecated SDF source[/Users/hansgaiser/ros_ws/simulator_gazebo/gazebo_worlds/worlds/empty.world].
Set SDF value
Version[1.2] to Version[1.3]
Please use the gzsdf tool to update your SDF files.
$ gzsdf convert [sdf_file]
Msg Waiting for master.[ INFO] [1362269460.264137000]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
Msg Waiting for master....................
And it keeps on waiting forever. I get the same result if I launch emptyworldno_x.launch instead. Running debug.launch gives me :
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
* /use_sim_time
NODES
/
gazebo (gazebo/debug)
gazebo_gui (gazebo/gui)
auto-starting new master
process[master]: started with pid [45813]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to e9d07351-8395-11e2-827f-20c9d044a4bb
process[rosout-1]: started with pid [45816]
started core service [/rosout]
process[gazebo-2]: started with pid [45817]
process[gazebo_gui-3]: started with pid [45841]
GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Thu Nov 15 10:42:43 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ............................
warning: .o file "/usr/local/lib/libboost_system-mt.a(error_code.o)" more recent than executable timestamp in "/usr/local/Cellar/ogre/1.7.4/lib/libOgreMain.1.7.4.dylib"
warning: Could not open OSO file /usr/local/lib/libboost_system-mt.a(error_code.o) to scan for pubtypes for objfile /usr/local/Cellar/ogre/1.7.4/lib/libOgreMain.1.7.4.dylib
warning: .o file "/usr/local/lib/libboost_thread-mt.a(thread.o)" more recent than executable timestamp in "/usr/local/Cellar/ogre/1.7.4/lib/libOgreMain.1.7.4.dylib"
warning: Could not open OSO file /usr/local/lib/libboost_thread-mt.a(thread.o) to scan for pubtypes for objfile /usr/local/Cellar/ogre/1.7.4/lib/libOgreMain.1.7.4.dylib
warning: .o file "/usr/local/lib/libboost_thread-mt.a(once.o)" more recent ...
Also, during building of the gazebo package of ROS, I see this error : ERRORFinding dependencies for /Users/hansgaiser/rosws/simulatorgazebo/gazebo/cfg/Physics.cfg
Also, running just the gzserver gives me the same problems. (I did source the setup.sh)
Also, version 1.4 gives standalone gives me the same problems.
Also, running gzmaster gives me a segfault at this->connection->Listen(_port, boost::bind(&Master::OnAccept, this, _1));
Ok the segfault is fixed (changed an if statement so the master is actually created). I am still getting Waiting for master, which I have backtraced to be caused by a Connection refused in boost asio... time to dig further.
What instructions did you use to build? And what version of OSX are you using?
Do you fork Gazebo when you started down this road? If so, could you post your repo so that others can help?
Wow sorry I had totally missed that there were comments on this question, my fork is: https://bitbucket.org/hgaiser/gazebo and I am running OSX 10.8.3 (10.8.2 at the moment of writing). I still have this issue but I didn't try much more after this post.