ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have the same question actually. I thought that I should always process the latest message when queue_size is set to 1. But rospy actually queues up a long list of old messages.

One way to walk around is that use the pointcloud callback to update a global variable, and process this variable in another spinner.

I have the same question actually. exactly. I thought that I should always process the latest message when queue_size is set to 1. But rospy actually queues up a long list of old messages.

One way to walk around is that use the pointcloud callback to update a global variable, and process this variable in another spinner.

I have the same question exactly. I thought that I should always process the latest message when queue_size is set to 1. But rospy actually queues up a long list of old messages.

And roscpp and rospy seems to give different behaviors in terms of this situation.

One way to walk around is that use the pointcloud callback to update a global variable, and process this variable in another spinner.