Gazebo | Ignition | Community
Ask Your Question
0

ROS Gazebo (OSX) - Waiting for master

asked 2013-03-02 18:13:13 -0500

Hansg91 gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

Comments

Also, during building of the gazebo package of ROS, I see this error : ERRORFinding dependencies for /Users/hansgaiser/rosws/simulatorgazebo/gazebo/cfg/Physics.cfg

Hansg91 gravatar imageHansg91 ( 2013-03-03 07:02:53 -0500 )edit

Also, running just the gzserver gives me the same problems. (I did source the setup.sh)

Hansg91 gravatar imageHansg91 ( 2013-03-03 07:13:43 -0500 )edit

Also, version 1.4 gives standalone gives me the same problems.

Hansg91 gravatar imageHansg91 ( 2013-03-03 08:39:07 -0500 )edit

Also, running gzmaster gives me a segfault at this->connection->Listen(_port, boost::bind(&Master::OnAccept, this, _1));

Hansg91 gravatar imageHansg91 ( 2013-03-03 08:47:51 -0500 )edit

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.

Hansg91 gravatar imageHansg91 ( 2013-03-03 12:16:14 -0500 )edit

What instructions did you use to build? And what version of OSX are you using?

SL Remy gravatar imageSL Remy ( 2013-03-04 09:33:36 -0500 )edit
1

Do you fork Gazebo when you started down this road? If so, could you post your repo so that others can help?

nkoenig gravatar imagenkoenig ( 2013-03-06 17:18:23 -0500 )edit

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.

Hansg91 gravatar imageHansg91 ( 2013-03-20 12:05:51 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-07-23 19:11:13 -0500

scpeters gravatar image

The latest documentation on Mac OS X support for Gazebo is at http://gazebosim.org/wiki/1.6/install_osx.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-02 18:13:13 -0500

Seen: 1,151 times

Last updated: Jul 23 '13