Install the function package required for calibration
Terminal input
sudo apt-get install ros-kinetic-camera-calibration
Start the camera to start the calibration package
roslaunch robot_vision usb_cam.launch
rosrun camera_calibration cameracalibrator.py --size 8x6 --square 0.024 image:=/usb_cam/image_raw camera:=/usb_cam
Parameters: 8x6, that is, the number of intersection points of the checkerboard is 0.024, which is the width of the checkerboard.
When CALIBRATE turns green, the calibration is completed. Click the green button and wait for a while.
When all three buttons are green, return to the terminal to see the camera parameters.
Click SAVE to save the file.