imu_3dm_gx4 icon indicating copy to clipboard operation
imu_3dm_gx4 copied to clipboard

timestamp latency

Open alexsaso opened this issue 4 years ago • 3 comments

I am using a Lord Microstrain 3DM-GX5-25 IMU together with this driver. I have the IMU rate configured at 500 Hz, meaning I expect an imu message each 2 ms (0.002 s). This is the case for the most sequential messages, but some messages are further apart (up to 20 ms).

Does anybody know, why is this happening? I was thinking it could be following:

  • some messages are dropped
  • system is overloaded and the processor gets to it with some latency

Thanks, Aleks

alexsaso avatar Jan 21 '21 16:01 alexsaso

I think point 2 might be the reason.

Have you tried this one https://github.com/ros-drivers/microstrain_mips This supports gx5 while ours has not been tested with one.

versatran01 avatar Jan 21 '21 17:01 versatran01

Thank you for your answer, I will check out the other driver as well.

There is another thing that I have noticed. I store the imu messages into a bag file. When I check the sequence numbers of the messages, I noticed that out of the 4193 messages are missing (meaning sometimes the sequence is not incremented for +1 but a larger number). Does this mean that there are messages dropped and why could this happen?

alexsaso avatar Jan 25 '21 13:01 alexsaso

There could be many reasons that cause messages to drop. (maybe system is under heavy load). If only a few dropped from 4000 msgs then I wouln't worry too much.

versatran01 avatar Jan 28 '21 18:01 versatran01