[rospy] Disable message queue
Hi,
I have a some computation that takes a while connected to topic. I wan't that next message for computation is as fresh as possible. I have tried setting the queue to zero which results in error and setting it to one doest much help.
sub = rospy.Subscriber("~input",i nput_cb, queue_size = 1)
Test output:
[INFO] [WallTime: 1365585376.358492] msg is 0.2299852 s old!
[INFO] [WallTime: 1365585377.532643] msg is 1.3721399 s old!
[INFO] [WallTime: 1365585378.706446] msg is 1.4059465 s old!
[INFO] [WallTime: 1365585379.863709] msg is 2.5273464 s old!
[INFO] [WallTime: 1365585383.380832] msg is 2.5602341 s old!
[INFO] [WallTime: 1365585385.704427] msg is 2.5397372 s old!
[INFO] [WallTime: 1365585386.877181] msg is 2.5365553 s old!