From 83e54b33088cae0299381500e09429306012fc04 Mon Sep 17 00:00:00 2001 From: Louis-Guillaume DUBOIS Date: Fri, 24 Apr 2015 15:03:17 +0200 Subject: [PATCH] adds queue_size to keyboard publisher --- hand_control/src/teleop_twist_keyboard_azerty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hand_control/src/teleop_twist_keyboard_azerty.py b/hand_control/src/teleop_twist_keyboard_azerty.py index 0276173..aac43ad 100755 --- a/hand_control/src/teleop_twist_keyboard_azerty.py +++ b/hand_control/src/teleop_twist_keyboard_azerty.py @@ -63,7 +63,7 @@ def vels(speed,turn): if __name__=="__main__": settings = termios.tcgetattr(sys.stdin) - pub = rospy.Publisher('cmd_vel', Twist) + pub = rospy.Publisher('cmd_vel', Twist, queue_size=1) rospy.init_node('teleop_twist_keyboard_azerty') x = 0 th = 0