Calibration of an usb camera using usb_cam and camera_calibration ROS packages
sudo apt-get install ros-melodic-camera-calibration
sudo apt-get install ros-melodic-usb-cam
$ roslaunch usb_cam_calibration usb_camera_calibration.launch video_device:="/dev/video1"
$ roslaunch usb_cam_calibration usb_camera_calibrated.launch video_device:="/dev/video1"