fkie / multimaster_fkie

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

[Indigo] Explicit queue_size for publishers #12

Closed jpetereit closed 9 years ago

jpetereit commented 9 years ago

Starting the master_discovery produces some warnings in ROS Indigo:

/opt/ros/indigo/lib/python2.7/dist-packages/master_discovery_fkie/master_discovery.py:353: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers for more information.
  self.pubstats = rospy.Publisher("~linkstats", LinkStatesStamped)
/opt/ros/indigo/lib/python2.7/dist-packages/master_discovery_fkie/master_discovery.py:372: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers for more information.
  self.pubchanges = rospy.Publisher("~changes", MasterState)

Quoting from the ROS wiki:

As of Indigo not passing the keyword argument queue_size will result in a warning being printed to the console.

atiderko commented 9 years ago

Thanks, I added the queue_size argument to publishers.