-
Notifications
You must be signed in to change notification settings - Fork 127
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
Whether the monocular and IMU are the same clock? #516
Comments
No. They aren't. |
ok。So is there any good method or idea for how to synchronize between the two? The core problem is that I can't know the time offset between them through the sequence。 |
There's a confusion. |
Maybe the word "synchronization" I described is wrong, "alignment" is what I want to express。 in my test(30fps mono, 500hz accel by callback), I found that imu seq was got from 12 or 13 normally. compared with the first mono frame's timestamp, it usually had a huge time offset(more than 100ms).
as above,use timestamp(), the first imu frame's timestamp is 1551.005(1551.029 - 2ms x 12). if the clock is same, the offset is 1551.005 - 1550.898 = 0.107 [2022-07-12 22:48:17.379] [info] got frame 2357.374, 0 as above,use timestampDevice() the first imu frame's timestamp is 2357.489( 2357.513 - 2ms x 12) . if the clock is same, the offset is 2357.489 - 2357.374 = 0.115 [2022-07-12 22:53:49.420] [info] got frame 34.928, 0 as above,use timestampDevice() the first imu frame's timestamp is 35.036(35.06 - 2ms x 12) . if the clock is same, the offset is 35.036 - 34.928 = 0.108 so, it seems the offset is 100ms? |
IMU and stereo cameras are running independently, there's no HW sync between them. |
Ok!
This information ensures that even though they are sampled independently, their start times are the same, so alignment can be done. Thanks a lot for your answer. |
Hi @dongxuanlb , |
mentioned in this article
My question is whether the monocular camera and IMU are driven by the same clock?
in source:
RawIMUData.hpp
/** Generation timestamp, synced to host time */
Timestamp timestamp = {};
/** Generation timestamp, direct device monotonic clock */
Timestamp tsDevice = {};
RawImgFrame.hpp
Timestamp ts = {}; // generation timestamp, synced to host time
Timestamp tsDevice = {}; // generation timestamp, direct device monotonic clock
It seems they are driven by the same clock。
But,for my test, the mono frame’s timestamp and the imu frame's timestamp are not align.
The text was updated successfully, but these errors were encountered: