When attempting to create an undistorter using camera parameters from Kalibr, an error is encountered:
[ERROR] [1738848173.611961124]: Attempted to create undistorter from invalid camera parameters. This error occurs because the intrinsic parameters used for the camera calibration are for an omnidirectional camera, which requires 5 parameters, rather than the 4 parameters required for a pinhole camera model.
- Pinhole camera model: [fu fv pu pv]
- Omnidirectional camera model: [xi fu fv pu pv]
How to solve this?
My yaml is:
camera_center:
camera_model: omni
distortion_coeffs: [-0.05752744139474956, 0.19686400450740277, -0.001746182956769978, 0.0013556967582825739]
distortion_model: radtan
intrinsics: [1.7769948506929503, 2190.9268776891236, 2183.373606077044, 1215.7452221822696, 1042.684123840487]
resolution: [2448, 2048]
rostopic: /camera_center