diff --git a/README.md b/README.md index 0f09b85..b554abf 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ make -j8 NOTE: It is possible to compile the code on Ubuntu 16.04, but you need to install cmake-3.10 or higher and gcc-7. See corresponding [Dockerfile](docker/b_image_xenial/Dockerfile) as an example. ## Usage -* [Camera, IMU and Mocap calibration. (TUM-VI, Euroc and UZH-FPV datasets)](doc/Calibration.md) +* [Camera, IMU and Mocap calibration. (TUM-VI, Euroc, UZH-FPV and Kalibr datasets)](doc/Calibration.md) * [Visual-inertial odometry and mapping. (TUM-VI and Euroc datasets)](doc/VioMapping.md) * [Simulation tools to test different components of the system.](doc/Simulation.md) diff --git a/doc/Calibration.md b/doc/Calibration.md index bfcaa0e..7661ad6 100644 --- a/doc/Calibration.md +++ b/doc/Calibration.md @@ -146,3 +146,29 @@ After calibrating the camera you can run the camera + IMU calibration. The resul basalt_calibrate_imu --dataset-path ~/uzh_calib_data/indoor_forward_calib_snapdragon_imu.bag --dataset-type bag --aprilgrid /usr/etc/basalt/aprilgrid_5x4_uzh.json --result-path ~/uzh_calib_result/ --gyro-noise-std 0.05 --accel-noise-std 0.1 --gyro-bias-std 4e-5 --accel-bias-std 0.002 ``` ![uzh_imu_calib](/doc/img/uzh_imu_calib.png) + + +## Kalibr dataset +Download the datasets for camera and camera-IMU calibration from [here (Sample datasets)](https://github.com/ethz-asl/kalibr/wiki/downloads): +``` +mkdir ~/kalibr_calib_data +cd ~/kalibr_calib_data +# Download data +tar xvf static.tar.gz +tar xvf dynamic.tar.gz +``` + +### Camera calibration +Run the camera calibration: +``` +basalt_calibrate --dataset-path ~/kalibr_calib_data/static/static.bag --dataset-type bag --aprilgrid /usr/etc/basalt/aprilgrid_6x6.json --result-path ~/kalibr_calib_result/ --cam-types ds ds ds ds +``` +![kalibr_cam_calib](/doc/img/kalibr_cam_calib.png) + + +### Camera + IMU calibration +After calibrating the camera you can run the camera + IMU calibration. The result-path should point to the same folder as before: +``` +basalt_calibrate_imu --dataset-path ~/kalibr_calib_data/dynamic/dynamic.bag --dataset-type bag --aprilgrid /usr/etc/basalt/aprilgrid_6x6.json --result-path ~/kalibr_calib_result/ --gyro-noise-std 0.005 --accel-noise-std 0.01 --gyro-bias-std 4.0e-06 --accel-bias-std 0.0002 +``` +![kalibr_imu_calib](/doc/img/kalibr_imu_calib.png) \ No newline at end of file diff --git a/doc/img/kalibr_cam_calib.png b/doc/img/kalibr_cam_calib.png new file mode 100644 index 0000000..8833ca3 Binary files /dev/null and b/doc/img/kalibr_cam_calib.png differ diff --git a/doc/img/kalibr_imu_calib.png b/doc/img/kalibr_imu_calib.png new file mode 100644 index 0000000..faf8f6e Binary files /dev/null and b/doc/img/kalibr_imu_calib.png differ