Camera calibration using Kalibr
We often utilize the ethz-asl/kalibr for camera calibration.
Docker image and wrapper scripts
The ctu-mrs/kalibr_docker repository provides a convenient compose_session which utilizes a custom docker image.
Therefore, there is no need to compile kalibr manually (which would consume approx. 5 GB of HDD space).
The Kalibr docker image is sourced from the ctumrs dockerhub.
Howto
-
If you have bag file from ROS2, you need to first convert it to the ROS1 bag format
-
clone the ctu-mrs/kalibr_docker repository
-
cd compose_session -
Pull the docker image by calling
docker compose pull -
Store your bag file with the camera topic in the
datafolder and retrieve the results there afterwards. -
Configure the parameters by editing the
compose.yamlfile. -
Use
run.shto start thecomposesession with kalibr.
Output conversion to the camera_calibration format
Use the script in output_conversion to convert the Kalibr format (with the radtan model) to the output of camera_calibration.