ethz-asl / kalibr

The Kalibr visual-inertial calibration toolbox
Other
4.29k stars 1.4k forks source link

Performance issues with IMU-camera calibration tool #188

Open davidiglesias opened 6 years ago

davidiglesias commented 6 years ago

Hi all,

We have recently been trying to calibrate a stereo rig with 2 cameras + IMU using Kalibr. However, we have seen that, although the results are not horrible and are physically consistent (e.g. they approximate the translations between sensors to a couple of centimeters), the accuracy is quite low, both in terms of reprojection errors (with an average of around 0.8-1px and maximum values of around 5px) and accelerometer/gyroscope acceleration errors (accelerometer 5-15m^2/s^4, gyro 1-5rad^2/s^2). We have tried to rule out possible causes of inaccuracies with little success, so maybe this is something you have seen before and can provide some help.

Our system is composed of two Flir cameras and one IMU which are hardware-synchronized. Time does not seem to be obviously off (I would say the timestamps are consistent across devices to a few milliseconds, although we have not conducted any formal tests to verify this); the camera images present minimal motion blur, and corners are correctly extracted from all frames; the motion of the rig manages to excite all axes and is sufficiently long with no shocks, as per the sample dataset and other datasets provided by the Vision group at TU Munich; the camera intrinsics are obtained both using Kalibr and the Matlab calibration toolbox, and we have tried two models (pinhole, equidistant and radial-tangential); IMU measurements have no weird spikes.

Happy to provide additional info if something is missing.

NikolausDemmel commented 6 years ago

Some thoughts:

What would help to assess the situation is if you could share the calibration results for both camera and cam-imu calibration (i.e. the pdf report), and maybe also your IMU config and command line calls.

davidiglesias commented 6 years ago

Hi @NikolausDemmel,

First off, an update -- by fiddling with IMU noise values, we have been able to decrease accelerometer errors to 0.04m^2/s^4 and gyroscope errors to 0.1rad^2/s^2. Now, to answer your questions:

Report and calibration .txt file attached. Thanks a lot for your help! results-imucam.txt report-imucam.pdf

YilmazKadir commented 4 years ago

Hi, I have the same issue. The results seem to be correct but reprojection error is always around 1.5 pixels. I am using ZED camera with Xsens MTi-3 IMU. I would be appreciated if you could help.

Report file: report-imucam-hoay.pdf

floriantschopp commented 4 years ago

Hi, The reprojection errors are indeed higher then what I would expect from such cameras. Some questions: