Calibration method, device, storage medium and terminal for robot workpiece coordinate system

By setting a detection probe at the end of the industrial robot flange tool, collecting workpiece coordinate data and performing deviation compensation, the problem of workpiece coordinate system deviation is solved and processing accuracy and stability are improved.

CN114670192BActive Publication Date: 2024-08-27JIANGXI RUIXIANG INTELLIGENT EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210255552.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-16
Publication Date
2024-08-27
Estimated Expiration
2042-03-16

AI Technical Summary

Technical Problem

During the processing of industrial robots, deviations in the workpiece coordinate system lead to reduced processing accuracy. Existing methods are difficult to accurately obtain workpiece feature point data, resulting in deviations in the workpiece under clamping, which affects the processing effect.

Method used

By setting a detection probe at the end of the robot flange tool, the coordinate data of the positioning holes and preset feature structures on the workpiece are collected, the initial workpiece coordinate system is established, and the calibrated target workpiece coordinate system is generated through deviation compensation to improve processing accuracy.

Benefits of technology

It achieves fast and accurate calibration of the workpiece coordinate system, improves the processing accuracy, reduces the deviation of the workpiece under clamping, and enhances the stability of the processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114670192B
    Figure CN114670192B
Patent Text Reader

Abstract

The present invention discloses a calibration method, device, storage medium and terminal for a robot workpiece coordinate system. Based on a detection probe arranged at the end of a robot flange tool, the method comprises the following steps: using the detection probe to collect coordinate data of at least three positioning holes on a workpiece to be processed, and establishing an initial workpiece coordinate system of the workpiece to be processed; using the detection probe to collect processing data of a preset feature structure on the workpiece to be processed in the initial workpiece coordinate system, and using the processing data to perform deviation compensation on the initial workpiece coordinate system, generating a calibrated target workpiece coordinate system. The present invention first establishes an initial workpiece coordinate system, and then uses the processing data of a specific feature structure on the workpiece in the initial workpiece coordinate system to perform deviation correction on the initial workpiece coordinate system, so as to obtain a more accurate workpiece coordinate system, thereby realizing rapid and accurate calibration of the workpiece coordinate system and improving the processing accuracy of the workpiece.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent processing, and in particular to a calibration method, device, storage medium and terminal for a robot workpiece coordinate system. Background Art

[0002] With the continuous advancement of industrialization, industrial robots are developing faster and faster in various fields. In the use of industrial robots, it is usually necessary to frequently replace end tools and process workpieces according to different operating tasks and application requirements. Therefore, the calibration of the tool coordinate system determines the accuracy of trajectory planning. On the other hand, the operation of the robot is aimed at a certain workpiece, and it is generally necessary to establish a fixed workpiece coordinate system on the workpiece, so that most of the robot's operating tasks are defined in the workpiece coordinate system. Since it is difficult to collect feature point data on the actual workpiece, the currently defined workpiece coordinate system is usually obtained on the flange tool, rather than the workpiece coordinate system obtained on the actual workpiece. Although the workpiece is stationary relative to the flange tool, the workpiece will be subjected to anisotropic forces under the push of the cylinder, resulting in different deviations in different workpieces of the same batch under clamping, resulting in deviations in the established workpiece coordinate system, affecting the subsequent processing accuracy of the workpiece. Summary of the invention

[0003] The present invention provides a robot workpiece coordinate system calibration method, device, storage medium and terminal, which solve the above-mentioned technical problems.

[0004] The present invention solves the above-mentioned technical problem and a technical solution is as follows:

[0005] A method for calibrating a robot workpiece coordinate system, based on a detection probe arranged at the end of a robot flange tool, comprises the following steps:

[0006] Step 1, collecting coordinate data of at least three positioning holes on the workpiece to be processed by the detection probe;

[0007] Step 2, establishing an initial workpiece coordinate system of the workpiece to be processed according to the coordinate data;

[0008] Step 3, collecting processing data of a preset characteristic structure on the workpiece to be processed in the initial workpiece coordinate system through the detection probe;

[0009] Step 4: Compensate the deviation of the initial workpiece coordinate system using the processing data to generate a calibrated target workpiece coordinate system.

[0010] In a preferred embodiment, the preset characteristic structure is a rectangular characteristic frame, and step 3 is specifically as follows:

[0011] S301, equidistantly reducing each side of the rectangular feature frame by a preset distance to form a corresponding rectangular inner frame, wherein the rectangular inner frame is an initial processing trajectory of the rectangular feature frame in an initial workpiece coordinate system;

[0012] S302, taking the four corner points of the rectangular inner frame as starting points in turn, and controlling the probe of the detection probe to move from each corner point along the X-axis and the Y-axis in the opposite direction of the rectangular inner frame until it touches the edge of the rectangular feature frame, and all the touching points form the target processing trajectory of the rectangular feature frame in the initial workpiece coordinate system;

[0013] S303, collecting the fourth point coordinates corresponding to all the touch points to form the processing data.

[0014] In a preferred embodiment, the step 4 is: calculating the offset of the target processing trajectory and the initial processing trajectory on the X-axis and Y-axis according to the fourth point coordinates corresponding to all touch points, performing deviation compensation on the initial workpiece coordinate system according to the offset, and generating a calibrated target workpiece coordinate system.

[0015] In a preferred embodiment, the step 4 is specifically as follows:

[0016] S401, calculating a first distance between each corner point and the corresponding touch point in the X-axis direction and a second distance between each corner point and the corresponding touch point in the Y-axis direction according to the fourth point coordinates corresponding to each touch point;

[0017] S402, calculating an average distance between corresponding edges of the target processing trajectory and the initial processing trajectory according to a first distance and a second distance of corresponding corner points;

[0018] S403, calculating the offset between the target processing trajectory and the initial processing trajectory on the X-axis and the Y-axis according to the average distance;

[0019] S404: Perform deviation distance compensation on the initial workpiece coordinate system according to the offset to generate a calibrated target workpiece coordinate system.

[0020] In a preferred embodiment, step 4 further includes a rotation deviation compensation step, specifically:

[0021] S406, selecting a straight line trajectory in the target processing trajectory that is parallel to the X-axis as a first target processing trajectory, and calculating a first straight line equation corresponding to the first target processing trajectory;

[0022] S407, obtaining fourth point coordinates of the contact points of the two corner points corresponding to the first target processing trajectory in the Y-axis direction, and establishing a second straight line equation corresponding to the first initial processing trajectory connecting the contact points;

[0023] S408, calculating the angle between the first target processing trajectory and the first initial processing trajectory according to the first straight line equation and the second straight line equation, and performing deviation angle compensation on the initial workpiece coordinate system according to the angle to generate a calibrated target workpiece coordinate system.

[0024] In a preferred embodiment, the preset characteristic structure is a circular characteristic frame, and step 3 is specifically as follows:

[0025] S305, indenting the circular feature frame inwardly along the radial direction by a corresponding distance to form a corresponding circular inner frame, wherein the circular inner frame is an initial processing trajectory of the circular feature frame in the initial workpiece coordinate system;

[0026] S306, controlling the probe of the detection probe to move in the opposite direction of the circular inner frame from the three directions of 315°, 45° and 135° of the circular inner frame until it touches the edge of the circular feature frame, and all the touching points form a target processing trajectory of the circular feature frame in the initial workpiece coordinate system;

[0027] S307, collecting the fifth point coordinates corresponding to all the touch points to form the processing data.

[0028] In a preferred embodiment, when the preset feature structure is a circular feature frame, the step 4 is specifically as follows: fitting the target center of the target processing trajectory according to the fifth point coordinates corresponding to all touch points, calculating the offset of the target processing trajectory and the initial processing trajectory on the X-axis and Y-axis according to the difference between the target center and the initial center corresponding to the circular inner frame, performing deviation compensation on the initial workpiece coordinate system according to the offset, and generating a calibrated target workpiece coordinate system.

[0029] A second aspect of an embodiment of the present invention provides a robot workpiece coordinate system calibration device, comprising a first data acquisition module, an initial coordinate system establishment module, a second data acquisition module and a calibration module.

[0030] The first data acquisition module is used to acquire coordinate data of at least three positioning holes on the workpiece to be processed through the detection probe;

[0031] The initial coordinate system establishing module is used to establish the initial workpiece coordinate system of the workpiece to be processed according to the coordinate data;

[0032] The second data acquisition module is used to acquire processing data of a preset characteristic structure on the workpiece to be processed in the initial workpiece coordinate system through the detection probe;

[0033] The calibration module is used to perform deviation compensation on the initial workpiece coordinate system through the processing data to generate a calibrated target workpiece coordinate system.

[0034] A third aspect of an embodiment of the present invention provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the calibration method of the robot workpiece coordinate system described above is implemented.

[0035] A fourth aspect of an embodiment of the present invention provides a calibration terminal for a robot workpiece coordinate system, comprising the computer-readable storage medium and a processor, wherein the processor implements the steps of the above-mentioned calibration method for the robot workpiece coordinate system when executing the computer program on the computer-readable storage medium.

[0036] The present invention has the following beneficial effects: the present invention establishes an initial workpiece coordinate system by a flange tool for clamping the workpiece, and then obtains a target processing trajectory of a preset characteristic structure on the workpiece to be processed in the initial workpiece coordinate system by a detection probe, and compares the target processing trajectory with the initial processing trajectory of the preset characteristic structure in the initial workpiece coordinate system to obtain an offset between the initial processing trajectory and the target processing trajectory on the X-axis, Y-axis and / or rotation angle, and performs deviation compensation on the initial workpiece coordinate system according to the offset to generate a calibrated target workpiece coordinate system, thereby obtaining a more accurate workpiece coordinate system, thereby realizing rapid and ready calibration of the workpiece coordinate system and improving the processing accuracy of the workpiece.

[0037] In order to make the above-mentioned objects, features and advantages of the invention more obvious and easy to understand, the preferred embodiments of the present invention are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 is a schematic flow chart of a method for calibrating a robot workpiece coordinate system provided in Example 1;

[0040] Figure 2 It is a schematic diagram of the effect of performing deviation compensation in the calibration method of the robot workpiece coordinate system provided in Example 1;

[0041] Figure 3 is a schematic diagram of the effect of performing deviation compensation in a calibration method for a robot workpiece coordinate system provided in another embodiment;

[0042] Figure 4is a schematic structural diagram of a calibration device for a robot workpiece coordinate system provided in Example 2;

[0043] Figure 5 It is a structural schematic diagram of the calibration terminal of the robot workpiece coordinate system provided in Example 3. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and beneficial technical effect of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be understood that the specific implementation methods described in this specification are only for explaining the present invention, not for limiting the present invention.

[0045] Figure 1 is a flow chart of a calibration method for a robot workpiece coordinate system provided in Example 1. The calibration method for a robot workpiece coordinate system is based on a detection probe disposed at the end of a robot flange tool, such as Figure 1 As shown, the specific steps include:

[0046] Step 1, using the detection probe to collect coordinate data of at least three positioning holes on the workpiece to be processed. The positioning holes here can be actual circular holes set on the workpiece to be processed. When there are no positioning holes on the workpiece, an auxiliary structure can also be set at the edge of the workpiece to be processed, and at least three positioning holes can be set on the auxiliary structure, so as to establish an initial workpiece coordinate system according to the coordinate data of the positioning holes.

[0047] Specifically, at least three positioning holes are set on the workpiece to be processed, and the detection probe is controlled to move along the inner wall of the positioning hole at different detection heights of each positioning hole, and the touch detection data corresponding to each positioning hole during the movement of the detection probe is collected. In a preferred embodiment, in order to improve the acquisition accuracy of the coordinate data in the positioning hole, a Renishaw probe can be selected as the detection probe. The Renishaw probe is an online measurement product for machine tools launched by Renishaw, which consists of a probe and a receiver, and the two are optically transmitted by infrared. The probe is a high-precision sensor, and the movement of the probe is controlled by a macro program. When the probe of the probe touches a specific point of the workpiece, the receiver receives the touch signal of the probe and feeds the signal back to the CNC system. The macro program obtains the actual coordinate value of the touch point in the CNC system.

[0048] In a specific embodiment, the above touch detection data is generated by the Renishaw detection probe as follows:

[0049] S001, during the movement of the detection probe, when the probe of the detection probe touches the inner wall of the positioning hole, a probe touch feedback signal is generated and sent to the digital signal board of the detection probe;

[0050] S002, generating an interrupt instruction corresponding to the stylus touch feedback signal through the digital signal board, and sending the interrupt instruction to the controller of the robot;

[0051] S003, the controller executes the interrupt instruction to control the robot's mechanical arm to stop moving, and calls the preset CRobt instruction to generate the point coordinates corresponding to the contact point on the positioning hole to form the contact detection data, and then stores it in the preset array gjpos{3}. Specifically, each time the controller executes the interrupt instruction, it will stop the robot from moving and turn off the interrupt in time to avoid the interrupt stack overflowing the memory (loop interrupt), so as to prevent the robot from collecting inaccurate data due to inertia under delayed waiting, and finally use the CRobt instruction to obtain the point coordinates and then store them in the array gjpos{3}.

[0052] In an optional embodiment, the detection probe is controlled to move along the inner wall of each positioning hole at different detection heights, and the contact detection data corresponding to each positioning hole is generated. Here, the contact detection data includes first contact detection data and second contact detection data with different functions and detection heights. Specifically, the first contact detection data is detected by the detection probe during the movement of at least two detection heights inside the positioning hole along the inner wall of the positioning hole, and is used to fit the circular path corresponding to different detection heights, so as to calculate the center coordinates corresponding to the circular path at different heights, so as to fit the spatial straight line equation; and the second detection data is detected by the detection probe during the movement of the top surface of the positioning hole and along the inner wall of the positioning hole, and is used to fit the corresponding spatial plane equation of the top surface of the fixture. Then the spatial straight line equation and the spatial plane equation are combined and solved to generate the intersection coordinates of the corresponding spatial straight line and the corresponding spatial plane, and as the theoretical center coordinates of the corresponding positioning hole in the workpiece coordinate system. Repeat the above steps to generate the theoretical center coordinates of each positioning hole in the workpiece coordinate system. Finally, the initial workpiece coordinate system of the workpiece to be processed is established according to the theoretical center coordinates of all positioning holes.

[0053] Then, the preset feature structure, such as the processing data of a rectangular feature frame or a circular feature frame, can be collected by the detection probe in the initial workpiece coordinate system. The specific method of collecting processing data by using the Renishaw probe is similar to the method of collecting coordinate data, which will not be described in detail here.

[0054] In a preferred embodiment, after collecting the coordinate data and the processing data, a data processing step is further included, specifically:

[0055] Determine whether the fluctuation range of the coordinate data exceeds a first preset threshold, and if so, re-collect the coordinate data;

[0056] And / or determine whether the fluctuation range of the processing data exceeds a second preset threshold value. If so, re-collect the processing data, thereby filtering out data with large deviations in the coordinate data and the processing data, and further improving the accuracy of workpiece processing. In a specific embodiment, the deviation of the coordinate data and the processing data can be evaluated by variance and standard deviation, where variance and standard deviation are the most important and most commonly used indicators for measuring discrete trends. Variance is the average of the squares of the deviations of each variable value from its mean, and it is the most important method for measuring the degree of discreteness of numerical data. The standard deviation is the arithmetic square of the variance, and the standard deviation can be used as a measure of uncertainty.

[0057] In a preferred embodiment, the preset feature structure is a preset circular feature frame or a preset rectangular feature frame set on the workpiece to be processed. The following takes the rectangular feature frame as an example to illustrate how to collect processing data through the detection probe and how to compensate for the deviation of the initial workpiece coordinate system according to the processing data. Specifically, the step 3 is specifically:

[0058] S301, equidistantly reducing each side of the rectangular feature frame by a preset distance to form a corresponding rectangular inner frame, wherein the rectangular inner frame is an initial processing trajectory of the rectangular feature frame in an initial workpiece coordinate system;

[0059] S302, taking the four corner points of the rectangular inner frame as starting points in turn, and controlling the probe of the detection probe to move from each corner point along the X-axis and the Y-axis in the opposite direction of the rectangular inner frame until it touches the edge of the rectangular feature frame, and all the touching points form the target processing trajectory of the rectangular feature frame in the initial workpiece coordinate system;

[0060] S303, collecting the fourth point coordinates corresponding to all the touch points, so as to form the processing data.

[0061] Then execute step 4, compensate the deviation of the initial workpiece coordinate system through the processing data, and generate a calibrated target workpiece coordinate system. In this embodiment, the offset of the target processing trajectory and the initial processing trajectory on the X-axis and Y-axis is calculated according to the fourth point coordinates corresponding to all touch points, and the initial workpiece coordinate system is compensated for the deviation according to the offset to generate a calibrated target workpiece coordinate system.

[0062] In an optional embodiment, the distance deviation compensation in step 4 is specifically performed as follows:

[0063] S401, calculating a first distance between each corner point and the corresponding touch point in the X-axis direction and a second distance between each corner point and the corresponding touch point in the Y-axis direction according to the fourth point coordinates corresponding to each touch point;

[0064] S402, calculating an average distance between corresponding edges of the target processing trajectory and the initial processing trajectory according to a first distance and a second distance of corresponding corner points;

[0065] S403, calculating the offset between the target processing trajectory and the initial processing trajectory on the X-axis and the Y-axis according to the average distance;

[0066] S404: Perform deviation distance compensation on the initial workpiece coordinate system according to the offset to generate a calibrated target workpiece coordinate system.

[0067] See attached Figure 2 , Figure 2 In the figure, xoy is the initial workpiece coordinate system established on the physical workpiece through three positioning holes, but the fixture holding the workpiece is inconsistent with the theoretical one, so a secondary measurement is required as deviation compensation. First, after the workpiece coordinate system xoy is established on the physical workpiece, a secondary measurement is performed in the preset rectangular feature frame with a concave inner wall. The gray filled frame is the physical rectangular feature frame, that is, the target processing trajectory of the rectangular feature frame in the initial workpiece coordinate system. A rectangular inner frame is generated with an equidistant of 2mm along each side of the rectangular feature frame. The rectangular inner frame is the initial processing trajectory of the rectangular feature frame in the initial workpiece coordinate system. The four corner points of the rectangular inner frame are used as the starting points of the compensation path, that is, the probe moves in the -y direction of the workpiece coordinate system at this point 1 or 2 to collide with the physical rectangular frame, and simultaneously collects the data of the collision point and point 1 for two-point distance calculation.

[0068] Similarly, point 3 or 4 is in the +x direction

[0069] Point 5 or 6 in the +y direction

[0070] Point 7 or 8 in -x direction

[0071] The specific calculation process of the x-axis and y-axis offset is as follows:

[0072] temp10=(dist1+dist2) / 2;

[0073] temp20=(dist3+dist4) / 2;

[0074] temp30=(dist5+dist6) / 2;

[0075] temp40=(dist7+dist8) / 2;

[0076] temp50=abs(temp10-temp30);

[0077] temp60=abs(temp20-temp40);

[0078] If temp10>temp30, the offset in the y-axis direction is -temp50 / 2, otherwise, the offset in the y-axis direction is temp50 / 2;

[0079] If temp20>temp40, the offset in the x-axis direction is temp60 / 2, otherwise, the offset in the x-axis direction is -temp60 / 2.

[0080] In the above embodiment, the rotation is ignored so that the average value of the distance is directly calculated to obtain the offset in the x and y directions.

[0081] In another preferred embodiment, the compensation in the 2D direction can be optimized by adding the calculation of rotation, that is, the rotation deviation compensation in step 4 is specifically performed as follows:

[0082] S406, selecting a straight line trajectory in the target processing trajectory that is parallel to the X-axis as a first target processing trajectory, and calculating a first straight line equation corresponding to the first target processing trajectory;

[0083] S407, obtaining fourth point coordinates of the contact points of the two corner points corresponding to the first target processing trajectory in the Y-axis direction, and establishing a second straight line equation corresponding to the first initial processing trajectory connecting the contact points;

[0084] S408, calculating the angle between the first target processing trajectory and the first initial processing trajectory according to the first straight line equation and the second straight line equation, and performing deviation angle compensation on the initial workpiece coordinate system according to the angle to generate a calibrated target workpiece coordinate system.

[0085] In the above embodiment, the straight line formed by points 1 and 2 is intersected with the straight line formed by points 7 and 8 to obtain the translation amount between the upper right corner point of the gray filled box and the upper right corner point of the gray solid line box. Then, the straight line formed by points 1 and 2 and the straight line formed by points 1 and 2 are used to touch the points collected by the physical object. The angle between the two straight lines can be calculated, that is, the rotation angle.

[0086] In another preferred embodiment, the preset characteristic structure can be set to be a circle, and in this case, step 3 is specifically as follows:

[0087] S305, indenting the circular feature frame inwardly along the radial direction by a corresponding distance to form a corresponding circular inner frame, wherein the circular inner frame is an initial processing trajectory of the circular feature frame in the initial workpiece coordinate system;

[0088] S306, controlling the probe of the detection probe to move in the opposite direction of the circular inner frame from the three directions of 315°, 45° and 135° of the circular inner frame until it touches the edge of the circular feature frame, and all the touching points form a target processing trajectory of the circular feature frame in the initial workpiece coordinate system;

[0089] S307, collecting the fifth point coordinates corresponding to all the touch points respectively to form the processing data.

[0090] The corresponding step 4 is specifically as follows: fitting the target center of the target processing trajectory according to the fifth point coordinates corresponding to all touch points, calculating the offset of the target processing trajectory and the initial processing trajectory on the X-axis and Y-axis according to the difference between the target center and the initial center corresponding to the circular inner frame, performing deviation compensation on the initial workpiece coordinate system according to the offset, and generating a calibrated target workpiece coordinate system.

[0091] In the above embodiment, Figure 3 As shown in the figure, xoy is the initial workpiece coordinate system established, the small circle is the theoretical trajectory (radius compensation 3mm, i.e., the radius is indented 3mm inward), and the large circle is the circle to be cut on the actual object. The circle also has a concave inner wall, which can be used as one of the elements for collision measurement and data collection. The starting point of the measurement path is respectively measured from the 315° 45° 135° direction of the small circle to the actual circle and collect data as the three points of the fitting circle. The center of the large circle is obtained and the difference between the center of the theoretical small circle is obtained to obtain the offset to be compensated in the x and y directions.

[0092] In a specific embodiment, the defframe function can be used to define a new workpiece coordinate system, which is used as the target workpiece coordinate system after offset, and the pdispset trajectory offset instruction can be used to realize the translation and rotation of the workpiece coordinates in space. The specific function setting and execution method will not be described in detail here.

[0093] In the above embodiments, an initial workpiece coordinate system is established by a flange tool for clamping the workpiece, and then a target processing trajectory of a preset feature structure on the workpiece to be processed in the initial workpiece coordinate system is obtained by a detection probe, and the target processing trajectory is compared with the initial processing trajectory of the preset feature structure in the initial workpiece coordinate system to obtain the offset between the initial processing trajectory and the target processing trajectory in the X-axis, Y-axis and / or rotation angle, and the initial workpiece coordinate system is compensated for the deviation according to the offset to generate a calibrated target workpiece coordinate system, thereby obtaining a more accurate workpiece coordinate system, realizing rapid and ready calibration of the workpiece coordinate system, and improving the processing accuracy of the workpiece.

[0094] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0095] Figure 4 is a schematic diagram of the structure of the calibration device of the robot workpiece coordinate system provided in Example 2, such as Figure 4 As shown, it includes a first data acquisition module 100, an initial coordinate system establishment module 200, a second data acquisition module 300 and a calibration module 400.

[0096] The first data acquisition module 100 is used to acquire coordinate data of at least three positioning holes on the workpiece to be processed through the detection probe;

[0097] The initial coordinate system establishing module 200 is used to establish the initial workpiece coordinate system of the workpiece to be processed according to the coordinate data;

[0098] The second data acquisition module 300 is used to acquire processing data of a preset characteristic structure on the workpiece to be processed in the initial workpiece coordinate system through the detection probe;

[0099] The calibration module 400 is used to perform deviation compensation on the initial workpiece coordinate system through the processing data to generate a calibrated target workpiece coordinate system.

[0100] In a preferred embodiment, the first data acquisition module 100 is specifically used to set at least three positioning holes on the workpiece to be processed, control the detection probe to move along the inner wall of the positioning hole at different detection heights of each positioning hole, and collect the touch detection data corresponding to each positioning hole during the movement of the detection probe.

[0101] In another preferred embodiment, the initial coordinate system establishment module 200 is specifically used to calculate the theoretical center coordinates of the corresponding positioning hole in the workpiece coordinate system according to the contact detection data of each positioning hole, and establish the workpiece coordinate system of the workpiece to be processed according to the theoretical center coordinates of all positioning holes.

[0102] In another preferred embodiment, it also includes a data processing module 500, which is used to determine whether the fluctuation range of the coordinate data exceeds a first preset threshold value, and if so, re-collect the coordinate data; and whether the fluctuation range of the processing data exceeds a second preset threshold value, and if so, re-collect the processing data.

[0103] In another preferred embodiment, the preset characteristic structure is a rectangular characteristic frame, and the second data acquisition module 300 specifically includes:

[0104] A reduction unit 301, used for equidistantly reducing each side of the rectangular feature frame by a preset distance to form a corresponding rectangular inner frame, wherein the rectangular inner frame is an initial processing trajectory of the rectangular feature frame in an initial workpiece coordinate system;

[0105] The compensation path generating unit 302 is used to take the four corner points of the rectangular inner frame as starting points in sequence, and control the probe of the detection probe to move from each corner point along the X-axis and the Y-axis in the opposite direction of the rectangular inner frame until it touches the edge of the rectangular feature frame, and all the touching points form the target processing trajectory of the rectangular feature frame in the initial workpiece coordinate system;

[0106] The fourth acquisition unit 303 is used to acquire fourth point coordinates corresponding to all the touch points to form the processing data.

[0107] In a preferred embodiment, the calibration module 400 is specifically used to calculate the offset of the target processing trajectory and the initial processing trajectory on the X-axis and Y-axis according to the fourth point coordinates corresponding to all touch points, perform deviation compensation on the initial workpiece coordinate system according to the offset, and generate a calibrated target workpiece coordinate system.

[0108] In a preferred embodiment, the calibration module 400 specifically includes:

[0109] The distance calculation unit 401 is used to calculate the first distance between each corner point and the corresponding touch point in the X-axis direction and the second distance between each corner point and the corresponding touch point in the Y-axis direction according to the fourth point coordinates corresponding to each touch point;

[0110] A mean value calculation unit 402 is used to calculate the average distance between the corresponding edge lines of the target processing trajectory and the initial processing trajectory according to the first distance and the second distance of the corresponding corner points;

[0111] A first offset calculation unit 403, used to calculate the offset between the target processing trajectory and the initial processing trajectory on the X-axis and the Y-axis according to the average distance;

[0112] The first calibration unit 404 is used to perform deviation distance compensation on the initial workpiece coordinate system according to the offset to generate a calibrated target workpiece coordinate system.

[0113] In a preferred embodiment, the calibration module 400 further includes:

[0114] A first straight line fitting unit 406 is used to select a straight line trajectory in the target processing trajectory that is parallel to the X-axis as a first target processing trajectory, and calculate a first straight line equation corresponding to the first target processing trajectory;

[0115] The second straight line fitting unit 407 obtains the fourth point coordinates of the contact points of the two corner points corresponding to the first target processing trajectory in the Y-axis direction, and establishes a second straight line equation corresponding to the first initial processing trajectory connecting the contact points;

[0116] The second calibration unit 408 is used to calculate the angle between the first target processing trajectory and the first initial processing trajectory according to the first straight line equation and the second straight line equation, and to perform deviation angle compensation on the initial workpiece coordinate system according to the angle to generate a calibrated target workpiece coordinate system.

[0117] The above-mentioned embodiment provides a calibration device for a robot workpiece coordinate system, which establishes an initial workpiece coordinate system by a fixture that clamps the workpiece, and then corrects the deviation of the initial workpiece coordinate system through processing data of a specific feature structure on the workpiece in the initial workpiece coordinate system to obtain a more accurate workpiece coordinate system, thereby realizing rapid and ready calibration of the workpiece coordinate system and improving the processing accuracy of the workpiece.

[0118] An embodiment of the present invention further provides a computer-readable storage medium, comprising the computer-readable storage medium and a processor, wherein the processor implements the steps of the above-mentioned robot workpiece coordinate system calibration method when executing the computer program on the computer-readable storage medium.

[0119] Figure 5 is a schematic diagram of the structure of the calibration terminal of the robot workpiece coordinate system provided in Embodiment 3 of the present invention, such as Figure 5 As shown,

[0120] The robot workpiece coordinate system calibration terminal 8 of this embodiment includes: a processor 80, a readable storage medium 81, and a computer program 82 stored in the readable storage medium 81 and executable on the processor 80. When the processor 80 executes the computer program 82, the steps in the above-mentioned various method embodiments are implemented, for example Figure 1 Alternatively, when the processor 80 executes the computer program 82, the functions of each module in the above-mentioned device embodiments are realized, for example Figure 4 The functions of modules 100 to 400 are shown.

[0121] Exemplarily, the computer program 82 may be divided into one or more modules, which are stored in the readable storage medium 81 and executed by the processor 80 to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 82 in the calibration terminal 8 of the robot workpiece coordinate system.

[0122] The calibration terminal 8 of the robot workpiece coordinate system may include, but is not limited to, a processor 80 and a readable storage medium 81. Those skilled in the art will appreciate that Figure 5It is only an example of the calibration terminal 8 of the robot workpiece coordinate system and does not constitute a limitation of the calibration terminal 8 of the robot workpiece coordinate system. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the calibration terminal of the robot workpiece coordinate system may also include a power management module, an operation processing module, input and output devices, a network access device, a bus, etc.

[0123] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0124] The readable storage medium 81 may be an internal storage unit of the calibration terminal 8 based on the robot workpiece coordinate system, such as a hard disk or memory of the calibration terminal 8 based on the robot workpiece coordinate system. The readable storage medium 81 may also be an external storage device of the calibration terminal 8 based on the robot workpiece coordinate system, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the calibration terminal 8 based on the robot workpiece coordinate system. Further, the readable storage medium 81 may also include both the internal storage unit of the calibration terminal 8 based on the robot workpiece coordinate system and an external storage device. The readable storage medium 81 is used to store the computer program and other programs and data required by the calibration terminal based on the robot workpiece coordinate system. The readable storage medium 81 may also be used to temporarily store data that has been output or is to be output.

[0125] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment.

[0126] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0127] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

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

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

[0130] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0131] The present invention is not limited to what is described in the specification and implementation modes, and therefore additional advantages and modifications can be easily realized by those skilled in the art. Therefore, without departing from the spirit and scope of the general concept defined by the claims and their equivalents, the present invention is not limited to the specific details, representative devices, and illustrative examples shown and described herein.

Claims

1. A method for calibrating a robot workpiece coordinate system, based on a detection probe arranged at the end of a robot flange tool, characterized in that: The following steps are involved: Step 1, collecting coordinate data of at least three positioning holes on the workpiece to be processed by the detection probe; Step 2, establishing an initial workpiece coordinate system of the workpiece to be processed according to the coordinate data; Step 3, collecting processing data of a preset characteristic structure on the workpiece to be processed in the initial workpiece coordinate system through the detection probe; Step 4, comparing the target processing trajectory with the initial processing trajectory, obtaining the offset between the initial processing trajectory and the target processing trajectory on the X-axis, Y-axis and / or rotation angle, performing deviation compensation on the initial workpiece coordinate system according to the offset, and generating a calibrated target workpiece coordinate system; The preset feature structure is a rectangular feature frame set on the workpiece to be processed, and the step 3 is specifically as follows: S301, equidistantly reducing each side of the rectangular feature frame by a preset distance to form a corresponding rectangular inner frame, wherein the rectangular inner frame is an initial processing trajectory of the rectangular feature frame in an initial workpiece coordinate system; S302, taking the four corner points of the rectangular inner frame as starting points in turn, and controlling the probe of the detection probe to move from each corner point along the X-axis and the Y-axis in the opposite direction of the rectangular inner frame until it touches the edge of the rectangular feature frame, and all the touching points form the target processing trajectory of the rectangular feature frame in the initial workpiece coordinate system; S303, collecting the fourth point coordinates corresponding to all the touch points respectively to form the processing data.

2. The robot workpiece coordinate system calibration method according to claim 1, characterized in that: The step 4 is: calculating the offsets of the target processing trajectory and the initial processing trajectory on the X-axis and the Y-axis according to the fourth point coordinates corresponding to all the touch points, performing deviation compensation on the initial workpiece coordinate system according to the offsets, and generating a calibrated target workpiece coordinate system.

3. The robot workpiece coordinate system calibration method according to claim 2, characterized in that: The step 4 is specifically as follows: S401, calculating a first distance between each corner point and the corresponding touch point in the X-axis direction and a second distance between each corner point and the corresponding touch point in the Y-axis direction according to the fourth point coordinates corresponding to each touch point; S402, calculating an average distance between corresponding edges of the target processing trajectory and the initial processing trajectory according to a first distance and a second distance of corresponding corner points; S403, calculating the offset between the target processing trajectory and the initial processing trajectory on the X-axis and the Y-axis according to the average distance; S404: Perform deviation distance compensation on the initial workpiece coordinate system according to the offset to generate a calibrated target workpiece coordinate system.

4. The robot workpiece coordinate system calibration method according to claim 2, characterized in that: The step 4 also includes a rotation deviation compensation step, which is specifically: S406, selecting a straight line trajectory in the target processing trajectory that is parallel to the X-axis as a first target processing trajectory, and calculating a first straight line equation corresponding to the first target processing trajectory; S407, obtaining fourth point coordinates of the contact points of the two corner points corresponding to the first target processing trajectory in the Y-axis direction, and establishing a second straight line equation corresponding to the first initial processing trajectory connecting the contact points; S408, calculating the angle between the first target processing trajectory and the first initial processing trajectory according to the first straight line equation and the second straight line equation, and performing deviation angle compensation on the initial workpiece coordinate system according to the angle to generate a calibrated target workpiece coordinate system.

5. A method for calibrating a robot workpiece coordinate system, based on a detection probe arranged at the end of a robot flange tool, characterized in that: The following steps are involved: Step 1, collecting coordinate data of at least three positioning holes on the workpiece to be processed by the detection probe; Step 2, establishing an initial workpiece coordinate system of the workpiece to be processed according to the coordinate data; Step 3, collecting processing data of a preset characteristic structure on the workpiece to be processed in the initial workpiece coordinate system through the detection probe; Step 4, comparing the target processing trajectory with the initial processing trajectory, obtaining the offset between the initial processing trajectory and the target processing trajectory on the X-axis and / or the Y-axis, performing deviation compensation on the initial workpiece coordinate system according to the offset, and generating a calibrated target workpiece coordinate system; The preset feature structure is a circular feature frame set on the workpiece to be processed, and the step 3 is specifically as follows: S305, indenting the circular feature frame inwardly along the radial direction by a corresponding distance to form a corresponding circular inner frame, wherein the circular inner frame is an initial processing trajectory of the circular feature frame in the initial workpiece coordinate system; S306, controlling the probe of the detection probe to move in the opposite direction of the circular inner frame from the three directions of 315°, 45° and 135° of the circular inner frame until it touches the edge of the circular feature frame, and all the touching points form a target processing trajectory of the circular feature frame in the initial workpiece coordinate system; S307, collecting the fifth point coordinates corresponding to all the touch points to form the processing data.

6. The robot workpiece coordinate system calibration method according to claim 5, characterized in that: The step 4 is specifically as follows: The target center of the target processing trajectory is fitted according to the fifth point coordinates corresponding to all the touch points, and the offset of the target processing trajectory and the initial processing trajectory on the X-axis and Y-axis is calculated according to the difference between the target center and the initial center corresponding to the circular inner frame. The initial workpiece coordinate system is compensated for the deviation according to the offset to generate a calibrated target workpiece coordinate system.

7. A robot workpiece coordinate system calibration device, based on the robot workpiece coordinate system calibration method according to any one of claims 1 to 6, characterized in that: It includes a first data acquisition module, an initial coordinate system establishment module, a second data acquisition module and a calibration module. The first data acquisition module is used to acquire coordinate data of at least three positioning holes on the workpiece to be processed through the detection probe; The initial coordinate system establishing module is used to establish the initial workpiece coordinate system of the workpiece to be processed according to the coordinate data; The second data acquisition module is used to acquire processing data of a preset characteristic structure on the workpiece to be processed in the initial workpiece coordinate system through the detection probe; Step 4: the calibration module is used to compare the target processing trajectory with the initial processing trajectory, obtain the offset between the initial processing trajectory and the target processing trajectory, perform deviation compensation on the initial workpiece coordinate system according to the offset, and generate a calibrated target workpiece coordinate system.

8. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of the robot workpiece coordinate system calibration method according to any one of claims 1 to 6.

9. A calibration terminal for a robot workpiece coordinate system, comprising the computer-readable storage medium and a processor as described in claim 8, wherein the processor implements the steps of the calibration method for the robot workpiece coordinate system as described in any one of claims 1 to 6 above when executing the computer program on the computer-readable storage medium.