The invention discloses a camera and
robot hand-eye calibration method based on an ROS. According to the camera and
robot hand-eye calibration method based on the ROS, through setting up of a
visual system, a mechanical arm and an operation object of the mechanical arm are within the view field of the camera; then, communication mechanisms between the camera and the ROS and between the mechanicalarm and the ROS are established, on one hand,
motion control over the mechanical arm is achieved, on the other hand, the images of the camera and the state of the mechanical arm are obtained, and datacollection is conducted; calibration of internal reference and
external reference of the camera is conducted, and parameters of the camera are obtained; and finally, according to different installation manners of the camera, hand-eye calibration of the camera and the mechanical arm is conducted, and a hand-eye
calibration matrix is obtained. By the adoption of the camera and
robot hand-eye calibration method based on the ROS, automatic hand-eye calibration of the camera and the mechanical arm is achieved, manual intervention is reduced, terminal commands are just called twice in the whole calibration process, the autonomous degree is high, the limitation of the type and number of the camera is avoided, the limitation of the type of mechanical arm is avoided, the expandability is high, itis just needed to print a piece of A4
checkerboard paper in the calibration process, no mark is needed, and the camera and
robot hand-eye calibration method based on the ROS is convenient to perform and practical.