A three-plane particle swarm optimization calibration method for robot line laser
Through the line laser three-plane particle swarm optimization calibration method, the disk and particle swarm optimization algorithms are used to solve the problem of complex solution and low accuracy of hand-eye calibration of line laser cameras, achieving high accuracy, simplified calibration process and improved universality.
Patent Information
- Application Number
- CN202210292896.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-03-23
AI Technical Summary
Existing hand-eye calibration methods for line laser cameras have problems such as complex solutions, low accuracy, and poor universality. In particular, the equations for non-contact calibration are difficult to solve and are locally optimal. Contact calibration requires the design of different tooling, which lacks universality.
Using the line laser three-plane particle swarm optimization calibration method, a line laser camera is installed at the end of the robot, using a disk as a calibration tool, using least squares plane fitting and particle swarm optimization to solve the hand-eye matrix, and convert it into a Euler angle representation: Simplify the solution process and improve accuracy.
It achieves high-precision, simplified calibration process and reduced cost line laser hand-eye calibration, solves the problems of complex solution and low accuracy of traditional calibration methods, and improves the universality and accuracy of calibration.
Smart Images

Figure CN114581534B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field related to camera hand-eye calibration, and more specifically, relates to a robot line laser three-plane particle swarm optimization calibration method. Background Art
[0002] With the profound changes in manufacturing automation and industrial transformation and upgrading, industrial robots are more widely used in industrial automation. In realizing industrial automation and intelligence, visual measurement equipment plays a vital role.
[0003] Line laser cameras have the advantages of simple structure, non-contact, and fast measurement speed. They are widely used in high-precision measurement in the industrial field. In practical applications, high-precision measurement depends not only on the accuracy of the measurement system itself, but also on the hand-eye calibration accuracy of the line laser camera coordinate system and the robot flange coordinate system.
[0004] The line laser camera robot hand-eye transformation matrix describes the rotation and offset of the line laser camera relative to the end of the robot. The common methods for its calibration are contact calibration and non-contact calibration:
[0005] 1. The non-contact calibration methods include the standard ball method and the calibration plate method. By changing the robot's posture multiple times and scanning the calibration plate (or calibration ball) at the same position, a high-order overdetermined equation is constructed for solution. However, the equation is usually difficult to solve and is prone to fall into local optimality, and the calibration process is relatively complicated.
[0006] 2. The contact calibration method requires the use of various calibration tools such as calibration needles, calibration balls, calibration fixtures, etc. to calibrate the hand-eye change matrix of the line laser. Different lasers require different tooling designs and are not universal.
[0007] Correspondingly, a hand-eye calibration method is needed that is easy to solve, has high accuracy, a simple calibration process, and good universality. Summary of the invention
[0008] In view of the above defects or improvement needs of the prior art, the present invention provides a robot line laser three-plane particle swarm optimization calibration method. The calibration method improves the calibration tool into a plane, saving the calibration cost. At the same time, compared with the calibration sphere calibration, the calibration method of the present invention has higher calibration accuracy.
[0009] To achieve the above object, according to one aspect of the present invention, a robot line laser three-plane particle swarm optimization calibration method is provided, the method comprising the following steps:
[0010] S101, install a line laser camera at the end of the robot and fix a disc on the workbench;
[0011] S102, using a line laser camera to illuminate the disk plane, continuously changing the posture of the line laser camera during illumination, and acquiring a plurality of disk plane data points;
[0012] S103, changing the position and posture of the disk plane, and repeating step S102 after each change to obtain multiple sets of disk plane data;
[0013] S104, performing least square plane fitting on the plurality of sets of disk plane data respectively, and taking the sum of standard deviations of the obtained fitting planes as the objective function;
[0014] S105, using the Euler angle representation method to represent the hand-eye matrix, and performing particle swarm optimization based on the obtained objective function, and integrating the results obtained to obtain the hand-eye transformation matrix.
[0015] Furthermore, the theoretical basis formula for obtaining disk plane data is:
[0016]
[0017] In the formula, L p i is the data coordinates obtained in the line laser coordinate system; It is recorded L p i Corresponding robot position and posture information; is the hand-eye matrix to be solved, B p i It is the data coordinate in the robot base coordinate system.
[0018] Furthermore, when using Euler angle representation, the 4*4 hand-eye matrix is simplified into a total of 6 parameters to be solved, namely x, y, z, w, p, and r.
[0019] Furthermore, the Euler angle expression of the hand-eye matrix is:
[0020]
[0021] Combining formula (1) and formula (4), when x, y, z, w, p, and r are given, the obtained disk plane data points are transformed into the robot base coordinate system, and the least squares plane fitting is performed on the transformed disk plane data points to obtain the objective function.
[0022] Furthermore, the solved x, y, z, w, p, and r are substituted into formula (4) to integrate the hand-eye transformation matrix.
[0023] Furthermore, step S102 specifically includes the following steps:
[0024] (1) Move and adjust the line laser camera so that the line laser is normally irradiated on the disk plane;
[0025] (2) Keeping the posture of the line laser camera unchanged, the line laser camera is continuously moved so that the line laser camera can obtain as many data points on the disk plane as possible in this posture;
[0026] (3) Changing the posture of the line laser camera and continuously repeating step (2) to obtain multiple sets of data, each set of data obtained must record the corresponding robot posture information.
[0027] Furthermore, the number of groups of disk plane data is 3.
[0028] Furthermore, the specific steps of particle swarm optimization solution are:
[0029] (1) Determine the Euler angle representation of the hand-eye matrix and transform the matrix problem into a problem of solving six dimensional parameters: x, y, z, w, p, and r;
[0030] (2) Set the speed limit and position limit of particle movement and randomly generate 500 initial 6-dimensional particles;
[0031] (3) Find the particle that minimizes the value of the objective function among the 500 particles and record it. At the same time, these 500 particles are updated according to the set function expression, and the process is repeated until the accuracy of the objective function reaches the predetermined value.
[0032] Furthermore, the formula used for updating is:
[0033] β new =β+v (5)
[0034] v=v × c1 + c2 × rand(0, 1) × Δβ 个体 + c3 × rand(0, 1) × Δβ 群体 ; (6)
[0035] In the formula, β is a 6-dimensional particle; c1 is the inertia weight; c2 is the self-learning factor; c3 is the group learning factor; the Rand function is used to generate random numbers from 0 to 1; Δβ 个体 is the difference between particles in 2 iterations; Δβ 群体 is the difference between the particle between 2 iterations and the best particle of the previous iteration.
[0036] In general, compared with the prior art, the robot line laser three-plane particle swarm optimization calibration method provided by the present invention has the following beneficial effects:
[0037] 1. The present invention adopts a plane as a calibration tool, which solves the problem that the traditional calibration ball calibration method is based on the principle of spatial fixed points, and the equation given by this method is also a high-order overdetermined equation, and the method solves complex problems.
[0038] 2. The matrix to be solved is converted into the representation of Euler angles before being solved, which ensures that the third-order sequence of the calibration matrix meets the requirements of the rotation matrix, making the calibration matrix not only have mathematical significance, but also have practical physical significance. More importantly, it improves the accuracy of line laser hand-eye calibration.
[0039] 3. The disc plane is used as the calibration tool to improve the hand-eye calibration accuracy of the line laser. The calibration parts are simple to make, low in cost, high in calibration accuracy and good in universality. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flow chart of a robot line laser three-plane particle swarm optimization calibration method provided by the present invention;
[0041] Figure 2 These are the point clouds of the three planes obtained in the experiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0043] In hand-eye calibration, coordinate system B is the robot base coordinate system, coordinate system E is the robot flange coordinate system, and coordinate system L is the line laser camera coordinate system. The hand-eye calibration matrix represents the transformation matrix from coordinate system E to coordinate system L. This matrix is always constant and does not change due to the movement of the robot. The transformation matrix from coordinate system B to coordinate system E is Can be read directly from the robot's teach pendant.
[0044] See also Figure 1 and Figure 2 The present invention provides a robot line laser three-plane particle swarm optimization calibration method, the calibration method comprising the following steps:
[0045] S101, install the line laser camera at the end of the robot and complete the installation and debugging; at the same time, prepare a disc with suitable flatness.
[0046] Specifically, a line laser camera is installed at the end of the robot. After installation and debugging, it is ensured that the line laser camera can return measurement data in real time, and a disc with suitable flatness is prepared and fixed stationarily on the workbench.
[0047] S102, using a line laser camera to illuminate the disk plane, continuously changing the posture of the line laser camera during illumination, and obtaining as many data points on the disk plane as possible.
[0048] Step S102 specifically includes the following steps:
[0049] (1) Move and adjust the line laser camera so that the line laser is normally irradiated on the disk plane.
[0050] (2) Keep the posture of the line laser camera unchanged and keep moving the line laser camera so that the laser camera can obtain as many data points on the disk plane as possible under this posture.
[0051] (3) Change the posture of the line laser camera and repeat the above steps to obtain multiple sets of data. For each set of data obtained, its corresponding robot posture information must be recorded so that it can be matched in the subsequent solution.
[0052] The theoretical basis formula for disk plane data acquisition is:
[0053]
[0054] In the formula, L p i is the data coordinates obtained in the line laser coordinate system; It is recorded L p i Corresponding robot position and posture information; is the hand-eye matrix to be solved, B p i is the data coordinate in the robot base coordinate system. Obviously, the acquired data should be transformed by the above formula for subsequent solution.
[0055] S103, changing the position and posture of the disk plane, and repeating step S102 after each change to obtain three sets of disk plane data.
[0056] Among them, the position and posture of the disk plane are changed, and the changed position should be within the working range of the robot; the three disk planes have no special requirements such as orthogonality, and the position is relatively arbitrary; theoretically, the more planes are changed, the more accurate the hand-eye matrix is obtained, but since the calibration process is more complicated and the accuracy improvement is not obvious after more than 3 planes, this implementation method adopts particle swarm optimization calibration of three planes, and the point cloud positions of the three disk planes are marked as follows Figure 2 shown.
[0057] S104, performing least square plane fitting on the three sets of disk plane data respectively, and taking the sum of the standard deviations of the three plane fittings as the objective function.
[0058] In order to describe the situation of the disk plane data points in the robot coordinate system, considering that the disk plane data is a planar point cloud, the disk data can be plane fitted and the variance of the fitted plane can be given as the optimization objective function.
[0059] The equation of the fitted plane is obtained:
[0060] ax i +by i +c=z i (i=1,2,...,n) (2)
[0061] Transformed into matrix form:
[0062]
[0063]
[0064] Since three different planes were scanned in the experiment and the corresponding plane equations were also different, the final objective function will be composed of the sum of the standard deviations of the three fitting planes.
[0065] S105, using the Euler angle representation method to represent the hand-eye matrix, and performing particle swarm optimization based on the obtained objective function.
[0066] When using Euler angles, the 4*4 hand-eye matrix is simplified into 6 parameters to be solved: x, y, z, w, p, r. The specific steps of particle swarm optimization are as follows:
[0067] (1) Determine the Euler angle representation of the hand-eye matrix and transform the matrix problem into a problem of solving six dimensional parameters: x, y, z, w, p, and r.
[0068] Formula (1) gives the expression for transforming the disk data point cloud from the line laser coordinate system to the robot coordinate system. In order to express the matrix to be solved The connection between the internal elements of the matrix is often expressed in the form of quaternions or Euler angles. Since x, y, z, w, p, and r in the Euler angle respectively represent the three translation distances and three rotation angles of the origin of the coordinate system, it has more practical significance than the quaternion, and the Euler angle representation can reduce the number of unknowns more than the quaternion. In this implementation, the Euler angle expression of the hand-eye matrix is:
[0069]
[0070] Combining formula (1) and formula (4), when x, y, z, w, p, and r are given, the acquired data points can be transformed into the robot base coordinate system, and the least squares plane fitting can be performed on the transformed data points to obtain the objective function.
[0071] (2) Set the speed limit and position limit of particle movement and randomly generate 500 initial 6-dimensional particles.
[0072] Obviously, the Euler angles x, y, z, w, p, and r all have practical significance, so the position limits of x, y, and z can be roughly estimated according to the actual situation. Since w, p, and r are angles, they can be directly set to a range of (-180°, 180°]; in this embodiment, the speed limits of x, y, and z are [-5, 5], and the speed limits of w, p, and r are [-1.5, 1.5].
[0073] (3) Find the particle that minimizes the objective function value among the 500 particles and record it. At the same time, these 500 particles are updated according to the set function expression, and this process is repeated until the accuracy of the objective function reaches the predetermined value. The formula used for the update is:
[0074] β new =β+v (5)
[0075] v=v × c1 + c2 × rand(0, 1) × Δβ 个体 + c3 × rand(0, 1) × Δβ 群体 ; (6)
[0076] In the formula, β is a 6-dimensional particle; c1 is the inertia weight; c2 is the self-learning factor; c3 is the group learning factor; the Rand function is used to generate random numbers from 0 to 1; Δβ 个体 is the difference between particles in 2 iterations; Δβ 群体 is the difference between the particle between 2 iterations and the best particle of the previous iteration.
[0077] S106, integrating the solution results to obtain a hand-eye transformation matrix.
[0078] Substituting the solved x, y, z, w, p, and r into formula (4) can integrate the hand-eye transformation matrix.
[0079] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A robot line laser three-plane particle swarm optimization calibration method, characterized in that: The method comprises the following steps: S101, install a line laser camera at the end of the robot and fix a disc on the workbench; S102, using a line laser camera to illuminate the disk plane, continuously changing the posture of the line laser camera during illumination, and acquiring a plurality of disk plane data points; S103, changing the position and posture of the disk plane, and repeating step S102 after each change to obtain multiple sets of disk plane data; S104, performing least square plane fitting on the plurality of sets of disk plane data respectively, and taking the sum of standard deviations of the obtained fitting planes as the objective function; S105, using the Euler angle representation method to represent the hand-eye matrix, and performing particle swarm optimization based on the obtained objective function, and integrating the results obtained to obtain the hand-eye transformation matrix.
2. The robot line laser three-plane particle swarm optimization calibration method according to claim 1, characterized in that: The theoretical basis formula for disk plane data acquisition is: In the formula, L p i is the data coordinates obtained in the line laser coordinate system; It is recorded L p i Corresponding robot position and posture information; is the hand-eye matrix to be solved, B p i It is the data coordinate in the robot base coordinate system.
3. The robot line laser three-plane particle swarm optimization calibration method according to claim 2, characterized in that: When using Euler angles, the 4*4 hand-eye matrix is simplified into 6 parameters to be solved: x, y, z, w, p, and r.
4. The robot line laser three-plane particle swarm optimization calibration method according to claim 3, characterized in that: The Euler angle expression of the hand-eye matrix is: Combining formula (1) and formula (4), when x, y, z, w, p, and r are given, the obtained disk plane data points are transformed into the robot base coordinate system, and the least squares plane fitting is performed on the transformed disk plane data points to obtain the objective function.
5. The robot line laser three-plane particle swarm optimization calibration method according to claim 3, characterized in that: Substitute the solved x, y, z, w, p, and r into formula (4) to integrate and obtain the hand-eye transformation matrix.
6. The robot line laser three-plane particle swarm optimization calibration method according to any one of claims 1 to 5, characterized in that: Step S102 specifically includes the following steps: (1) Move and adjust the line laser camera so that the line laser is normally irradiated on the disk plane; (2) Keeping the posture of the line laser camera unchanged, the line laser camera is continuously moved so that the line laser camera can obtain as many data points on the disk plane as possible in this posture; (3) Changing the posture of the line laser camera and continuously repeating step (2) to obtain multiple sets of data, each set of data obtained must record the corresponding robot posture information.
7. The robot line laser three-plane particle swarm optimization calibration method according to any one of claims 1 to 5, characterized in that: The number of groups of disk plane data is 3.
8. The robot line laser three-plane particle swarm optimization calibration method according to claim 3, characterized in that: The specific steps of particle swarm optimization solution are: (1) Determine the Euler angle representation of the hand-eye matrix and transform the matrix problem into a problem of solving six dimensional parameters: x, y, z, w, p, and r; (2) Set the speed limit and position limit of particle movement and randomly generate 500 initial 6-dimensional particles; (3) Find the particle that minimizes the value of the objective function among the 500 particles and record it. At the same time, these 500 particles are updated according to the set function expression, and the process is repeated until the accuracy of the objective function reaches the predetermined value.
9. The robot line laser three-plane particle swarm optimization calibration method according to claim 8, characterized in that: The formula used for the update is: β new =β+v (5) v=v×c1+c2×rand(0,1)×Δβ 个体 +c3×rand(0,1)×Δβ 群体 (6) In the formula, β is a 6-dimensional particle; c1 is the inertia weight; c2 is the self-learning factor; c3 is the group learning factor; the rand function is used to generate a random number from 0 to 1; Δβ 个体 is the difference of particles between 2 iterations; Δβ 群体 is the difference between the particle between 2 iterations and the best particle of the previous iteration.
Citation Information
Patent Citations
Gmapping mapping method of mobile robot based on sparse pose adjustment
CN111427370A
Robot hand-eye calibration method based on line laser scanner
CN112659112A
Standard cylinder-based linear laser scanning robot hand-eye calibration method
CN113681559A
Robotic three-dimensional scanning device and method
WO2018103694A1
