Reason: The number of grids in the chessboard calibration file is wrong! ! !
For example: I use the checkerboard in the picture above, the number is 9 columns and 6 rows, but the corresponding Cols and Rows in checkerboard.yaml cannot write 9 and 6, otherwise an error will be reported!
The correct numbers should be 8 and 5! ! ! The length of the grid side is subject to the actual measurement length after you print! ! !
target_type: 'checkerboard' #gridtype
targetCols: 8 #number of internal chessboard corners
targetRows: 5 #number of internal chessboard corners
rowSpacingMeters: 0.030 #size of one chessboard square [m]
colSpacingMeters: 0.030 #size of one chessboard square [m]