ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The issue that you're seeing is caused by the tf message filter queue size in RVIZ. It probably won't surprise you to find out that the value was set to.... 10! What's happening is that your range measurements are coming in (likely with the same or close timestamps) before RVIZ gets a tf update to project them into your fixed frame. This means that only the last 10 are being kept around and the others are pushed out of the queue.
You have two ways to fix this: Use Fuerte! The good news is that this issue was resolved by this ticket in the new RVIZ for Fuerte. You should be able to just adjust the queue size parameter in the GUI and all will be well.
If you can't update to Fuerte, I would recommend splitting your rangers into two different topics. You should be able to something like '/sonar/left_array' and '/sonar/right_array'. By drawing these as two separate queues, you're effectively doubling the queue size.