morse-simulator / morse

The Modular OpenRobots Simulation Engine
http://morse-simulator.github.io/
Other
351 stars 155 forks source link

ROS publisher queue_size #770

Closed cehberlin closed 6 years ago

cehberlin commented 6 years ago

Automatically setting ros publisher queue_size in order to avoid a blocking simulation with slow or blocking subscribers.

queue_size should always be configured for a publisher. See here for some information about this: http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers#queue_size:_publish.28.29_behavior_and_queuing

Without this fix I had an almost completely frozen simulation with a slow subscriber on a camera topic.

mherrb commented 6 years ago

Reviewed-by: Matthieu Herrb