3D measurement model and spatial calibration method based on 1D displacement sensor
11654568 · 2023-05-23
Assignee
Inventors
- Wei Liu (Liaoning, CN)
- Bing Liang (Liaoning, CN)
- Mengde Zhou (Liaoning, CN)
- Kun Liu (Liaoning, CN)
- Yang Zhang (Liaoning, CN)
- Di Feng (Liaoning, CN)
- Xintong Jiang (Liaoning, CN)
- Likun Si (Liaoning, CN)
- Zhenyuan Jia (Liaoning, CN)
Cpc classification
B25J9/1694
PERFORMING OPERATIONS; TRANSPORTING
B25J19/027
PERFORMING OPERATIONS; TRANSPORTING
International classification
Abstract
A 3D measurement model and the spatial calibration method based on a 1D displacement sensor are proposed. A 3D measurement system based on a fixed 1D displacement sensor is established; then a spatial measurement model based on the 1D displacement sensor is established; and then based on the high precision pose data of the measurement plane and sensor measurement data, spatial calibration constraint equation are established; a weighted iterative algorithms is employed to calculate the extrinsic parameters of the 1D sensor that meet the precision requirements, then the calibration process is completed. A high precision 3D measurement model is established; a 3D measurement model based on a 1D displacement sensor is established, and the calibration method of the measurement model is proposed, which will improve the precision of the 3D measurement model and solve the problem of inaccurate spatial measurement caused by the errors of the sensor extrinsic parameters.
Claims
1. A method of calibrating extrinsic parameters of a 1D displacement sensor by a 3D measurement model, wherein, firstly, a 3D measurement system based on a fixed 1D displacement sensor is established; then a spatial measurement model based on the 1D displacement sensor is established; and then based on precision pose data of a measurement plane and sensor measurement data, a spatial calibration constraint equation are established; finally, a weighted iterative algorithms is employed to calculate the extrinsic parameters of the 1D displacement sensor, the measurement origin and measurement vector, that meet precision requirements, then the calibration process is completed; finally, a precision 3D measurement model is established; the method comprising steps of: step 1) establishing the 3D measurement system based on the fixed 1D displacement sensor: wherein, first, the 1D displacement sensor is fixed on the frame for 3D information measurement, and its displacement measurement value is obtained through a data acquisition card; then the space calibration system is set up and the measurement plane is mounted on a hexapod, which is capable of 6-DOF motion; a workpiece coordinate system is established based on the hexapod, and the initial plane equation of the measurement plane in the workpiece coordinate system is determined as follows:
N.sub.0.Math.(xyz1).sup.T=0 (1) where, N.sub.0 is the plane equation parameter; then, the above-mentioned calibration system is moved into the measurement range of the 1D displacement sensor by an extrinsic actuator, and the transformation relationship between the world coordinate system and the workpiece coordinate system is established by the extrinsic measurement system, which is used to transform subsequent calibration results to the world coordinate system; step 2) establishing the spatial measurement model based on the 1D displacement sensor: wherein, in the workpiece coordinate system, the measurement origin of the displacement sensor is defined as O=[O.sub.x O.sub.y O.sub.z].sup.T, the unit measurement vector is defined as t=[t.sub.x t.sub.y t.sub.z].sup.T, and the following relation holds:
∥t.sub.2∥=t.sub.x.sup.2+t.sub.y.sup.2+t.sub.z.sup.2=1 (2) the measurement origin O and the measurement vector t are the extrinsic parameters of the 1D displacement sensor to be calibrated; from the above equations, the measurement points Pin the workpiece coordinate system are:
P=(xyz).sup.T=O+δt (3) where, δ is the displacement value measured by the 1D displacement sensor; according to equation (1), at the initial position, the point P.sub.0 on the measurement plane satisfies:
N.sub.0.Math.(P.sub.01).sup.T=0 (4) step 3) based on the precision pose data of the measurement plane and the measurement data of the 1D displacement sensor, establishing the spatial calibration constraint equations: wherein, multiple pose transformations are performed, and parameters (l,m,n,α,β,γ) for each pose transformation are recorded separately, where (l,m,n) represents the displacements along the X, Y, Z axes, (α,β,γ) represents the Euler angles rotated around the X, Y, Z axes; thus, the rotation matrix R and translation matrix T are expressed as:
N.sub.i.Math.(P.sub.i1).sup.T=0 (6) meanwhile, according to equation (5), there is:
P.sub.i=R.sub.i.Math.P.sub.0+T.sub.i (7) combining equations (4) and (7), we can get:
min ∥f(s)∥.fwdarw.0 (10) where, ε is the allowable error; due to the different contribution to the overall error of each calibration sample, it is necessary to adjust the weight of each sample to avoid generating local solutions through over-optimization; equation (10) is converted into:
∥f.sub.i(s)∥≤λ.sub.iε (11) where λ.sub.i (i=1, 2, . . . , M) is the weight coefficients and M is the number of samples; the optimization objective is constructed as follows, and the set of inequalities (11) is transformed into a minimum optimization problem:
s*=argmin.sub.s{G(s)} (14) through the above steps, the establishment and spatial calibration of the 3D measurement model based on the 1D displacement sensor in the workpiece coordinate system is completed, and the translation relationship between world coordinate system and workpiece coordinate system is used to transform the calibrated 3D measurement model to the world coordinate system.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4) In the figure: 1—the displacement sensor; 2—the measurement plane; 3—the measurement errors based on the weightless calibration results; 4—the measurement errors based on the weighted calibration results; 5—statistics of the measurement errors based on the weightless calibration results; 6—statistics of the measurement errors based on the weighted calibration results; O—the measurement origin of the displacement sensor; t—the measurement vector of the displacement sensor; δ—the measurement value of the displacement sensor; P—the measurement point.
DETAILED DESCRIPTION
(5) Hereinafter, specific implementation of the present invention will be described with reference to the technical solutions and the drawings.
(6)
(7)
(8)
(9) Specific steps are as follows:
(10) 1. A 3D measurement system based on a fixed 1D displacement sensor is established. First, the displacement sensor (Kaman, KD2306-6U1, measurement range: 0 mm-6 mm) is fixed on the frame for 3D information measurement, and its displacement measurement value is obtained through a data acquisition card; then the space calibration system is set up and the measurement plane is mounted on a hexapod, which is capable of 6-DOF motion; a workpiece coordinate system is established based on the hexapod, and the initial plane equation of the measurement plane in the workpiece coordinate system is determined as follows:
N.sub.0□(xyz1).sup.T=0 (15)
(11) where, N.sub.0=(0.027,−0.002,−1.000,129.871) is the plane equation parameter; then, the above-mentioned calibration system is moved into the measurement range of the displacement sensor by an extrinsic actuator, and generally, the world coordinate system is established on the workpiece coordinate system:
(12)
(13) where, R.sub.W and T.sub.W are the rotation and translation matrices between the workpiece coordinate system and the world coordinate system respectively.
(14) By controlling the movement of the hexapod, which is connected to a computer, the measurement plane is driven to change the pose; finally, the measurement value δ of displacement sensor and the pose parameters (α,β,γ,l,m,n) are collected by the computer.
(15) 2. The spatial measurement model based on a 1D displacement sensor is established. In the workpiece coordinate system, the measurement origin of the displacement sensor is defined as O=[O.sub.x O.sub.y O.sub.z].sup.T, the unit measurement vector is defined as t=[t.sub.x t.sub.y t.sub.z].sup.T, and the following relation holds:
∥t∥.sub.2=t.sub.x.sup.2t.sub.y.sup.2+t.sub.z.sup.2=1 (17)
(16) The measurement origin O and the measurement vector t are the extrinsic parameters of the displacement sensor to be calibrated;
(17) From the above equations, the measurement points P in the workpiece coordinate system are:
P=(xyz).sup.T=O+δt (18)
(18) where, δ is the displacement value measured by the displacement sensor; according to equation (15), at the initial position, the point P.sub.0 on the measurement plane satisfies:
N.sub.0□(P.sub.01).sup.T=0 (19)
(19) 3. Based on the high precision pose data of the measurement plane and the measurement data of the sensor, the spatial calibration constraint equations are established.
(20) Multiple pose transformations are performed, and parameters (l,m,n,α,β,γ) for each pose transformation are recorded separately, where (l,m,n) represents the displacements along the X, Y, Z axes, (α,β,γ) represents the Euler angles rotated around the X, Y, Z axes; thus, the rotation matrix R and translation matrix T are expressed as:
(21)
(22) After the ith pose transformation of the measurement plane, the point P.sub.i on the measurement plane satisfies:
N.sub.i□(P.sub.i1).sup.T=0 (21)
(23) Meanwhile, according to equation (20), there is:
P.sub.i=P.sub.i□P.sub.0+T.sub.i (22)
(24) Combining equations (19) and (22), we can get:
(25)
(26) Substituting equations (18) and (23) into equation (21), the constraint equation is expressed as:
(27)
(28) where, O and t are the extrinsic parameters of the displacement sensor to be calibrated, δ.sub.i is the measured value of the displacement sensor at the ith time, and the remaining variables are all known quantities. R.sub.i and T.sub.i are calculated from the pose transformation parameters (l,m,n,α,β,γ), and N.sub.0 has been obtained in advance; A total of 200 pose transformations are performed, and a portion of the data are shown in the table below.
(29) TABLE-US-00001 Variable Index α (°) β (°) γ (°) l (mm) m (mm) n (mm) δ (mm) 1 −0.1001 −0.3001 −0.1001 −0.0001 −1.5 −1.0001 2.8998 2 −0.5 0.0999 −0.3 −0.0001 −1.0001 −1.0001 2.7344 3 0.3001 0.3 −0.5 −0.5 −1 −2.0001 3.9877 4 0.4999 0.5001 −0.0999 −1 −0.4999 −1.5 3.4955 5 0.1 0.1 −0.2998 −0.001 −5.001 −1.5001 3.4885 . . . . . . . . . . . . . . . . . . . . . . . .
(30) 4. A weighted iterative algorithms is employed to calculate the extrinsic parameters of the 1D sensor (the measurement origin and measurement vector), that meet the precision requirements.
(31) Due to the measurement and calculation errors, equation (24) cannot be zero, and iterative optimization is required to minimize its value;
(32) Let s=(O,t)=(O.sub.x,O.sub.y,O.sub.z,t.sub.x,t.sub.y,t.sub.z), equation (24) be expressed as:
min ∥f(s)∥.fwdarw.0 (25)
where, ε is the allowable error; Due to the different contribution to the overall error of each calibration sample, it is necessary to adjust the weight of each sample to avoid generating local solutions through over-optimization; equation (25) is converted into:
∥f.sub.i(s)∥≤λ.sub.iε (26)
(33) Measurement plane touching the displacement sensor or the measured value exceeding the range of the displacement sensor will result in insufficiency of the calibration sample quantity near the range limit value and even far less than the calibration sample quantity near the range median value, which is easy to cause over optimization. Weight coefficient based on sample distribution is adopted:
λ.sub.i=max(c)/c.sub.j,i.Math.c.sub.j,(i=1,2, . . . ,200,j=1,2, . . . ,5) (27)
where λ.sub.i is the weight coefficient of the ith sample. The overall calibration sample is divided into 5 groups according to the displacement measurement values for distribution statistics. c.sub.j is the size of the jth group, c is the vector composed of c.sub.j, i.Math.c.sub.j indicates that the ith sample belongs to the jth group. Sample distribution and weight coefficients of corresponding groups are as follows:
(34) TABLE-US-00002 Group Number 1 2 3 4 5 Sample Size 13 61 57 59 10 Weight 4.6923 1.0000 1.0702 1.0339 6.1000
(35) The optimization objective is constructed as follows, and the set of inequalities (26) is transformed into a minimum optimization problem;
(36)
(37) It can be seen from the sufficient and necessary that the solutions of equations (26) and (28) are equivalent;
(38) Then, the conventional LM iterative optimization algorithm is adopted, and the optimal solution is obtained:
s*=argmin.sub.s{G(s)} (30)
Through the above steps, four displacement sensors at different installation positions are calibrated, and the calibration results are as follows:
(39) TABLE-US-00003 Sensor No. O/mm t 1 [18.351, −132.296, 131.764] [−0.001, 0.307, −0.949] 2 [−28.151, −135.772, 133.268] [−0.031, 0.282, −0.955] 3 [29.461, 90.590, 132.799] [0.037, 0.307, −0.951] 4 [−19.378, 91.536, 131.732] [−0.053, 0.233, −0.971]
(40) 5. Precision Verification of the Spatial Measurement Model
(41) Based on the extrinsic parameters of the calibrated displacement sensor, the measurement plane placed in different positions is measured. According to the equation (18), the 3D coordinates of the measurement point are obtained, and the distance errors between the measurement points and the measurement plane are calculated, so as to verify the calibration precision.
(42) From
(43) According to the statistics of the measurement errors of the four sensors in