adds queue_size to keyboard publisher

This commit is contained in:
Louis-Guillaume DUBOIS 2015-04-24 15:03:17 +02:00
parent 68870d193a
commit 83e54b3308

View file

@ -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