Hand-eye calibration method, apparatus and device based on point cloud registration

Through point cloud registration and iterative optimization of hand-eye calibration methods, the problem of low resolution accuracy of the transformation matrix of the robot arm and checkerboard lattice calibration plate is solved, the accuracy and reliability of hand-eye calibration are improved, and the operation accuracy of the robot arm is achieved. .

WO2024207704A1PCT designated stage expired Publication Date: 2024-10-10GUANGDONG UNIV OF TECH

Patent Information

Application Number
PCT/CN2023/122592
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-03
Filing Date
2023-09-28
Publication Date
2024-10-10

AI Technical Summary

Technical Problem

In the prior art, the hand-eye calibration method has low absolute positioning accuracy of the robot arm and low resolution accuracy of the checkerboard calibration plate relative to the camera coordinate system transformation matrix, resulting in low resolution accuracy of the hand-eye matrix and lack of optimization, resulting in large errors in actual hand-eye calibration. .

Method used

Using a hand-eye calibration method based on point cloud registration, the three-dimensional camera coordinates and two-dimensional pixel coordinates of the checkerboard calibration board are obtained through a three-dimensional scanning system, and point cloud registration is combined with the robotic arm transformation matrix to calculate the registration error, and the LM algorithm is used. Iteratively optimizes the initial hand-eye transformation matrix to build a cost function to improve the accuracy of the hand-eye transformation matrix.

Benefits of technology

The accuracy of hand-eye calibration is improved, the influence of the absolute positioning of the robot arm on the hand-eye transformation matrix is ​​taken into account, and the reliability and accuracy of the solution are ensured through iterative optimization, which solves the problems of low accuracy and lack of optimization in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023122592_10102024_PF_FP_ABST
    Figure CN2023122592_10102024_PF_FP_ABST
Patent Text Reader

Abstract

A hand-eye calibration method, apparatus and device based on point cloud registration. The method comprises: acquiring an initial hand-eye transformation matrix of a camera coordinate system with respect to a robotic-arm base coordinate system; using a three-dimensional scanning system to scan a checkerboard calibration plate, and acquiring a plurality of groups of three-dimensional camera coordinates, two-dimensional pixel coordinates and robotic-arm transformation matrices of corner points of the checkerboard calibration plate, wherein the three-dimensional scanning system comprises a photographing camera and a projector, and the checkerboard calibration plate is mounted on a tail end of a robotic arm; performing point cloud registration on the plurality of groups of three-dimensional camera coordinates and two-dimensional pixel coordinates according to the robotic-arm transformation matrices, and calculating a registration error; and on the basis of the initial hand-eye transformation matrix, using an LM algorithm to perform an iterative operation on a cost function constructed according to the registration error, so as to obtain an optimized hand-eye transformation matrix. Thus, the technical problem of an actual hand-eye calibration error being relatively large due to relatively low precision and a lack of optimization can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

A hand-eye calibration method, device and equipment based on point cloud registration Technical Field

[0001] The present application relates to the field of robot vision technology, and in particular to a hand-eye calibration method, device and equipment based on point cloud registration. Background Art

[0002] With the continuous advancement of science and technology, the application of machine vision is becoming increasingly widespread, encompassing aerospace, industrial production, logistics, and transportation. In industrial applications, vision systems often serve as guides for robotic arms. By determining the transformation relationship between the robotic arm's base coordinate system and the camera coordinate system, the target information perceived by the vision system is converted to the robotic arm's base coordinate system, ultimately enabling the robotic arm to perform operations such as grasping, handling, and assembly of objects. The process of calculating the transformation matrix between the robotic arm's base coordinate system and the camera coordinate system is called hand-eye calibration. Hand-eye calibration is the foundation for enabling the vision system to guide the robotic arm to achieve flexible grasping or assembly. Its accuracy directly impacts the accuracy of the robotic arm's grasping or assembly.

[0003] Currently, hand-eye calibration in industrial applications suffers from two main errors: low absolute positioning accuracy of the robotic arm itself, and low precision in the transformation matrix of the checkerboard calibration plate relative to the camera coordinate system. However, existing hand-eye calibration methods fail to account for the impact of these two error sources on the accuracy of the hand-eye matrix solution; furthermore, they fail to adjust or optimize the solution results, resulting in low precision of the obtained hand-eye matrix. Directly applying this matrix to robotic arm production and processing can lead to significant processing errors.

[0004] Summary of the Invention

[0005] The present application provides a hand-eye calibration method, device and equipment based on point cloud registration, which is used to solve the technical problems that the existing technology has low accuracy and lacks optimization, resulting in large errors in actual hand-eye calibration.

[0006] In view of this, the first aspect of the present application provides a hand-eye calibration method based on point cloud registration, comprising:

[0007] Get the initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system;

[0008] A three-dimensional scanning system is used to scan a checkerboard calibration plate, and multiple sets of three-dimensional camera coordinates, two-dimensional pixel coordinates, and a robotic arm transformation matrix of the corner points of the checkerboard calibration plate are obtained. The three-dimensional scanning system includes a shooting camera and a projector, and the checkerboard calibration plate is installed on the end of the robotic arm;

[0009] Performing point cloud registration on multiple sets of the three-dimensional camera coordinates and the two-dimensional pixel coordinates according to the robot arm transformation matrix, and calculating a registration error;

[0010] Based on the initial hand-eye transformation matrix, the LM algorithm is used to iteratively operate the cost function constructed according to the registration error to obtain an optimized hand-eye transformation matrix.

[0011] Preferably, obtaining an initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system includes:

[0012] Obtaining a first transformation matrix of multiple sets of checkerboard calibration plates relative to the camera coordinate system and a second transformation matrix of the manipulator end relative to the manipulator base coordinate system;

[0013] An initial hand-eye transformation matrix of the camera coordinate system relative to the robotic arm base coordinate system is calculated according to the first transformation matrix and the second transformation matrix.

[0014] Preferably, calculating the initial hand-eye transformation matrix of the camera coordinate system relative to the manipulator base coordinate system according to the first transformation matrix and the second transformation matrix includes:

[0015] Constructing a hand-eye calibration equation group according to the first transformation matrix and the second transformation matrix;

[0016] The hand-eye calibration equations are solved using a quaternion algorithm to obtain an initial hand-eye transformation matrix of the camera coordinate system relative to the manipulator base coordinate system.

[0017] Preferably, performing point cloud registration on multiple sets of the three-dimensional camera coordinates and the two-dimensional pixel coordinates according to the robot arm transformation matrix and calculating the registration error includes:

[0018] Using the first set of the 3D camera coordinates and the 2D pixel coordinates as a reference set of coordinates, and performing point cloud registration on the other sets of the 3D camera coordinates and the 2D pixel coordinates with the reference set of coordinates according to the robot arm transformation matrix to obtain 3D camera registration coordinates and corresponding 2D pixel registration coordinates;

[0019] The two-dimensional pixel registration coordinates are subtracted from the two-dimensional pixel coordinates in the reference set coordinates to obtain a registration error.

[0020] Preferably, the step of iteratively operating the cost function constructed according to the registration error using the LM algorithm based on the initial hand-eye transformation matrix to obtain an optimized hand-eye transformation matrix includes:

[0021] constructing a cost function based on the registration error;

[0022] transforming the cost function based on an operation of transforming the initial hand-eye transformation matrix from a Lie group space to a Lie algebra space to obtain a transformation cost function;

[0023] The initial hand-eye transformation matrix is ​​used as an initial value, and the LM algorithm is used to iteratively operate the conversion cost function to obtain an optimized hand-eye transformation matrix.

[0024] A second aspect of the present application provides a hand-eye calibration device based on point cloud registration, comprising:

[0025] A matrix acquisition unit, used to obtain the initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system;

[0026] An information acquisition unit, configured to scan a checkerboard calibration plate using a three-dimensional scanning system and obtain multiple sets of three-dimensional camera coordinates, two-dimensional pixel coordinates, and a robotic arm transformation matrix of corner points of the checkerboard calibration plate, wherein the three-dimensional scanning system includes a camera and a projector, and the checkerboard calibration plate is mounted on the end of the robotic arm;

[0027] a point cloud registration unit, configured to perform point cloud registration on a plurality of sets of the three-dimensional camera coordinates and the two-dimensional pixel coordinates according to the robot arm transformation matrix, and calculate a registration error;

[0028] The iterative calibration unit is used to iteratively operate the cost function constructed according to the registration error based on the initial hand-eye transformation matrix using the LM algorithm to obtain an optimized hand-eye transformation matrix.

[0029] Preferably, the matrix acquisition unit includes:

[0030] A matrix acquisition subunit is used to obtain a first transformation matrix of multiple sets of checkerboard calibration plates relative to the camera coordinate system and a second transformation matrix of the manipulator end relative to the manipulator base coordinate system;

[0031] A matrix calculation subunit is used to calculate an initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system based on the first transformation matrix and the second transformation matrix.

[0032] Preferably, the matrix calculation subunit is specifically used to:

[0033] Using the first set of the 3D camera coordinates and the 2D pixel coordinates as a reference set of coordinates, and performing point cloud registration on the other sets of the 3D camera coordinates and the 2D pixel coordinates with the reference set of coordinates according to the robot arm transformation matrix to obtain 3D camera registration coordinates and corresponding 2D pixel registration coordinates;

[0034] The two-dimensional pixel registration coordinates are subtracted from the two-dimensional pixel coordinates in the reference set coordinates to obtain a registration error.

[0035] Preferably, the iterative calibration unit includes:

[0036] A function construction subunit, configured to construct a cost function based on the registration error;

[0037] a function optimization subunit, configured to transform the cost function based on an operation of transforming the initial hand-eye transformation matrix from a Lie group space to a Lie algebra space to obtain a transformed cost function;

[0038] The optimization calibration subunit is used to use the initial hand-eye transformation matrix as the initial value and adopt the LM algorithm to iteratively operate the conversion cost function to obtain the optimized hand-eye transformation matrix.

[0039] A third aspect of the present application provides a hand-eye calibration device based on point cloud registration, the device comprising a processor and a memory;

[0040] The memory is used to store program code and transmit the program code to the processor;

[0041] The processor is used to execute the hand-eye calibration method based on point cloud registration described in the first aspect according to the instructions in the program code.

[0042] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0043] In the present application, a hand-eye calibration method based on point cloud registration is provided, including: obtaining an initial hand-eye transformation matrix of a camera coordinate system relative to a robot arm base coordinate system; using a three-dimensional scanning system to scan a checkerboard calibration plate, and obtaining multiple sets of three-dimensional camera coordinates, two-dimensional pixel coordinates and a robot arm transformation matrix of the corner points of the checkerboard calibration plate, the three-dimensional scanning system including a shooting camera and a projector, and the checkerboard calibration plate being installed on the end of the robot arm; performing point cloud registration on the multiple sets of three-dimensional camera coordinates and two-dimensional pixel coordinates according to the robot arm transformation matrix, and calculating the registration error; based on the initial hand-eye transformation matrix, using the LM algorithm to iteratively operate on a cost function constructed based on the registration error to obtain an optimized hand-eye transformation matrix.

[0044] The hand-eye calibration method based on point cloud registration provided in this application improves the accuracy of hand-eye calibration through point cloud registration and optimization. The cost function constructed by combining the registration error and the initial hand-eye transformation matrix takes into account the impact of the absolute positioning of the manipulator on the hand-eye transformation matrix, thus avoiding the low accuracy of existing technologies. Furthermore, iterative operations can optimize the hand-eye transformation matrix to ensure the reliability and accuracy of the solution. Therefore, this application can solve the technical problem of low accuracy and lack of optimization in existing technologies, which leads to large errors in actual hand-eye calibration. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] FIG1 is a flow chart of a hand-eye calibration method based on point cloud registration provided by an embodiment of the present application;

[0046] FIG2 is another flowchart of a hand-eye calibration method based on point cloud registration provided by an embodiment of the present application;

[0047] FIG3 is a schematic structural diagram of a hand-eye calibration device based on point cloud registration provided in an embodiment of the present application;

[0048] FIG4 is a schematic diagram of the point cloud registration process provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to help those skilled in the art better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] For ease of understanding, please refer to FIG1 , which shows a first embodiment of a hand-eye calibration method based on point cloud registration provided by this application, including:

[0051] Step 101: Obtain the initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system.

[0052] The initial hand-eye transformation matrix X' can be calculated using the existing calibration formula A=XB. The specific process is not described in detail. However, the initial hand-eye transformation matrix solved in this way is not accurate enough, so this embodiment performs subsequent optimization processing based on this.

[0053] It should be noted that the camera coordinate system is the coordinate system of the camera (eye) used to capture the end motion of the robotic arm (hand); and the robotic arm base coordinate system is obviously the coordinate system for the robotic arm; the transformation matrix between the two coordinate systems is the hand-eye calibration, which is expressed by the hand-eye transformation matrix.

[0054] Step 102: Scan the checkerboard calibration plate using a three-dimensional scanning system and obtain multiple sets of three-dimensional camera coordinates, two-dimensional pixel coordinates, and a robotic arm transformation matrix of the corner points of the checkerboard calibration plate. The three-dimensional scanning system includes a shooting camera and a projector, and the checkerboard calibration plate is installed on the end of the robotic arm.

[0055] The 3D scanning system consists of a camera and a projector; a checkerboard calibration plate is mounted at the end of the robotic arm and moves with it. The process for acquiring multiple sets of data involves repeatedly changing the checkerboard calibration plate's position. The 3D scanning system then acquires the 3D camera coordinates for each of these changes. These coordinates are then mapped to a pixel coordinate system to obtain the corresponding 2D pixel coordinates. Furthermore, the transformation matrix of the robotic arm's end relative to the robotic arm's base coordinate system is recorded. The 3D camera coordinates, 2D pixel coordinates, and robotic arm transformation matrix generated by each change are considered a set of captured data.

[0056] Step 103: perform point cloud registration on multiple sets of three-dimensional camera coordinates and two-dimensional pixel coordinates according to the robot arm transformation matrix, and calculate the registration error.

[0057] The purpose of registering the point cloud data in this embodiment is to ensure that the relevant data pairs used in the subsequent optimization and solution process are aligned and unified, so as to ensure the reliability and robustness of the results. The registered point cloud data is mainly the point cloud data in each set of shooting data obtained above. Since the two-dimensional pixel coordinates correspond to the three-dimensional camera coordinates, the three-dimensional camera coordinates can be registered and then mapped to the pixel coordinate system to complete the two-dimensional pixel coordinate registration. Point cloud registration based on the robot arm transformation matrix also takes into account the influence of the absolute positioning of the robot arm, making the calculated data more consistent with the actual situation.

[0058] Step 104: Based on the initial hand-eye transformation matrix, the LM algorithm is used to iterate the cost function constructed according to the registration error to obtain an optimized hand-eye transformation matrix.

[0059] The LM (Levenberg-Marquarelt) algorithm is an iterative algorithm for finding the extreme value of a function. It has the advantages of both the gradient descent method and the Newton method. When λ is very small, the step size is equal to the Newton method step size. When λ is very large, the step size is approximately equal to the gradient descent method step size.

[0060] It should be noted that the initial hand-eye transformation matrix is ​​input as the initial value in the iterative optimization process; in addition, the cost function constructed based on the registration error includes the expression of the hand-eye transformation matrix to be solved. Through iterative optimization, the specific hand-eye transformation matrix can be solved, that is, the hand-eye transformation matrix can be optimized.

[0061] The hand-eye calibration method based on point cloud registration provided in the embodiment of the present application improves the accuracy of hand-eye calibration through point cloud registration and optimization solution. The cost function constructed by using the registration error and the initial hand-eye transformation matrix takes into account the influence of the absolute positioning of the manipulator on the solution of the hand-eye transformation matrix, which can avoid the low solution accuracy problem of the existing technology. In addition, the iterative operation can optimize the hand-eye transformation matrix to ensure the reliability and accuracy of the solution. Therefore, the embodiment of the present application can solve the technical problem that the existing technology has low accuracy and lack of optimization, resulting in large errors in actual hand-eye calibration.

[0062] For ease of understanding, please refer to FIG2 . This application provides a second embodiment of a hand-eye calibration method based on point cloud registration, including:

[0063] Step 201: Obtain a first transformation matrix of multiple sets of checkerboard calibration plates relative to a camera coordinate system and a second transformation matrix of a manipulator end relative to a manipulator base coordinate system.

[0064] Step 202: Calculate an initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system based on the first transformation matrix and the second transformation matrix.

[0065] Furthermore, step 202 includes:

[0066] Constructing a hand-eye calibration equation group according to the first transformation matrix and the second transformation matrix;

[0067] The quaternion algorithm is used to solve the hand-eye calibration equations to obtain the initial hand-eye transformation matrix of the camera coordinate system relative to the robotic arm base coordinate system.

[0068] Place a checkerboard calibration plate at the end of the robotic arm, change the position of the checkerboard calibration plate multiple times, and ensure that the checkerboard calibration plate is always in the common field of view of the shooting camera and the projector. Then obtain multiple sets of the first transformation matrix A of the checkerboard calibration plate relative to the camera coordinate system and the second transformation matrix B of the robotic arm end relative to the robotic arm base coordinate system. Then, according to the fixed transformation relationship between the checkerboard calibration and the robotic arm end, the hand-eye calibration equation group can be constructed based on the first transformation matrix A and the second transformation matrix B. Finally, the quaternion algorithm is used to solve the hand-eye calibration equations to obtain the initial hand-eye transformation matrix X'.

[0069] The essence of the initial hand-eye transformation matrix is ​​the transformation matrix of the camera coordinate system relative to the robot arm base coordinate system, which is the ultimate goal of this embodiment. However, the initial hand-eye transformation matrix here is relatively low in accuracy, so subsequent registration optimization operations are required to obtain the optimal hand-eye transformation matrix. In addition, each first transformation matrix A corresponds to a second transformation matrix B, and the two can be expressed as:

[0070] Among them, M = 0, 1, 2, 3, ... ε-1, ε, represents the number of times the checkerboard calibration plate changes its posture during the hand-eye calibration process. If we only discuss the number of meaningful posture changes, it can also be regarded as the number of captured data groups; ε is usually taken to be around 30 times.

[0071] If all groups of data are considered, the following hand-eye calibration equations can be obtained:

[0072] The initial hand-eye transformation matrix X' of the camera coordinate system relative to the manipulator base coordinate system is obtained as follows:

[0073] The initial hand-eye transformation matrix is ​​a 4×4 matrix. The matrices are 3×3 and 3×1 in size, representing the rotation matrix and translation matrix of the camera coordinate system relative to the robot base coordinate system.

[0074] Step 203: Use a three-dimensional scanning system to scan the checkerboard calibration plate and obtain multiple sets of three-dimensional camera coordinates, two-dimensional pixel coordinates and robotic arm transformation matrices of the corner points of the checkerboard calibration plate. The three-dimensional scanning system includes a shooting camera and a projector, and the checkerboard calibration plate is installed on the end of the robotic arm.

[0075] The process of acquiring multiple sets of data is to change the position of the checkerboard calibration plate multiple times, then use a 3D scanning system to obtain the 3D camera coordinates under these multiple changes, and at the same time map the 3D camera coordinates to the pixel coordinate system to obtain the corresponding 2D pixel coordinates. In addition, the transformation matrix of the end of the manipulator relative to the manipulator base coordinate system can also be recorded. The 3D camera coordinates, 2D pixel coordinates, and manipulator transformation matrix generated by each change shot are considered as a set of shooting data; the specific 3D camera coordinates and their corresponding 2D pixel coordinates are expressed as: (Xc ij ,Yc ij ,Zc ij )

[0076] Among them, i and j are the i-th group of data and the j-th corner point of the checkerboard calibration plate, which can also be described as the i-th pose change of the checkerboard calibration plate. The camera intrinsic parameter matrix K is a 3×3 matrix; the robot arm transformation matrix is ​​expressed as B i The specific camera intrinsic parameter matrix K is expressed as:

[0077] Where fx represents the number of pixels occupied by the camera focal length f in the x-axis direction of the camera's internal image coordinate system, also called the normalized focal length in the x-axis direction; fy represents the number of pixels occupied by the camera focal length f in the y-axis direction of the camera's internal image coordinate system, also called the normalized focal length in the y-axis direction. The units of both are pixels.

[0078] For example, the first group of three-dimensional camera coordinates and two-dimensional pixel coordinates are expressed as: (Xc 1j ,Yc 1j ,Zc 1j )

[0079] And the robot arm transformation matrix in the first set of data is expressed as B1.

[0080] Step 204: Using the first set of 3D camera coordinates and 2D pixel coordinates as the reference set of coordinates, perform point cloud registration on the other sets of 3D camera coordinates and 2D pixel coordinates with the reference set of coordinates according to the robot arm transformation matrix to obtain 3D camera registration coordinates and corresponding 2D pixel registration coordinates.

[0081] The registration process can be described as follows: Referring to Figure 4, the first set of 3D camera coordinates and 2D pixel coordinates are selected as the reference set coordinates; then the second set of 3D camera coordinates and 2D pixel coordinates are registered with the reference set coordinates. The registration is expressed as follows:

[0082] or:

[0083] Then the two-dimensional pixel coordinates mapped to the pixel coordinate system can be expressed as:

[0084] or:

[0085] The two-dimensional pixel coordinates of the second group can also be obtained by aligning the two-dimensional pixel coordinates in the reference group coordinates. However, since the two-dimensional pixel coordinates are also obtained based on the three-dimensional camera coordinate mapping, the results should be consistent and are all registered results; the specific details are not limited here.

[0086] The third set of 3D camera coordinates and 2D pixel coordinates can be registered according to the registration method of the second set. Then the 3D camera coordinates and corresponding 2D pixel coordinates of the i-th set can be expressed as:

[0087] By performing coordinate registration according to the above method, the three-dimensional camera registration coordinates and the corresponding two-dimensional pixel registration coordinates can be obtained.

[0088] It should be noted that the process of mapping the point cloud data from the camera coordinate system to the pixel coordinate system for alignment in this embodiment takes into account the influence of the camera intrinsic parameter matrix on solving the transformation matrix, and can overcome the technical problem of low transformation matrix calculation accuracy in the existing technology.

[0089] Step 205: Subtract the two-dimensional pixel registration coordinates from the two-dimensional pixel coordinates in the reference group coordinates to obtain a registration error.

[0090] Due to the low absolute positioning accuracy of the robotic arm and the low calculation accuracy of the transformation matrix A of the checkerboard calibration plate relative to the camera coordinate system, the initial hand-eye calibration accuracy is low, that is, the initial hand-eye transformation matrix has low accuracy, so the following problems will occur:

[0091] In other words, there are errors in the point cloud registration of the corner points of the checkerboard calibration plate, so the hand-eye calibration process needs to be deeply optimized.

[0092] If P 1j The three-dimensional camera coordinates of the corner points of the checkerboard calibration plate in the reference group coordinates are mapped from the camera coordinate system to the pixel coordinate system, that is, the corresponding two-dimensional pixel coordinates, P′ ij The residual function f(x)=P′ is calculated as ij -P 1j , that is, make a difference and get the registration error.

[0093] Step 206: Construct a cost function based on the registration error.

[0094] Step 207 : transform the cost function based on the operation of transforming the initial hand-eye transformation matrix from the Lie group space to the Lie algebra space to obtain a transformed cost function.

[0095] The cost function constructed based on the registration error is expressed as:

[0096] Considering that the rotation matrix R in the hand-eye transformation matrix X in the above cost function needs to satisfy orthogonality during the iterative optimization process, this embodiment converts the hand-eye transformation matrix X from the Lie group space SO to the Lie algebra space SE, and then performs the optimization iterative operation based on this; in the Lie algebra space SE, the hand-eye transformation matrix X is expressed as exp(X), and the corresponding transformation of the cost function is:

[0097] or:

[0098] Here, m and n refer to the m sets of coordinate data and the n corner points of the checkerboard calibration plate, respectively. The hand-eye transformation matrix X is to be solved, not the initial hand-eye transformation matrix. It can also be regarded as the cost function constructed based on the registration error and the hand-eye calibration expression matrix.

[0099] Step 208: Using the initial hand-eye transformation matrix as the initial value, the LM algorithm is used to iterate the conversion cost function to obtain the optimized hand-eye transformation matrix.

[0100] Using the initial hand-eye transformation matrix X' as the starting value, the LM algorithm is used to iteratively optimize the conversion cost function. Specifically, it is solved iteratively based on the least squares method. First, the various parameters are initialized and the initial values ​​are configured, including inputting the initial hand-eye transformation matrix and setting the number of iterations. Then, the conversion cost function is iterated until the termination condition or the number of iterations is reached. At this point, the optimized hand-eye transformation matrix X is obtained.

[0101] The cost function optimization method in this embodiment takes into account the influence of the absolute positioning accuracy of the robot arm on solving the transformation matrix. That is to say, this embodiment can simultaneously take into account the influence of the camera intrinsic parameters and absolute positioning, and optimize and improve the accuracy of the hand-eye transformation matrix.

[0102] For ease of understanding, please refer to FIG3 . This application also provides an embodiment of a hand-eye calibration device based on point cloud registration, including:

[0103] The matrix acquisition unit 301 is used to obtain the initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system;

[0104] An information acquisition unit 302 is configured to scan the checkerboard calibration plate using a 3D scanning system and obtain multiple sets of 3D camera coordinates, 2D pixel coordinates, and a robotic arm transformation matrix for corner points of the checkerboard calibration plate. The 3D scanning system includes a camera and a projector, and the checkerboard calibration plate is mounted on the end of the robotic arm.

[0105] The point cloud registration unit 303 is used to perform point cloud registration on multiple sets of 3D camera coordinates and 2D pixel coordinates according to the robot arm transformation matrix, and calculate the registration error;

[0106] The iterative calibration unit 304 is used to iteratively operate the cost function constructed according to the registration error based on the initial hand-eye transformation matrix using the LM algorithm to obtain an optimized hand-eye transformation matrix.

[0107] Furthermore, the matrix acquisition unit 301 includes:

[0108] The matrix acquisition subunit 3011 is used to obtain the first transformation matrix of the multiple checkerboard calibration plates relative to the camera coordinate system and the second transformation matrix of the manipulator end relative to the manipulator base coordinate system;

[0109] The matrix calculation subunit 3012 is used to calculate the initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system based on the first transformation matrix and the second transformation matrix.

[0110] Furthermore, the matrix calculation subunit 3012 is specifically configured to:

[0111] Taking the first set of 3D camera coordinates and 2D pixel coordinates as the reference set of coordinates, perform point cloud registration on the other sets of 3D camera coordinates and 2D pixel coordinates with the reference set of coordinates according to the robot arm transformation matrix to obtain the 3D camera registration coordinates and the corresponding 2D pixel registration coordinates;

[0112] The registration error is obtained by subtracting the two-dimensional pixel registration coordinates from the two-dimensional pixel coordinates in the reference group coordinates.

[0113] Furthermore, the iterative calibration unit 304 includes:

[0114] Function construction subunit 3041, used to construct a cost function based on the registration error;

[0115] a function optimization subunit 3042 for transforming the cost function based on the operation of transforming the initial hand-eye transformation matrix from the Lie group space to the Lie algebra space to obtain a transformed cost function;

[0116] The optimization calibration subunit 3043 is used to use the initial hand-eye transformation matrix as the initial value and adopt the LM algorithm to iteratively operate the conversion cost function to obtain the optimized hand-eye transformation matrix.

[0117] The present application also provides a hand-eye calibration device based on point cloud registration, the device including a processor and a memory;

[0118] The memory is used to store program codes and transmit the program codes to the processor;

[0119] The processor is used to execute the hand-eye calibration method based on point cloud registration in the above method embodiment according to the instructions in the program code.

[0120] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0121] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0122] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0123] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for executing all or part of the steps of the method described in each embodiment of the present application through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), random access memory (English full name: RandomAccess Memory, English abbreviation: RAM), magnetic disk or optical disk and other media that can store program code.

[0124] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A hand-eye calibration method based on point cloud registration, characterized in that: include: Get the initial hand-eye transformation matrix of the camera coordinate system relative to the robot base coordinate system; A three-dimensional scanning system is used to scan the checkerboard calibration plate, and multiple sets of three-dimensional camera coordinates, two-dimensional pixel coordinates and mechanical arm transformation matrices of the corner points of the checkerboard calibration plate are obtained, wherein the three-dimensional scanning system includes a shooting camera and a projector, and the checkerboard calibration plate is installed on the end of the mechanical arm; Performing point cloud registration on multiple sets of the three-dimensional camera coordinates and the two-dimensional pixel coordinates according to the robot arm transformation matrix, and calculating the registration error; Based on the initial hand-eye transformation matrix, the LM algorithm is used to iteratively operate the cost function constructed according to the registration error to obtain an optimized hand-eye transformation matrix.

2. The hand-eye calibration method based on point cloud registration according to claim 1, characterized in that: The step of obtaining an initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system includes: Obtain a first transformation matrix of multiple sets of checkerboard calibration plates relative to the camera coordinate system and a second transformation matrix of the end of the robotic arm relative to the robotic arm base coordinate system; An initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system is calculated according to the first transformation matrix and the second transformation matrix.

3. The hand-eye calibration method based on point cloud registration according to claim 2, characterized in that: The calculating the initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system according to the first transformation matrix and the second transformation matrix includes: Constructing a hand-eye calibration equation group according to the first transformation matrix and the second transformation matrix; The hand-eye calibration equation group is solved by using a quaternion algorithm to obtain an initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system.

4. The hand-eye calibration method based on point cloud registration according to claim 1, characterized in that: The performing point cloud registration on the plurality of sets of the three-dimensional camera coordinates and the two-dimensional pixel coordinates according to the robot arm transformation matrix and calculating the registration error includes: Taking the first group of the three-dimensional camera coordinates and the two-dimensional pixel coordinates as the reference group coordinates, and performing point cloud registration on the other groups of the three-dimensional camera coordinates and the two-dimensional pixel coordinates with the reference group coordinates according to the robot arm transformation matrix, to obtain three-dimensional camera registration coordinates and corresponding two-dimensional pixel registration coordinates; Compare the two-dimensional pixel registration coordinates with the two-dimensional pixel coordinates in the reference group coordinates The registration error is obtained.

5. The hand-eye calibration method based on point cloud registration according to claim 1, characterized in that: The method of iteratively operating the cost function constructed according to the registration error based on the initial hand-eye transformation matrix using the LM algorithm to obtain an optimized hand-eye transformation matrix includes: constructing a cost function according to the registration error; Transforming the cost function based on the operation of transforming the initial hand-eye transformation matrix from the Lie group space to the Lie algebra space to obtain a transformation cost function; The initial hand-eye transformation matrix is ​​used as an initial value, and the LM algorithm is used to iteratively operate the conversion cost function to obtain an optimized hand-eye transformation matrix.

6. A hand-eye calibration device based on point cloud registration, characterized in that: include: A matrix acquisition unit, used to acquire an initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system; An information acquisition unit, used to scan the checkerboard calibration plate using a three-dimensional scanning system, and obtain a plurality of sets of three-dimensional camera coordinates, two-dimensional pixel coordinates and a mechanical arm transformation matrix of the corner points of the checkerboard calibration plate, wherein the three-dimensional scanning system includes a shooting camera and a projector, and the checkerboard calibration plate is installed on the end of the mechanical arm; A point cloud registration unit, used for performing point cloud registration on a plurality of sets of the three-dimensional camera coordinates and the two-dimensional pixel coordinates according to the robot arm transformation matrix, and calculating a registration error; The iterative calibration unit is used to iteratively operate the cost function constructed according to the registration error based on the initial hand-eye transformation matrix by using the LM algorithm to obtain an optimized hand-eye transformation matrix.

7. The hand-eye calibration device based on point cloud registration according to claim 6, characterized in that: The matrix acquisition unit comprises: A matrix acquisition subunit, used to acquire a first transformation matrix of multiple sets of checkerboard calibration plates relative to the camera coordinate system and a second transformation matrix of the end of the manipulator relative to the manipulator base coordinate system; A matrix calculation subunit is used to calculate an initial hand-eye transformation matrix of the camera coordinate system relative to the robot arm base coordinate system according to the first transformation matrix and the second transformation matrix.

8. The hand-eye calibration device based on point cloud registration according to claim 7, characterized in that: The matrix calculation subunit is specifically used for: Taking the first set of the three-dimensional camera coordinates and the two-dimensional pixel coordinates as the reference set of coordinates, according to the The robot arm transformation matrix performs point cloud registration on the other groups of the three-dimensional camera coordinates and the two-dimensional pixel coordinates with the reference group coordinates to obtain three-dimensional camera registration coordinates and corresponding two-dimensional pixel registration coordinates; The two-dimensional pixel registration coordinates are subtracted from the two-dimensional pixel coordinates in the reference group coordinates to obtain a registration error.

9. The hand-eye calibration device based on point cloud registration according to claim 6, characterized in that: The iterative calibration unit comprises: A function construction subunit, used to construct a cost function according to the registration error; A function optimization subunit, configured to transform the cost function based on an operation of transforming the initial hand-eye transformation matrix from a Lie group space to a Lie algebra space, to obtain a transformation cost function; The optimization calibration subunit is used to use the initial hand-eye transformation matrix as an initial value and adopt the LM algorithm to iteratively operate the conversion cost function to obtain an optimized hand-eye transformation matrix.

10. A hand-eye calibration device based on point cloud registration, characterized in that: The device comprises a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the hand-eye calibration method based on point cloud registration according to any one of claims 1-5 according to the instructions in the program code.

Citation Information

Patent Citations

  • Mechanical arm hand-eye calibration method based on spatial distance and epipolar line constraint

    CN109483516A

  • Depth camera hand-eye calibration method based on CALTag and point cloud information

    CN110555889A

  • Industrial robot hand-eye calibration error accurate detection method based on binocular vision

    CN114714356A

  • Hand-eye calibration method based on calibration plate three-dimensional point cloud

    CN115861445A

  • Hand-eye calibration method, device and equipment based on point cloud registration

    CN116038720A

Cited By

  • Calibration method, calibration device and computer readable storage medium

    CN119369416A

  • Method and system for calibrating position and posture of mechanical arm of double-arm robot

    CN119526411A

  • Human organ ultrasonic three-dimensional reconstruction method and device based on respiratory displacement compensation

    CN119564254A

  • High-precision plasma cutting method and system in radioactive environment

    CN119566484A

  • Four-degree-of-freedom visual guidance method based on planar redundant target point group

    CN119567250A