-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing on rosbag #6
Comments
Hi @cmakelabs , There seem to be at least two issues in the printouts but both are likely originating from the same major issue. One is that the timestamps of the data are not at a constant frequency. It can happen with non-synchronised data collection. I would advise making sure the timestamps are looking good and that the samples in the imu data structure are sorted by time. Also, be careful with the fact that time is stored as a double: you might need to offset the timestamps so as not to lose accuracy due to the numerical precision of the double. |
Thank you very much for your answer,
|
|
Thank you very much, it is clear now. I would like to ask, how can I try it out online(without recorded ROS bag, but directly getting measurements from the IMU and preintegrate them)? From your experience how a proper sync between CPU clock and IMU can be achieved in that case? |
The fact that the code crashes when the timestamps are not well-spaced is a safeguard to bring awareness to the user that the data is not optimal (thus preventing unfair benchmarking of the algorithm, and/or catching other "bugs" in the interfacing as it is the case here). If the motion of your system is not crazily dynamic it will likely be fine even with the fluctuation of timestamp spacing :). If your timestamps are good enough you can just comment out the error-throwing line of code. But make sure that the timestamps are expressed in seconds and that they are sorted by increasing order (one thing that is worrying in the original printout you posted is the For the actual synchronisation, you'll likely need hardware synchronisation or an IMU that allows some sort of synchronisation protocol. It will be hardware-dependent and out of the scope of what I can advise here. |
Thank you for sharing
ugpm
, I wanted to test it out on data that I have recorded from myxsens
IMU, I have written a ROS wrapper forugpm
, and it worked, however when I run it on my data, I got this warning followed by an error and termination:I would really appreciate it, if you could guide me to get a workaround this issue, as we are really excited about
ugpm
and would really want to try it out on our data.The text was updated successfully, but these errors were encountered: