fkie / multimaster_fkie

ROS stack with FKIE packages for multi-robot (discovering, synchronizing and management GUI)
BSD 3-Clause "New" or "Revised" License
267 stars 108 forks source link

Zeroconf: fails to quit if the ROS_MASTER_URI is misconfigured #68

Closed AlexisTM closed 6 years ago

AlexisTM commented 6 years ago

This is due to rospy.log*** which provides the ability to use a comma instead of a %.

rosrun master_discovery_fkie zeroconf 
[INFO] [1515680044.689815]: ROS Master URI: http://127.0.0.1:11311
[INFO] [1515680044.693266]: Network ID: 0
[INFO] [1515680044.698691]: Start RPC-XML Server at ('0.0.0.0', 11911)
[INFO] [1515680044.699377]: Subscribe to parameter `/roslaunch/uris`
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/master_discovery_fkie/zeroconf", line 4, in <module>
    master_discovery_fkie.main_zeroconf()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/master_discovery_fkie/__init__.py", line 132, in main_zeroconf
    discoverer = zeroconf.Discoverer(rpc_port, mcast_port - MCAST_PORT)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/master_discovery_fkie/zeroconf.py", line 767, in __init__
    sys.exit("'%s' is not reachable for other systems. Change the ROS_MASTER_URI!", masterhost)
TypeError: exit expected at most 1 arguments, got 2