Skip to content

Commit

Permalink
use queue_size for rospy.Publisher (ros/ros_comm#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed May 2, 2014
1 parent 835dcfb commit f82c196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion talker.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from std_msgs.msg import String

def talker():
pub = rospy.Publisher('chatter', String)
pub = rospy.Publisher('chatter', String, queue_size=10)
rospy.init_node('talker', anonymous=True)
r = rospy.Rate(10) # 10hz
while not rospy.is_shutdown():
Expand Down

0 comments on commit f82c196

Please sign in to comment.