Repository navigation
Calibration
Florian Tschopp edited this page Jun 28, 2019
·
1 revision
Use Kalibr to create a imu-camera calibration of your sensor setup. The two relevant steps are:
After this, the resulting camchain-imucam-YYYY-MM-DD.yaml can be converted to a sensors-YYYY-MM-DD.yaml file with the following command (use the --out argument if you don't want to have an automatic naming of the output file):
kalibr_maplab_config --cam camchain-imucam-YYYY-MM-DD.yaml --imu imu_kalibr_config.yamlIf you want to back-convert your sensors yaml file to the kalibr format, run:
kalibr_maplab_config --cam sensors-YYYY-MM-DD.yaml --imu-out imu_kalibr_backconverted.yamlAlso, calibration files in the old ncamera format can be back-converted (without IMU):
kalibr_maplab_config --cam ncamera-YYYY-MM-DD.yamlExample `camchain-imucam-turtlebot.yaml' file:
cam0:
camera_model: pinhole
intrinsics: [472.2863830700696, 470.83759684346785, 368.8316828103749, 232.23688706965652]
distortion_model: equidistant
distortion_coeffs: [-0.005740195474458931, 0.02878252863739417, -0.04010621197185408,
0.02008469575876223]
T_cam_imu:
- [0.9999218482505452, 0.01242827026330047, 0.001354802375246977, -0.036473760885706995]
- [-0.012416889737407621, 0.9998900372788195, -0.008107663030110429, 0.010671449995073716]
- [-0.0014554176248331152, 0.008090206970351215, 0.9999662145846299, 0.006680820972792663]
- [0.0, 0.0, 0.0, 1.0]
cam_overlaps: [1]
timeshift_cam_imu: 0.0
rostopic: cam0/image_raw
resolution: [752, 480]
cam1:
camera_model: pinhole
intrinsics: [472.01130056157274, 470.4345108192336, 374.8418480740804, 232.70667026653686]
distortion_model: equidistant
distortion_coeffs: [-0.007010445416694206, 0.040089456653587686, -0.06710329064907847,
0.040246720278467686]
T_cn_cnm1:
- [0.9999960336029774, -0.00019117826536580335, -0.0028100229864219265, 0.10981455804806697]
- [0.0001750207909661233, 0.9999834586698829, -0.005749065518996408, -0.00034222835040367307]
- [0.0028110756012774667, 0.005748550903474333, 0.9999795257986408, -0.0006438000983448903]
- [0.0, 0.0, 0.0, 1.0]
T_cam_imu:
- [0.9999243457599252, 0.012214330057411188, -0.0014535810381109938, 0.07332012842197586]
- [-0.01223330994146766, 0.999829161843389, -0.01385616308442631, 0.010284252980719848]
- [0.0012840889617634584, 0.013872896914302055, 0.9999029422132648, 0.005995698964171852]
- [0.0, 0.0, 0.0, 1.0]
cam_overlaps: [0]
timeshift_cam_imu: 0.0
rostopic: cam1/image_raw
resolution: [752, 480]Example imu_adis16448.yaml file:
rostopic: /imu0
update_rate: 200
accelerometer_noise_density: 4e-3
accelerometer_random_walk: 4e-3
gyroscope_noise_density: 1e-4
gyroscope_random_walk: 1e-4Converted sensors-turtlebot.yaml (kalibr_maplab_config --cam camchain-imucam-turtlebot.yaml --imu imu_adis16448.yaml):
sensors:
- sensor_type: IMU
hardware_id: /imu0
id: c45df2dcd1c7d3ee86a3f84bc6ba47a0
sigmas:
gyro_noise_density: 1e-4
gyro_bias_random_walk_noise_density: 1e-4
acc_noise_density: 4e-3
acc_bias_random_walk_noise_density: 4e-3
saturation_accel_max_mps2: 150.0
saturation_gyro_max_radps: 7.5
gravity_magnitude_mps2: 9.808083883386614
ncameras:
- label: ncamera
id: 8af1bac2a7c5fad79f09e49e3b96d87c
cameras:
- camera:
label: cam0
id: 9be7b5000f15adb3c0da8ac6b729ee05
line-delay-nanoseconds: 0
image_height: 480
image_width: 752
type: pinhole
intrinsics:
rows: 4
cols: 1
data:
- 472.2863830700696
- 470.83759684346785
- 368.8316828103749
- 232.23688706965652
distortion:
type: equidistant
parameters:
rows: 4
cols: 1
data:
- -0.005740195474458931
- 0.02878252863739417
- -0.04010621197185408
- 0.02008469575876223
T_B_C:
rows: 4
cols: 4
data:
- 0.9999218482505452
- -0.012416889737407621
- -0.0014554176248331152
- 0.036613140000003826
- 0.01242827026330047
- 0.9998900372788195
- 0.008090206970351215
- -0.010271019999988508
- 0.001354802375246977
- -0.008107663030110429
- 0.9999662145846299
- -0.006544659999996207
- 0.0
- 0.0
- 0.0
- 1.0
- camera:
label: cam1
id: ac4704b6b1b4cf41b0924ecb7bd863ec
line-delay-nanoseconds: 0
image_height: 480
image_width: 752
type: pinhole
intrinsics:
rows: 4
cols: 1
data:
- 472.01130056157274
- 470.4345108192336
- 374.8418480740804
- 232.70667026653686
distortion:
type: equidistant
parameters:
rows: 4
cols: 1
data:
- -0.007010445416694206
- 0.040089456653587686
- -0.06710329064907847
- 0.040246720278467686
T_B_C:
rows: 4
cols: 4
data:
- 0.9999243457599252
- -0.012233309941467662
- 0.0012840889617634584
- -0.07319647000000624
- 0.01221433005741119
- 0.999829161843389
- 0.013872896914302057
- -0.011261229999955432
- -0.0014535810381109938
- -0.013856163084426311
- 0.9999029422132648
- -0.005746040000012061
- 0.0
- 0.0
- 0.0
- 1.0