A parameter calibration method, device, equipment and medium
By constructing a kinematic model and using a standard ball for two optimization solutions, the problem of the conventional calibration process falling into local extreme values is solved, the accuracy and robustness of parameter calibration are improved, and the accuracy of the calibration is ensured.
Patent Information
- Application Number
- CN202410905399.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-08
AI Technical Summary
The conventional calibration process can easily fall into local extreme values, affecting the accuracy of parameter calibration.
Construct a kinematic model of the workpiece to be inspected, and build a calibration optimization model based on the model and the preset calibration workpiece. The initial and final calibration parameters are obtained through two optimizations. The standard ball is used as the calibration workpiece, and the laser line related parameters are optimized.
The accuracy and robustness of calibration are improved, the number of calibration parameters is reduced, and the accuracy of calibration is ensured.
Smart Images

Figure CN118445522B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser measurement technology, and in particular to a parameter calibration method, device, equipment and medium. Background Art
[0002] When using laser-based measuring equipment to scan and measure the workpiece to be inspected, the large number of parameters in the designed calibration system will cause the conventional calibration process to fall into local extreme values, making the accuracy of the calibration results difficult to predict, affecting the accuracy of parameter calibration. Summary of the invention
[0003] The main technical problem solved by the present invention is that the conventional calibration process is prone to fall into a local extreme value, thereby affecting the accuracy of parameter calibration.
[0004] According to the first aspect, an embodiment provides a parameter calibration method, which is applied in a multi-axis measurement system; comprising:
[0005] Constructing a kinematic model corresponding to the workpiece to be inspected; the kinematic model includes a transfer function and motion parameters constructed according to the workpiece to be inspected and the multi-axis measurement system;
[0006] A calibration optimization model is constructed based on the kinematic model and a preset calibration workpiece, and the calibration optimization model is optimized and solved to obtain initial calibration parameters; wherein the preset calibration workpiece includes a standard ball;
[0007] The calibration optimization model is optimized and solved again according to the initial calibration parameters to obtain final optimized calibration parameters.
[0008] In some embodiments, the step of constructing a calibration optimization model based on the kinematic model and a preset calibration workpiece includes:
[0009] The calibration optimization model includes: ,
[0010] ,
[0011] in, Indicates The initial calibration parameters at the number of iterations, Indicates The posture input data at the iteration number, Indicates The workpiece coordinates of the preset calibration workpiece at the number of iterations, Indicates Kinematic model with iterations, Indicates the radius of the preset calibration workpiece. Indicates the initial calibration parameters.
[0012] In some embodiments, re-optimizing and solving the calibration optimization model according to the initial calibration parameters includes:
[0013] Constructing calibration parameters to be solved according to the initial calibration parameters and laser line related parameters;
[0014] Substituting the calibration parameters to be solved into the calibration optimization model to obtain an updated calibration optimization model;
[0015] The updated calibration optimization model is optimized and solved using a preset nonlinear optimization algorithm to obtain final optimized calibration parameters.
[0016] In some embodiments, the laser line related parameters include a linear velocity vector corresponding to the laser line and a spinor coordinate corresponding to the laser line.
[0017] In some embodiments, the step of constructing a kinematic model corresponding to the workpiece to be inspected includes:
[0018] Constructing a corresponding workpiece kinematic chain based on the workpiece to be detected, and constructing a corresponding sensor kinematic chain based on the sensor in the multi-axis measurement system; the sensor includes a laser line scanning sensor;
[0019] A transfer function is constructed according to the workpiece motion chain and the sensor motion chain, and a kinematic model is constructed according to the transfer function and motion parameters corresponding to the transfer function.
[0020] In some embodiments, the step of constructing a corresponding workpiece kinematic chain based on the workpiece to be inspected includes:
[0021] Constructing a reference coordinate system corresponding to the workpiece to be detected, and constructing a workpiece coordinate system corresponding to the workpiece rotation axis in the multi-axis measurement system; the reference coordinate system includes a coordinate system constructed according to the linear axes in the multi-axis measurement system;
[0022] A workpiece kinematic chain is established based on the reference coordinate system, a linear axis having a preset motion relationship with the workpiece to be inspected, the workpiece rotation axis and the workpiece coordinate system.
[0023] In some embodiments, the step of constructing a corresponding sensor kinematic chain based on sensors in the multi-axis measurement system includes:
[0024] Constructing a reference coordinate system corresponding to the workpiece to be detected, and obtaining a translation amount corresponding to the sensor;
[0025] A sensor kinematic chain is established based on the reference coordinate system, a preset axis among the linear axes in the multi-axis measurement system, a sensor rotation axis in the multi-axis measurement system, the sensor, and the translation amount.
[0026] According to the second aspect, an embodiment provides a parameter calibration device, which is applied in a multi-axis measurement system; comprising:
[0027] A model building module, used to build a kinematic model corresponding to the workpiece to be detected; the kinematic model includes a transfer function and motion parameters built according to the workpiece to be detected and the multi-axis measurement system;
[0028] An initial optimization module, used to construct a calibration optimization model based on the kinematic model and a preset calibration workpiece, and optimize and solve the calibration optimization model to obtain initial calibration parameters; wherein the preset calibration workpiece includes a standard ball;
[0029] The re-optimization module is used to re-optimize and solve the calibration optimization model according to the initial calibration parameters to obtain the final optimized calibration parameters.
[0030] According to the third aspect, an embodiment provides a parameter calibration device, characterized in that it includes:
[0031] Memory, used to store programs;
[0032] The processor is used to implement the parameter calibration method by executing the program stored in the memory.
[0033] According to the fourth aspect, an embodiment provides a computer-readable storage medium, characterized in that a program is stored on the medium, and the program can be executed by a processor to implement a parameter calibration method.
[0034] According to the parameter calibration method, device, equipment and computer-readable storage medium of the above-mentioned embodiments, when constructing the calibration optimization model according to the kinematic model corresponding to the workpiece to be detected, a standard ball is used as the calibration workpiece, and the calibration optimization model is optimized and solved twice, thereby improving the calibration accuracy and calibration robustness, reducing the number of calibration parameters, and ensuring the calibration accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 This is a parameter calibration flow chart of an embodiment of the present application;
[0036] Figure 2 A parameter calibration flow chart of an embodiment;
[0037] Figure 3 A parameter calibration flow chart of another embodiment;
[0038] Figure 4 A schematic diagram of the structure of a multi-axis measurement system according to an embodiment;
[0039] Figure 5is a schematic diagram of a workpiece kinematic chain of an embodiment;
[0040] Figure 6 A parameter calibration flow chart of an embodiment;
[0041] Figure 7 is a schematic diagram of a sensor kinematic chain according to an embodiment;
[0042] Figure 8 is a schematic diagram of a closed-loop kinematic chain of an embodiment;
[0043] Fig. 9 A parameter calibration flow chart of an embodiment;
[0044] Fig.10 A structural schematic diagram of parameter calibration of an embodiment. DETAILED DESCRIPTION
[0045] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.
[0046] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.
[0047] The serial numbers assigned to the components herein, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings).
[0048] Please refer to Figure 1 In an embodiment of the present invention, a parameter calibration method is provided, which is applied in a multi-axis measurement system. The parameter calibration method includes steps S1 to S3, which are described in detail below.
[0049] Step S1: constructing a kinematic model corresponding to the workpiece to be inspected; the kinematic model includes a transfer function and motion parameters constructed according to the workpiece to be inspected and the multi-axis measurement system.
[0050] Please refer to Figure 2 In some embodiments, step S1 constructs a kinematic model corresponding to the workpiece to be detected, including steps S11 to S12, which are described in detail below.
[0051] Step S11: constructing a corresponding workpiece kinematic chain based on the workpiece to be detected, and constructing a corresponding sensor kinematic chain based on the sensor in the multi-axis measurement system; the sensor includes a laser line scanning sensor or a point measurement sensor.
[0052] Please refer to Figure 3 In some embodiments, step S11 constructs a corresponding workpiece motion chain based on the workpiece to be detected, including steps S110 to S111, which are described in detail below.
[0053] Step S110: constructing a reference coordinate system corresponding to the workpiece to be inspected, and constructing a workpiece coordinate system corresponding to the workpiece rotation axis in the multi-axis measurement system; the reference coordinate system includes a coordinate system constructed according to the linear axes in the multi-axis measurement system.
[0054] Please refer to Figure 4 In some embodiments, the multi-axis measurement system includes a workpiece rotation axis, a sensor rotation axis, a sensor, and a linear axis, wherein the linear axis includes a horizontal axis, a vertical axis, and a vertical axis, namely, an X-axis, a Y-axis, and a Z-axis. A corresponding reference coordinate system is constructed according to the horizontal axis, the vertical axis, and the vertical axis, and the reference coordinate system is a virtual coordinate system constructed from the perspective of the linear axis for reference by the user.
[0055] In the construction of the multi-axis measurement system, the workpiece to be inspected is placed on the workpiece rotation axis C axis, and the workpiece coordinate system W corresponding to the workpiece rotation axis C axis is constructed in the process of constructing the workpiece motion chain, and the workpiece rotation axis C axis is set at the intersection of the horizontal axis X axis and the vertical axis Y axis in the reference coordinate system, so the X axis and the Y axis will drive the C axis to move. The sensor rotation axis B axis is set perpendicular to the vertical axis Z axis in the reference coordinate system, the sensor S is set on the sensor rotation axis B axis, and the sensor S is used to scan the workpiece to be inspected.
[0056] Step S111: establishing a workpiece motion chain based on a reference coordinate system, a linear axis having a preset motion relationship with the workpiece to be inspected, a workpiece rotation axis, and a workpiece coordinate system.
[0057] Please refer to Figure 5In some embodiments, the reference coordinate system is M, the linear axes having a preset motion relationship with the workpiece to be detected are the X-axis and the Y-axis, the workpiece rotation axis is the C-axis, and the workpiece coordinate system W corresponding to the workpiece rotation axis C-axis is constructed in the process of constructing the workpiece motion chain. Therefore, according to the robot kinematics theory, the workpiece motion chain M->X->Y->C->W is established.
[0058] Please refer to Figure 6 In some embodiments, step S11 constructs a corresponding sensor motion chain based on the sensors in the multi-axis measurement system, including steps S112 to S113, which are described in detail below.
[0059] Step S112: construct a reference coordinate system corresponding to the workpiece to be detected, and obtain the translation amount corresponding to the sensor.
[0060] In some embodiments, the reference coordinate system includes a virtual coordinate system constructed according to the X-axis, Y-axis, and Z-axis, wherein the X-axis, Y-axis, and Z-axis are equivalent to the horizontal axis, the vertical axis, and the vertical axis in the linear axis. In the process of constructing the sensor motion chain, a sensor coordinate system corresponding to the sensor is also constructed. If the sensor used is a laser line scanning sensor, the laser line scanning is not a single measurement point, but a line linearly arranged by many measurement points. Therefore, when constructing the sensor motion chain, it is also necessary to consider the translation amount relative to the origin of the sensor coordinate system when the laser line scanning sensor performs line scanning, that is, the translation amount SL corresponding to the laser line scanning sensor.
[0061] Step S113: establishing a sensor kinematic chain based on the reference coordinate system, the preset axes in the linear axes in the multi-axis measurement system, the sensor rotation axes in the multi-axis measurement system, the sensors, and the translation amounts.
[0062] Please refer to Figure 7 In some embodiments, the sensor motion chain can be expressed as M->Z->B->S->SL.
[0063] Please refer to Figure 8 In some embodiments, in the initial state of the multi-axis measurement system, the reference coordinate system M coincides with the workpiece coordinate system W, and a complete closed-loop motion chain corresponding to the multi-axis measurement system can be constructed based on the sensor motion chain and the workpiece motion chain.
[0064] Step S12: constructing a transfer function according to the workpiece kinematic chain and the sensor kinematic chain, and constructing a kinematic model according to the transfer function and the kinematic parameters corresponding to the transfer function.
[0065] In some embodiments, constructing a transfer function according to a workpiece kinematic chain and a sensor kinematic chain includes:
[0066] ,
[0067] in, represents the transfer function, represents the offset distance corresponding to the X axis in the linear axis, y represents the offset distance corresponding to the Y axis in the linear axis, and z represents the offset distance corresponding to the Z axis in the linear axis. Indicates the offset angle corresponding to the sensor's rotation axis, Indicates the offset angle corresponding to the workpiece rotation axis, It represents the reference measurement point corresponding to the sensor, and SL represents the translation amount corresponding to the sensor.
[0068] In some embodiments, the motion parameter can be expressed as ,in, represents the motion parameters corresponding to the transfer function, represents the compensation coefficient, represents the linear velocity vector corresponding to the sensor, Represents the angular velocity vector corresponding to the workpiece rotation axis, represents the angular velocity vector corresponding to the sensor's rotation axis, Indicates the coordinates of the preset point on the sensor's rotation axis, Indicates the coordinates of the preset point on the sensor, Represents the linear velocity vector corresponding to the translation amount.
[0069] In some embodiments, the motion parameter is expressed as ,and , Indicates the compensation coefficient between the X-axis and the Y-axis, Indicates the compensation coefficient between the X-axis and the Z-axis, Indicates the compensation coefficient between the Y-axis and the Z-axis. , , Represents the linear velocity vector corresponding to the sensor and the X-axis, Represents the linear velocity vector corresponding to the sensor and the Y axis, Represents the linear velocity vector corresponding to the sensor and the Z axis, Represents the transposed matrix. , , Represents the angular velocity vector corresponding to the workpiece rotation axis and the X-axis, Represents the angular velocity vector corresponding to the workpiece rotation axis and the Y axis, Represents the angular velocity vector corresponding to the workpiece rotation axis and the Z axis, Represents the transposed matrix. , , Represents the angular velocity vector corresponding to the sensor rotation axis and the X-axis, Represents the angular velocity vector corresponding to the sensor rotation axis and the Y axis, Represents the angular velocity vector corresponding to the sensor rotation axis and the Z axis, Represents the transposed matrix. ,in, Indicates the coordinates of the sensor's rotation axis and the preset point on the X-axis, Indicates the coordinates of the preset points on the sensor's rotation axis and Z axis. ,in, Indicates the coordinates of the sensor and the preset point on the X-axis, Indicates the coordinates of the sensor and the preset point on the Y axis. , , Represents the linear velocity vector corresponding to the translation amount and the X-axis, Represents the linear velocity vector corresponding to the translation amount and the Y axis, Represents the linear velocity vector corresponding to the translation amount and the Z axis, Represents the transposed matrix.
[0070] In some embodiments, a kinematic model is constructed based on the transfer function U and the motion parameter V corresponding to the transfer function. .
[0071] Step S2: constructing a calibration optimization model based on the kinematic model and a preset calibration workpiece, and optimizing and solving the calibration optimization model to obtain initial calibration parameters; wherein the preset calibration workpiece includes a standard ball.
[0072] In some embodiments, a calibration optimization model is constructed based on a kinematic model and a preset calibration workpiece, including:
[0073] The calibration optimization model includes: ,
[0074] ,
[0075] in, Indicates The initial calibration parameters at the number of iterations, Indicates The posture input data at the iteration number, Indicates The workpiece coordinates of the preset calibration workpiece at the number of iterations, Indicates Kinematic model with iterations, Indicates the radius of the preset calibration workpiece. Indicates the initial calibration parameters.
[0076] In some embodiments, the calibration optimization model is optimized and solved using the LM nonlinear optimization algorithm to obtain the initial calibration parameters. , . Among them, one of the measurement points scanned by the laser line scanning sensor is obtained, but when performing the optimization solution, the laser line scanning sensor will be degraded to a point measurement sensor. Therefore, the motion parameter In And in the subsequent spiral theory The corresponding spin Do not participate in this calibration, therefore, the initial calibration parameters after optimization are , thus reducing the number of calibration parameters.
[0077] Step S3: Optimize and solve the calibration optimization model again according to the initial calibration parameters to obtain the final optimized calibration parameters.
[0078] Please refer to Fig. 9 In some embodiments, step S3 further optimizes and solves the calibration optimization model according to the initial calibration parameters, including steps S31 to S33, which are described in detail below.
[0079] Step S31: constructing calibration parameters to be solved according to the initial calibration parameters and laser line related parameters.
[0080] In some embodiments, according to the initial calibration parameters Construct the calibration parameters to be solved with the laser line related parameters , where the laser line related parameters include the linear velocity vector corresponding to the laser line And the spinor coordinates corresponding to the laser line By taking the relevant parameters of the laser line into account during the second optimization solution, the accuracy of the calibration can be improved while ensuring that the number of parameters is reduced during the optimization solution.
[0081] Step S32: Substitute the calibration parameters to be solved into the calibration optimization model to obtain an updated calibration optimization model.
[0082] In some embodiments, the calibration parameter to be solved is Substitute it into the calibration optimization model, and the updated calibration optimization model is:
[0083] ,
[0084] ,
[0085] in, Indicates The initial calibration parameters at the number of iterations, Indicates The posture input data at the iteration number, Indicates The workpiece coordinates of the preset calibration workpiece at the number of iterations, Indicates The kinematic model under the number of iterations and calibration parameters to be solved, Indicates the radius of the preset calibration workpiece. Indicates the calibration parameters to be solved.
[0086] Step S33: Utilize a preset nonlinear optimization algorithm to optimize and solve the updated calibration optimization model to obtain the final optimized calibration parameters.
[0087] Please refer to Fig.10 An embodiment of the present invention provides a parameter calibration device, which is applied in a multi-axis measurement system. The parameter calibration device includes a model building module 10, an initial optimization module 20 and a secondary optimization module 30, which are described in detail below.
[0088] The model building module 10 is used to build a kinematic model corresponding to the workpiece to be detected; the kinematic model includes a transfer function and motion parameters built according to the workpiece to be detected and the multi-axis measurement system.
[0089] The initial optimization module 20 is used to construct a calibration optimization model based on the kinematic model and a preset calibration workpiece, and optimize and solve the calibration optimization model to obtain initial calibration parameters; wherein the preset calibration workpiece includes a standard ball.
[0090] The re-optimization module 30 is used to re-optimize and solve the calibration optimization model according to the initial calibration parameters to obtain the final optimized calibration parameters.
[0091] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.
[0092] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.
Claims
1. A parameter calibration method, applied in a multi-axis measurement system; characterized in that: include: Constructing a kinematic model corresponding to the workpiece to be inspected; the kinematic model includes a transfer function and motion parameters constructed according to the workpiece to be inspected and the multi-axis measurement system; A calibration optimization model is constructed based on the kinematic model and a preset calibration workpiece, and the calibration optimization model is optimized and solved to obtain initial calibration parameters; wherein the preset calibration workpiece includes a standard ball; and the calibration optimization model includes: , , in, Indicates The initial calibration parameters at the number of iterations, Indicates The posture input data at the iteration number, Indicates The workpiece coordinates of the preset calibration workpiece at the number of iterations, Indicates Kinematic model with iterations, Indicates the radius of the preset calibration workpiece. represents the initial calibration parameters; The calibration optimization model is optimized and solved again according to the initial calibration parameters to obtain final optimized calibration parameters.
2. The method according to claim 1, characterized in that The re-optimizing and solving the calibration optimization model according to the initial calibration parameters includes: Constructing calibration parameters to be solved according to the initial calibration parameters and laser line related parameters; Substituting the calibration parameters to be solved into the calibration optimization model to obtain an updated calibration optimization model; The updated calibration optimization model is optimized and solved using a preset nonlinear optimization algorithm to obtain final optimized calibration parameters.
3. The method according to claim 2, characterized in that The laser line related parameters include a linear velocity vector corresponding to the laser line and a spinor coordinate corresponding to the laser line.
4. The method according to claim 1, characterized in that The kinematic model corresponding to the workpiece to be detected is constructed, including: Constructing a corresponding workpiece kinematic chain based on the workpiece to be detected, and constructing a corresponding sensor kinematic chain based on the sensor in the multi-axis measurement system; the sensor includes a laser line scanning sensor; A transfer function is constructed according to the workpiece motion chain and the sensor motion chain, and a kinematic model is constructed according to the transfer function and motion parameters corresponding to the transfer function.
5. The method according to claim 4, characterized in that The step of constructing a corresponding workpiece kinematic chain based on the workpiece to be detected includes: Constructing a reference coordinate system corresponding to the workpiece to be detected, and constructing a workpiece coordinate system corresponding to the workpiece rotation axis in the multi-axis measurement system; the reference coordinate system includes a coordinate system constructed according to the linear axes in the multi-axis measurement system; A workpiece kinematic chain is established based on the reference coordinate system, a linear axis having a preset motion relationship with the workpiece to be inspected, the workpiece rotation axis and the workpiece coordinate system.
6. The method according to claim 4, characterized in that The step of constructing a corresponding sensor kinematic chain based on the sensors in the multi-axis measurement system includes: Constructing a reference coordinate system corresponding to the workpiece to be detected, and obtaining a translation amount corresponding to the sensor; A sensor kinematic chain is established based on the reference coordinate system, a preset axis among the linear axes in the multi-axis measurement system, a sensor rotation axis in the multi-axis measurement system, the sensor, and the translation amount.
7. A parameter calibration device, used in a multi-axis measurement system; characterized in that: include: A model building module, used to build a kinematic model corresponding to the workpiece to be detected; the kinematic model includes a transfer function and motion parameters built according to the workpiece to be detected and the multi-axis measurement system; An initial optimization module is used to construct a calibration optimization model based on the kinematic model and a preset calibration workpiece, and optimize and solve the calibration optimization model to obtain initial calibration parameters; wherein the preset calibration workpiece includes a standard ball; the calibration optimization model includes: , , in, Indicates The initial calibration parameters at the number of iterations, Indicates The posture input data at the iteration number, Indicates The workpiece coordinates of the preset calibration workpiece at the number of iterations, Indicates Kinematic model with iterations, Indicates the radius of the preset calibration workpiece. represents the initial calibration parameters; The re-optimization module is used to re-optimize and solve the calibration optimization model according to the initial calibration parameters to obtain the final optimized calibration parameters.
8. A parameter calibration device, characterized in that: include: Memory, used to store programs; A processor, configured to implement the method according to any one of claims 1 to 6 by executing the program stored in the memory.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, which can be executed by a processor to implement the method according to any one of claims 1 to 6.
