Ros subscriber not up to date
问题 I have written a ROS subscriber to one of the image topics and I have set my buffer to 1 using: subscriber =rospy.Subscriber("/camera/rgb/image_mono/compressed",CompressedImage, callback, queue_size=1) However my subscriber still lags behind. Any idea what might be causing this? Am I setting the queue size correctly? 回答1: The queue is for queueing incoming messages. This means, if your callback takes longer to proccess than new messages arrive, only queue size is kept, the others are not