Automatic and high-precision user coordinate system calibration method and system
By installing an ultrasonic probe on an industrial robot to automatically measure distance and calculate the homogeneous transformation matrix of the user coordinate system, the problems of large errors and low efficiency of traditional calibration methods are solved, and high-precision and fast user coordinate system calibration is achieved.
Patent Information
- Application Number
- CN202410961319.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-27
AI Technical Summary
The traditional user coordinate system calibration method requires manual operation, which results in large errors, long time consumption, low efficiency, and may cause damage to robots, tools, and workpieces.
Multiple ultrasonic transceiver probes are installed on the robot base and the user coordinate system to be calibrated, and the user coordinate system is automatically calibrated by measuring distances to calculate coordinate values and homogeneous transformation matrices.
It achieves high-precision and fast user coordinate system calibration, improves efficiency, and reduces manual operation errors and equipment damage risks.
Smart Images

Figure CN118700154A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of industrial robot user coordinate system calibration and off-line programming, and in particular to an automatic, high-precision user coordinate system calibration method and system. Background Art
[0002] As the application fields of industrial robots continue to expand, enterprises have higher and higher requirements for robot performance and work efficiency. The user coordinate system is the basis of offline programming for industrial workers and one of the important conditions for industrial robots to complete tasks efficiently and quickly. Therefore, how to quickly and accurately calibrate the user coordinate system is one of the important research topics in the field of robotics.
[0003] The user coordinate system of the industrial robot is defined on the object workpiece and is defined by the user according to his or her needs. The direction of the user coordinate system of the industrial robot can be arbitrarily defined according to the customer's needs, which is convenient for user operation and programming. The user coordinate system calibration is the process of obtaining the homogeneous transformation matrix from the base coordinate system of the industrial robot to the user coordinate system, and then obtaining the pose vector based on the homogeneous transformation matrix.
[0004] The traditional user coordinate system calibration method requires manual operation to position the end point of the robot to different coordinate axes of the user coordinate system, so as to determine the user coordinate system and obtain the user coordinate system parameters. However, manual positioning will produce large errors, and the end point of the tool needs to be as close to the workpiece as possible during the calibration process, which is time-consuming, inefficient, and prone to collisions, which may cause damage to robots, tools, workpieces and other equipment. Summary of the invention
[0005] In view of this, an object of the present invention is to provide an automatic, high-precision user coordinate system calibration method and system, which can solve the problems in the background technology.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] An automatic, high-precision user coordinate system calibration method and system of the present invention comprises the following steps:
[0008] Install multiple ultrasonic transceiver probes on the robot base to build a base coordinate system; and install multiple ultrasonic transmitting probes in the user coordinate system to be calibrated;
[0009] Obtaining a first distance between a plurality of ultrasonic transceiver probes and the origin of the base coordinate system; and obtaining a second distance between any ultrasonic transceiver probe and any ultrasonic transmitting probe;
[0010] Based on the first distance and the second distance, calculating the coordinate values of all ultrasonic transmitting probes in the base coordinate system, and calculating the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system based on the coordinate values of all ultrasonic transmitting probes in the base coordinate system;
[0011] Calculating the coordinate axis direction of the user coordinate system to be calibrated based on the coordinate values of all ultrasonic transmitting probes in the base coordinate system and the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system;
[0012] Determine a first homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated based on the coordinate axis directions of the user coordinate system to be calibrated and the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system, and calculate a second homogeneous transformation matrix from the base coordinate system to the base coordinate system based on the first distance;
[0013] Based on the first homogeneous transformation matrix and the second homogeneous transformation matrix, a third homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated is calculated; and the third homogeneous transformation matrix is converted into a posture vector to complete the calibration.
[0014] In one embodiment of the present application, a plurality of ultrasonic transceiver probes including ultrasonic transceiver probe R1, ultrasonic transceiver probe R2 and ultrasonic transceiver probe R3 are installed at the vertex position of the robot base, and the ultrasonic transceiver probe R1 is used as the origin of the base coordinate system, R1R2 is the X-axis, and R1R3 is the Y-axis to form the base coordinate system;
[0015] The multiple ultrasonic transmitting probes include an ultrasonic transmitting probe S1, an ultrasonic transmitting probe S2 and an ultrasonic transmitting probe S3. The ultrasonic transmitting probe S1 and the ultrasonic transmitting probe S2 are located on the positive half axis of the X-axis of the user coordinate system to be calibrated, and the distance between the ultrasonic transmitting probe S1 and the origin of the user coordinate system to be calibrated is smaller than the distance between the ultrasonic transmitting probe S2 and the origin of the user coordinate system to be calibrated. The ultrasonic transmitting probe S3 is located on the positive half axis of the Y-axis of the user coordinate system to be calibrated.
[0016] In one embodiment of the present application, obtaining a first distance between a plurality of ultrasonic transceiver probes and an origin of a base coordinate system includes:
[0017] When the ultrasonic transceiver probe R1 sends an ultrasonic signal, a timer is started, and the time taken for the ultrasonic transceiver probe R2 and the ultrasonic transceiver probe R3 to receive the ultrasonic signal is recorded, which are t1 and t2 respectively;
[0018] Record the current ambient temperature K0;
[0019] The first distance d1 between the ultrasonic transceiver probe R1 and the ultrasonic transceiver probe R2 is calculated, and the first distance d2 between the ultrasonic transceiver probe R1 and the ultrasonic transceiver probe R3 is calculated, wherein; d1 = t1×(331.5+0.607K0), d2 = t2×(331.5+0.607K0).
[0020] In one embodiment of the present application, obtaining a second distance between any ultrasonic transceiver probe and any ultrasonic transmitting probe includes:
[0021] The ultrasonic transmitting probe S1, the ultrasonic transmitting probe S2 and the ultrasonic transmitting probe S3 transmit ultrasonic signals in sequence, and the timer is started at the same time, and the time t elapsed for the ultrasonic transceiver probe R1, the ultrasonic transceiver probe R2 and the ultrasonic transceiver probe R3 to receive the ultrasonic signal is recorded. ij , where i = 1, 2, 3; j = 1, 2, 3, t ij Indicates ultrasonic transceiver probe R j Receive the ultrasonic transmitting probe S i The time it takes for the ultrasonic signal to be emitted;
[0022] Record the current ambient temperature K1;
[0023] Calculate the second distance L between any ultrasonic transceiver probe and any ultrasonic transmitting probe ij , L ij =t ij ×(331.5+0.607K1), where L ij Indicates ultrasonic transmitting probe S i and ultrasonic transceiver probe R j The distance between.
[0024] 5. The automatic, high-precision user coordinate system calibration method according to claim 4, characterized in that the mathematical expression of the coordinate values of all ultrasonic transmitting probes in the base coordinate system is:
[0025]
[0026] In the formula, (x m ,y m ,z m ) is the coordinate value of the ultrasonic transmitting probe m in the base coordinate system, m=1,2,3.
[0027] In one embodiment of the present application, the origin of the user coordinate system to be calibrated is O U On the X-axis extension line determined by the ultrasonic transmitting probe S1 and the ultrasonic transmitting probe S2, and the X-axis of the user coordinate system to be calibrated determined by the ultrasonic transmitting probe S1 and the ultrasonic transmitting probe S2 is aligned with the origin O of the user coordinate system to be calibrated.U is perpendicular to the Y axis determined by the ultrasonic transmitting probe S3, wherein the origin O of the user coordinate system to be calibrated U The coordinate value (x o ,y o ,z o ) is calculated as:
[0028]
[0029] Where p is the intermediate variable.
[0030] In one embodiment of the present application, the mathematical expression of the coordinate axis direction of the user coordinate system to be calibrated is:
[0031]
[0032] In the formula, is the X-axis direction of the user coordinate system to be calibrated, is the Y-axis direction of the user coordinate system to be calibrated, It is the Z-axis direction of the user coordinate system to be calibrated.
[0033] In one embodiment of the present application, the first homogeneous transformation matrix The mathematical expression is:
[0034]
[0035] in,
[0036]
[0037] The second homogeneous transformation matrix The mathematical expression is:
[0038]
[0039] The third homogeneous transformation matrix The mathematical expression is:
[0040]
[0041] In one embodiment of the present application, the mathematical expression of the posture vector is: (x, y, z, a, b, c), where x, y, and z represent the coordinate values of the origin of the user coordinate system to be calibrated in the base coordinate system, and a, b, and c represent the rotation angle, pitch angle, and yaw angle, respectively.
[0042] When nz=1:
[0043]
[0044] When nz=-1:
[0045]
[0046] When nz≠±1:
[0047]
[0048] Among them, Atan2(k,g) is the inverse tangent function of a two-parameter variable.
[0049] The present application also provides an automatic, high-precision user coordinate system calibration system, comprising:
[0050] An installation module is used to install multiple ultrasonic transceiver probes on the robot base to build a base coordinate system; and install multiple ultrasonic transmitting probes into the user coordinate system to be calibrated;
[0051] The distance measuring module is used to obtain a first distance between a plurality of ultrasonic transceiver probes and the origin of the base coordinate system; and obtain a second distance between any ultrasonic transceiver probe and any ultrasonic transmitting probe;
[0052] A calculation module, used to calculate the coordinate values of all ultrasonic transmitting probes in the base coordinate system based on the first distance and the second distance, and calculate the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system based on the coordinate values of all ultrasonic transmitting probes in the base coordinate system; calculate the coordinate axis direction of the user coordinate system to be calibrated based on the coordinate axis direction of the user coordinate system to be calibrated, and calculate the second homogeneous transformation matrix from the base coordinate system to the base coordinate system based on the first distance;
[0053] The calibration module is used to calculate a third homogeneous transformation matrix from a base coordinate system to a user coordinate system to be calibrated based on the first homogeneous transformation matrix and the second homogeneous transformation matrix; and convert the third homogeneous transformation matrix into a posture vector to complete the calibration.
[0054] The beneficial effects of the present invention are as follows: an automatic, high-precision user coordinate system calibration method and system of the present invention, by installing multiple ultrasonic transceiver probes on the robot base, and installing ultrasonic transmitting probes in the user coordinates to be calibrated, obtains the first distance between the multiple ultrasonic transceiver probes and the origin of the base coordinate system; and obtains the second distance between any ultrasonic transceiver probe and any ultrasonic transmitting probe; obtains the homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated through the coordinate transformation relationship, and finally obtains the calibration parameter vector of the user coordinate system according to the homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated. The present application has the advantages of accurate calibration and high efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative work:
[0056] Figure 1 This is a structural diagram of a calibration device in one embodiment of the present application;
[0057] Figure 2 A schematic diagram of a base coordinate system, a base coordinate system, and a user coordinate system to be calibrated in an embodiment of the present application;
[0058] Figure 3 This is a schematic diagram of the installation positions of the ultrasonic transmitting probe and the ultrasonic transceiver probe in one embodiment of the present application;
[0059] Figure 4 This is a flow chart of an automatic, high-precision user coordinate system calibration method in one embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0061] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0062] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0063] like Figure 1-Figure 3 As shown, this application is approved by Figure 1 The calibration device shown executes the calibration method, and the calibration device includes a shell 1, an internal control circuit unit 2, a lithium battery 3, a liquid crystal touch screen 4, a temperature sensor connection plug 5, an ultrasonic probe connection plug 6, an ultrasonic transmitting probe 7, an ultrasonic transceiver probe 8, and a temperature sensor 9.
[0064] The internal control circuit unit 2 and the lithium battery pack 3 are installed inside the housing; the liquid crystal touch screen 4 is installed on the top of the housing; the temperature sensor connection plug 5 and the ultrasonic probe connection plug 6 are installed on the side of the housing.
[0065] The ultrasonic transmitting probe 7 and the ultrasonic transceiver probe 8 are connected to the ultrasonic probe connecting plug 6 through cables; the temperature sensor 9 is connected to the temperature sensor connecting plug 5 through cables.
[0066] The internal control circuit unit 2 is used for calculation, timing, display control, etc.;
[0067] The temperature sensor 9 is used to collect the ambient temperature;
[0068] The ultrasonic transmitting probe 7 and the ultrasonic transceiver probe 8 are used for distance measurement;
[0069] The LCD touch screen 4 is used for displaying information and user operations;
[0070] The lithium battery 3 is used to power the device.
[0071] like Figure 4 As shown: An automatic, high-precision user coordinate system calibration method and system of this embodiment includes the following steps:
[0072] Step 1: Install multiple ultrasonic transceiver probes on the robot base to build the base coordinate system; and install multiple ultrasonic transmitting probes in the user coordinate system to be calibrated;
[0073] Specifically, multiple ultrasonic transceiver probes including ultrasonic transceiver probe R1, ultrasonic transceiver probe R2 and ultrasonic transceiver probe R3 are installed at the vertex position of the robot base, where ultrasonic transceiver probe R1 is the origin of the base coordinate system, R1R2 is the X-axis, R1R3 is the Y-axis, and the Z-axis is determined according to the right-hand coordinate system; the connecting lines of the ultrasonic transceiver probe R1, ultrasonic transceiver probe R2 and ultrasonic transceiver probe R3 form a right triangle, with the ultrasonic transceiver probe R1 being the right-angle vertex.
[0074] The multiple ultrasonic transmitting probes include an ultrasonic transmitting probe S1, an ultrasonic transmitting probe S2 and an ultrasonic transmitting probe S3. The ultrasonic transmitting probe S1 and the ultrasonic transmitting probe S2 are located on the positive half axis of the X-axis of the user coordinate system to be calibrated, and the distance between the ultrasonic transmitting probe S1 and the origin of the user coordinate system to be calibrated is smaller than the distance between the ultrasonic transmitting probe S2 and the origin of the user coordinate system to be calibrated, and the ultrasonic transmitting probe S3 is located on the positive half axis of the Y-axis of the user coordinate system to be calibrated.
[0075] By default, the robot is installed in the center of the rectangular base.
[0076] Step 2: Obtain a first distance between a plurality of ultrasonic transceiver probes and the origin of the base coordinate system; the first distance includes a first distance d1 between the ultrasonic transceiver probe R1 and the ultrasonic transceiver probe R2, and a first distance d2 between the ultrasonic transceiver probe R1 and the ultrasonic transceiver probe R3; Indicates the distance between ultrasonic transceiver probes R1 and R2; Indicates the distance between ultrasonic transceiver probes R1 and R3.
[0077] The specific process includes:
[0078] The ultrasonic transceiver probe R1 sends an ultrasonic signal. When the ultrasonic transceiver probe R1 sends an ultrasonic signal, a timer is started, and the time taken for the ultrasonic transmitting probe R2 and the ultrasonic transmitting probe R3 to receive the ultrasonic signal is recorded, which are t1 and t2 respectively;
[0079] Record the current ambient temperature K0; for example, K0 = 24.5, in °C.
[0080] The first distance d1 between the ultrasonic transceiver probe R1 and the ultrasonic transceiver probe R2 is calculated, and the first distance d2 between the ultrasonic transceiver probe R1 and the ultrasonic transceiver probe R3 is calculated, wherein; d1 = t1 × (331.5 + 0.607K0), d2 = t2 × (331.5 + 0.607K0). d1 = 1430 mm, d2 = 960 mm.
[0081] Step 3: Obtain the second distance L between any ultrasonic transceiver probe and any ultrasonic transmitting probeij ; L ij represents the distance between the ultrasonic transmitting probe i and the ultrasonic transceiver integrated probe j (i=1,2,3; j=1,2,3);
[0082] The specific process includes:
[0083] (1) Ultrasonic transmitting probe S1, ultrasonic transmitting probe S2 and ultrasonic transmitting probe S3 send ultrasonic signals in sequence, start the timer, and record the time t that the ultrasonic transceiver probe R1, ultrasonic transceiver probe R2 and ultrasonic transceiver probe R3 take to receive the ultrasonic signal ij , where i = 1, 2, 3; j = 1, 2, 3, t ij Indicates ultrasonic transceiver probe R j Receive the ultrasonic transmitting probe S i The time it takes for the ultrasonic signal to be emitted;
[0084] (1-1) The ultrasonic transmitting probe S1 sends an ultrasonic signal, and the timer is immediately started to record the time it takes for the three ultrasonic transceiver probes R1, R2, and R3 to receive the ultrasonic signal sent by S1, which are recorded as t 11 , t 12 , t 13 , unit: milliseconds, t 11 =6.37463,t 12 =3.58650, t 13 =5.75772.
[0085] (1-2) The ultrasonic transmitting probe S2 sends an ultrasonic signal, and the timer is immediately started to record the time taken by the three ultrasonic transceiver probes R1, R2, and R3 to receive the ultrasonic signal sent by S2, which are recorded as t 21 , t 22 , t 23 , unit: milliseconds, t 21 =5.76188, t 22 =2.32943, t 23 =6.29697.
[0086] (1-3) When the ultrasonic transmitting probe S3 sends an ultrasonic signal, the timer is immediately started to record the time taken for the three ultrasonic transceiver probes R1, R2, and R3 to receive the ultrasonic signal sent by S3, which are recorded as t 31 , t 32 , t 33 , unit: milliseconds, t 31 =8.48722, t 32 =5.22078, t 33 =8.034206.
[0087] (2) Record the current ambient temperature K1 = 24.5;
[0088] (3) Calculate the second distance L between any ultrasonic transceiver probe and any ultrasonic transmitting probe ij , L ij =t ij ×(331.5+0.607K1).t ij It represents the time taken for the ultrasonic transmitting probe i to send the ultrasonic signal and the ultrasonic transceiver integrated probe j to receive the signal; L ij The result table is as follows:
[0089] Table 1. Second distance data table
[0090] <![CDATA[L 11 ]]> 2207.9902 <![CDATA[L 12 ]]> 1242.2613 <![CDATA[L 13 ]]> 1994.3101 <![CDATA[L 21 ]]> 1995.7510 <![CDATA[L 22 ]]> 806.8482 <![CDATA[L 23 ]]> 2181.0909 <![CDATA[L 31 ]]> 2939.7311 <![CDATA[L 32 ]]> 1808.3294 <![CDATA[L 33 ]]> 2782.8200
[0091] Step 4: Based on the first distance and the second distance, calculate the coordinate values (x m ,y m ,z m ); where (x m ,y m ,z m ) represents the coordinate value of the ultrasonic transmitting probe m in the base coordinate system, (m=1, 2, 3).
[0092]
[0093] (x m ,y m ,z m ) The results are as follows:
[0094] Table 2. Coordinate data table of ultrasonic transmitting probe m in the base coordinate system
[0095] <![CDATA[x1]]> 1880.03747 <![CDATA[x2]]> 1880.04131 <![CDATA[x3]]> 2593.30903 y1 947.68109 <![CDATA[y2]]> 76.80438 <![CDATA[y3]]> 947.67292 <![CDATA[z1]]> 665.26699 <![CDATA[z2]]> 665.25774 <![CDATA[z3]]> 1009.29843
[0096] Step 5: Calculating the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system based on the coordinate values of all ultrasonic transmitting probes in the base coordinate system;
[0097] The origin of the user coordinate system to be calibrated O U On the X-axis extension line determined by the ultrasonic transmitting probe S1 and the ultrasonic transmitting probe S2, and the X-axis of the user coordinate system to be calibrated determined by the ultrasonic transmitting probe S1 and the ultrasonic transmitting probe S2 is aligned with the origin O of the user coordinate system to be calibrated. U is perpendicular to the Y axis determined by the ultrasonic transmitting probe S3, wherein the origin O of the user coordinate system to be calibrated U The coordinate value (xo ,y o ,z o ) is calculated as:
[0098]
[0099] In the formula, p is the intermediate variable. Through the above formula, we can solve the intermediate variable p = -8.8003*10-06. Thus, we can calculate (x o ,y o ,z o )=(1880.03747,947.67342,665.26699).
[0100] Step 6: Calculate the coordinate axis direction of the user coordinate system to be calibrated based on the coordinate values of all ultrasonic transmitting probes in the base coordinate system and the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system;
[0101] The mathematical expression of the coordinate axis direction of the user coordinate system to be calibrated is:
[0102]
[0103] In the formula, is the X-axis direction of the user coordinate system to be calibrated, is the Y-axis direction of the user coordinate system to be calibrated, It is the Z-axis direction of the user coordinate system to be calibrated.
[0104] Step 7: Determine the first homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated based on the coordinate axis direction of the user coordinate system to be calibrated and the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system
[0105] in,
[0106]
[0107] Step 8: Calculate the second homogeneous transformation matrix from the base coordinate system to the base coordinate system based on the first distance
[0108]
[0109] Step 9: Based on the first homogeneous transformation matrix and the second homogeneous transformation matrix, calculate the third homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated
[0110]
[0111] Step 10: Convert the third homogeneous transformation matrix into a pose vector to complete the calibration.
[0112] The homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated Converted into the form of posture vector representation, the vector is (x, y, z, a, b, c), where x, y, z represent the coordinate values of the origin of the user coordinate system to be calibrated in the base coordinate system, a, b, c represent the rotation angle, pitch angle and yaw angle, the unit is degree, then:
[0113]
[0114] Among them: Atan2(k,g) is an inverse tangent function of two parameters, which can also be understood as calculating the argument of the complex number k+gi, and i is the imaginary unit.
[0115] The present invention provides an automatic and high-precision user coordinate system calibration method, which comprises the following steps: installing multiple ultrasonic transceiver probes on a robot base, installing ultrasonic transmitting probes in the user coordinate system to be calibrated, obtaining a first distance between the multiple ultrasonic transceiver probes and the origin of the base coordinate system; obtaining a second distance between any ultrasonic transceiver probe and any ultrasonic transmitting probe; obtaining a homogeneous transformation matrix from a base coordinate system to a user coordinate system to be calibrated through a coordinate transformation relationship, and finally obtaining a calibration parameter vector of the user coordinate system according to the homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated. The present application has the advantages of accurate calibration and high efficiency.
[0116] The present application also provides an automatic, high-precision user coordinate system calibration system, comprising:
[0117] An installation module is used to install multiple ultrasonic transceiver probes on the robot base to build a base coordinate system; and install multiple ultrasonic transmitting probes into the user coordinate system to be calibrated;
[0118] The distance measuring module is used to obtain a first distance between a plurality of ultrasonic transceiver probes and the origin of the base coordinate system; and obtain a second distance between any ultrasonic transceiver probe and any ultrasonic transmitting probe;
[0119] A calculation module, used to calculate the coordinate values of all ultrasonic transmitting probes in the base coordinate system based on the first distance and the second distance, and calculate the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system based on the coordinate values of all ultrasonic transmitting probes in the base coordinate system; calculate the coordinate axis direction of the user coordinate system to be calibrated based on the coordinate axis direction of the user coordinate system to be calibrated, and calculate the second homogeneous transformation matrix from the base coordinate system to the base coordinate system based on the first distance;
[0120] The calibration module is used to calculate a third homogeneous transformation matrix from a base coordinate system to a user coordinate system to be calibrated based on the first homogeneous transformation matrix and the second homogeneous transformation matrix; and convert the third homogeneous transformation matrix into a posture vector to complete the calibration.
[0121] An automatic, high-precision user coordinate system calibration system of the present invention is provided, by installing multiple ultrasonic transceiver probes on a robot base, and installing ultrasonic transmitting probes in the user coordinates to be calibrated, obtaining the first distance between the multiple ultrasonic transceiver probes and the origin of the base coordinate system; and obtaining the second distance between any ultrasonic transceiver probe and any ultrasonic transmitting probe; obtaining the homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated through the coordinate transformation relationship, and finally obtaining the calibration parameter vector of the user coordinate system according to the homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated. The present application has the advantages of accurate calibration and high efficiency.
[0122] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any one of the methods in this embodiment is implemented, wherein the method is the execution logic of this device.
[0123] This embodiment also provides an electronic terminal, including: a processor and a memory;
[0124] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes any one of the methods in this embodiment.
[0125] The computer-readable storage medium in this embodiment can be understood by ordinary technicians in this field: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[0126] The electronic terminal provided in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run computer programs so that the electronic terminal executes each step of the above method.
[0127] In this embodiment, the memory may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0128] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0129] In the above-mentioned embodiments, although the present invention has been described in conjunction with the specific embodiments of the present invention, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art according to the foregoing description. The embodiments of the present invention are intended to cover all such replacements, modifications and variations falling within the broad scope of the appended claims.
[0130] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. An automatic, high-precision user coordinate system calibration method, characterized in that: Includes steps: Install multiple ultrasonic transceiver probes on the robot base to build a base coordinate system; and install multiple ultrasonic transmitting probes in the user coordinate system to be calibrated; Obtaining a first distance between a plurality of ultrasonic transceiver probes and the origin of the base coordinate system; and obtaining a second distance between any ultrasonic transceiver probe and any ultrasonic transmitting probe; Based on the first distance and the second distance, calculating the coordinate values of all ultrasonic transmitting probes in the base coordinate system, and calculating the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system based on the coordinate values of all ultrasonic transmitting probes in the base coordinate system; Calculating the coordinate axis direction of the user coordinate system to be calibrated based on the coordinate values of all ultrasonic transmitting probes in the base coordinate system and the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system; Determine a first homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated based on the coordinate axis directions of the user coordinate system to be calibrated and the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system, and calculate a second homogeneous transformation matrix from the base coordinate system to the base coordinate system based on the first distance; Based on the first homogeneous transformation matrix and the second homogeneous transformation matrix, a third homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated is calculated; and the third homogeneous transformation matrix is converted into a posture vector to complete the calibration.
2. The automatic, high-precision user coordinate system calibration method according to claim 1, characterized in that: A plurality of ultrasonic transceiver probes including ultrasonic transceiver probe R1, ultrasonic transceiver probe R2 and ultrasonic transceiver probe R3 are installed at the vertex position of the robot base, and the base coordinate system is formed by taking the ultrasonic transceiver probe R1 as the origin of the base coordinate system, R1R2 as the X axis, and R1R3 as the Y axis; The multiple ultrasonic transmitting probes include an ultrasonic transmitting probe S1, an ultrasonic transmitting probe S2 and an ultrasonic transmitting probe S3. The ultrasonic transmitting probe S1 and the ultrasonic transmitting probe S2 are located on the positive half axis of the X-axis of the user coordinate system to be calibrated, and the distance between the ultrasonic transmitting probe S1 and the origin of the user coordinate system to be calibrated is smaller than the distance between the ultrasonic transmitting probe S2 and the origin of the user coordinate system to be calibrated. The ultrasonic transmitting probe S3 is located on the positive half axis of the Y-axis of the user coordinate system to be calibrated.
3. The automatic, high-precision user coordinate system calibration method according to claim 2, characterized in that: Obtaining the first distance between the plurality of ultrasonic transceiver probes and the origin of the base coordinate system includes: When the ultrasonic transceiver probe R1 sends an ultrasonic signal, a timer is started, and the time taken for the ultrasonic transceiver probe R2 and the ultrasonic transceiver probe R3 to receive the ultrasonic signal is recorded, which are t1 and t2 respectively; Record the current ambient temperature K0; The first distance d1 between the ultrasonic transceiver probe R1 and the ultrasonic transceiver probe R2 is calculated, and the first distance d2 between the ultrasonic transceiver probe R1 and the ultrasonic transceiver probe R3 is calculated, wherein; d1 = t1×(331.5+0.607K0), d2 = t2×(331.5+0.607K0).
4. The automatic, high-precision user coordinate system calibration method according to claim 3, characterized in that: Obtaining the second distance between any ultrasonic transceiver probe and any ultrasonic transmitting probe, including: The ultrasonic transmitting probe S1, the ultrasonic transmitting probe S2 and the ultrasonic transmitting probe S3 transmit ultrasonic signals in sequence, and the timer is started at the same time, and the time t elapsed for the ultrasonic transceiver probe R1, the ultrasonic transceiver probe R2 and the ultrasonic transceiver probe R3 to receive the ultrasonic signal is recorded. ij , where i = 1, 2, 3; j = 1, 2, 3, t ij Indicates ultrasonic transceiver probe R j Receive the ultrasonic transmitting probe S i The time it takes for the ultrasonic signal to be emitted; Record the current ambient temperature K1; Calculate the second distance L between any ultrasonic transceiver probe and any ultrasonic transmitting probe ij , L ij =t ij ×(331.5+0.607K1), where L ij Indicates ultrasonic transmitting probe S i and ultrasonic transceiver probe R j The distance between.
5. The automatic, high-precision user coordinate system calibration method according to claim 4, characterized in that: The mathematical expression of the coordinate values of all ultrasonic transmitting probes in the base coordinate system is: In the formula, (x m ,y m ,z m ) is the coordinate value of the ultrasonic transmitting probe m in the base coordinate system, m=1,2,3.
6. The automatic, high-precision user coordinate system calibration method according to claim 5, characterized in that: The origin of the user coordinate system to be calibrated O U On the X-axis extension line determined by the ultrasonic transmitting probe S1 and the ultrasonic transmitting probe S2, and the X-axis of the user coordinate system to be calibrated determined by the ultrasonic transmitting probe S1 and the ultrasonic transmitting probe S2 is aligned with the origin O of the user coordinate system to be calibrated. U is perpendicular to the Y axis determined by the ultrasonic transmitting probe S3, wherein the origin O of the user coordinate system to be calibrated U The coordinate value (x o ,y o ,z o ) is calculated as: Where p is the intermediate variable.
7. The automatic, high-precision user coordinate system calibration method according to claim 6, characterized in that: The mathematical expression of the coordinate axis direction of the user coordinate system to be calibrated is: In the formula, is the X-axis direction of the user coordinate system to be calibrated, is the Y-axis direction of the user coordinate system to be calibrated, It is the Z-axis direction of the user coordinate system to be calibrated.
8. The automatic, high-precision user coordinate system calibration method according to claim 7, characterized in that: The first homogeneous transformation matrix The mathematical expression is: in, The second homogeneous transformation matrix The mathematical expression is: The third homogeneous transformation matrix The mathematical expression is:
9. The automatic, high-precision user coordinate system calibration method according to claim 8, characterized in that: The mathematical expression of the pose vector is: (x, y, z, a, b, c), where x, y, z represent the coordinate values of the origin of the user coordinate system to be calibrated in the base coordinate system, and a, b, c represent the rotation angle, pitch angle, and yaw angle, respectively. When nz=1: When nz=-1: When nz≠±1: Among them, Atan2(k,g) is the inverse tangent function of a two-parameter variable.
10. An automatic, high-precision user coordinate system calibration system, characterized in that: include: An installation module is used to install multiple ultrasonic transceiver probes on the robot base to build a base coordinate system; and install multiple ultrasonic transmitting probes into the user coordinate system to be calibrated; The distance measuring module is used to obtain a first distance between a plurality of ultrasonic transceiver probes and the origin of the base coordinate system; and obtain a second distance between any ultrasonic transceiver probe and any ultrasonic transmitting probe; a calculation module, configured to calculate the coordinate values of all ultrasonic transmitting probes in the base coordinate system based on the first distance and the second distance, and calculate the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system based on the coordinate values of all ultrasonic transmitting probes in the base coordinate system; and calculate the coordinate axis direction of the user coordinate system to be calibrated based on the coordinate values of all ultrasonic transmitting probes in the base coordinate system and the coordinate value of the origin of the user coordinate system to be calibrated in the base coordinate system; Determine a first homogeneous transformation matrix from the base coordinate system to the user coordinate system to be calibrated based on the coordinate axis direction of the user coordinate system to be calibrated, and calculate a second homogeneous transformation matrix from the base coordinate system to the base coordinate system based on the first distance; The calibration module is used to calculate a third homogeneous transformation matrix from a base coordinate system to a user coordinate system to be calibrated based on the first homogeneous transformation matrix and the second homogeneous transformation matrix; and convert the third homogeneous transformation matrix into a posture vector to complete the calibration.
Citation Information
Patent Citations
Automatic high-precision non-contact robot TCP calibration method
CN108972543A
Robot kinematics calibration method and system based on plane constraint
CN113843804A
Calibration method, system and device for ultrasonic probe of remote robot and medium
CN115488884A
Robot parameter calibration method and system based on double-position sensitive device constraint
CN116423529A
System and method for calibrating tool center point of robot
US20190099887A1
