相機校準引數說明
阿新 • • 發佈:2018-12-14
翻譯自https://github.com/ethz-asl/kalibr/wiki/yaml-formats
相機系統校準(camchain.yaml)
該檔案儲存相機的內部和外部引數的校準以及IMU相對於相機的空間和時間校準引數。
每臺攝像機都有以下引數:
-
CAMERA_MODEL
camera_model(pinhole / omni)(針孔、全向) -
intrinsics
包含給定投影型別的內部引數的向量。要素如下:
pinhole:[fu fv pu pv]
omni:[xi fu fv pu pv]
ds:[xi alpha fu fv pu pv]
eucm:[alpha beta fu fv pu pv] -
distortion_model
distortion_model(radtan /equidistant) -
distortion_coeffs
失真模型的引數向量 -
T_cn_cnm1
相機外在轉換,總是相對於鏈中的最後一個相機
(例如cam1:T_cn_cnm1 = T_c1_c0,將cam0轉換為cam1座標) -
T_cam_imu
IMU extrinsics:從IMU到相機座標的轉換(T_c_i) -
timeshift_cam_imu
相機和IMU時間戳之間的時間間隔,以秒為單位(t_imu = t_cam + shift) -
rostopic
攝像機影象流的主題 -
resolution
相機解析度[width,height]
示例chain.yaml
cam0:
camera_model: pinhole
intrinsics: [461.629, 460.152, 362.680, 246.049]
distortion_model: radtan
distortion_coeffs: [-0.27695497, 0.06712482, 0.00087538, 0.00011556]
T_cam_imu:
- [0.01779318, 0.99967549,-0.01822936, 0.07008565]
- [-0.9998017, 0.01795239 , 0.00860714,-0.01771023]
- [0.00893160, 0.01807260, 0.99979678, 0.00399246]
- [0.0, 0.0, 0.0, 1.0]
timeshift_cam_imu: -8.121e-05
rostopic: /cam0/image_raw
resolution: [752, 480]
cam1:
camera_model: omni
intrinsics: [0.80065662, 833.006, 830.345, 373.850, 253.749]
distortion_model: radtan
distortion_coeffs: [-0.33518750, 0.13211436, 0.00055967, 0.00057686]
T_cn_cnm1:
- [ 0.99998854, 0.00216014, 0.00427195,-0.11003785]
- [-0.00221074, 0.99992702, 0.01187697, 0.00045792]
- [-0.00424598,-0.01188627, 0.99992034,-0.00064487]
- [0.0, 0.0, 0.0, 1.0]
T_cam_imu:
- [ 0.01567142, 0.99978002,-0.01393948,-0.03997419]
- [-0.99966203, 0.01595569, 0.02052137,-0.01735854]
- [ 0.02073927, 0.01361317, 0.99969223, 0.00326019]
- [0.0, 0.0, 0.0, 1.0]
timeshift_cam_imu: -8.681e-05
rostopic: /cam1/image_raw
resolution: [752, 480]
IMU配置(imu.yaml)
IMU使用YAML檔案配置。
imu.yaml
#Accelerometers
accelerometer_noise_density: 1.86e-03 #Noise density (continuous-time)
accelerometer_random_walk: 4.33e-04 #Bias random walk
#Gyroscopes
gyroscope_noise_density: 1.87e-04 #Noise density (continuous-time)
gyroscope_random_walk: 2.66e-05 #Bias random walk
rostopic: /imu0 #the IMU ROS topic
update_rate: 200.0 #Hz (for discretization of the values above)