Robot machining contour error compensation method, device and medium

By obtaining the G code command point and target position point, calculating the error and performing speed planning, the problem of uneven speed and chatter after error compensation of industrial robots in high-precision cutting processing is solved, and the position accuracy and compensation efficiency are improved. .

CN117518984BActive Publication Date: 2024-09-03SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311617057.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-29
Publication Date
2024-09-03
Estimated Expiration
2043-11-29

AI Technical Summary

Technical Problem

Industrial robots have insufficient absolute positioning accuracy and low stiffness in high-precision cutting processing, resulting in large processing errors. After compensation, the speed is not smooth, and chatter and jitter are prone to occur.

Method used

By obtaining the G code instruction point and the target position point, the actual position point is determined, the contour error is calculated, the compensated G code instruction point is generated, and the trapezoidal acceleration and deceleration algorithm is used for speed planning to ensure the smoothness of the issued position points.

Benefits of technology

It improves the position accuracy of robot processing, solves the problem of uneven speed after compensation, reduces the amount of calculation, and improves the efficiency of contour error compensation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117518984B
    Figure CN117518984B
Patent Text Reader

Abstract

The present invention discloses a robot processing contour error compensation method, device and medium, the method comprising: obtaining a G code instruction point and a target position point of robot processing; determining the actual position point B corresponding to the G code instruction point based on the target position point, and calculating the contour error between the actual position point B and the target position; determining the compensated G code instruction point based on the contour error; performing speed planning based on the compensated G code instruction point to obtain the compensated issued position point. The present invention uses G code instruction points to compensate for the robot processing contour error, and the smoothness of the issued speed is determined by the speed planning algorithm, so the position accuracy of the robot processing is effectively improved, and the problem of non-smooth issued speed after compensation is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of robot technology, and more specifically, relates to a robot machining contour error compensation method, device and medium. Background Art

[0002] Industrial robots are widely used in cutting, welding, handling, assembly and other fields. With their advantages of high task flexibility, low manufacturing and maintenance costs, they effectively make up for the defects of machine tool processing and provide new ideas for the processing of large and complex parts. However, industrial robots have shortcomings such as insufficient absolute positioning accuracy and low rigidity, which lead to large manufacturing errors in high-precision cutting, thus limiting the promotion and application of industrial robots.

[0003] At present, the pseudo target compensation method is mainly used to compensate the contour error of the robot end. The compensation method process is as follows: obtain the contour error between the target position curve and the actual position curve at any time t, and then obtain the error direction vector at any time t, and then superimpose the error direction vector on the target position point accordingly, and finally obtain the compensated position point. This method adopts a mirror compensation strategy, which can effectively reduce the robot processing contour error.

[0004] However, the error direction vector (compensation amount) of the robot is usually large, and the communication cycle of its control system is short, usually 1ms. Therefore, after the compensation amount is superimposed on the target position point, it will inevitably affect the smoothness of the transmission speed, causing vibration and jitter at the end of the robot, thereby affecting the compensation effect of the contour error. Summary of the invention

[0005] The present invention is provided to solve the above problems existing in the prior art. Therefore, a robot machining contour error compensation method, device and medium are needed to solve the problems existing in the prior art that the robot contour error compensation is not smooth and the end is prone to vibration and shaking.

[0006] According to a first embodiment of the present invention, a robot machining contour error compensation method is provided, the method comprising:

[0007] Obtain the G code instruction points and target position points for robot processing;

[0008] Determine the actual position point B corresponding to the G code instruction point based on the target position point, and calculate the contour error between the actual position point B and the target position;

[0009] Based on the contour error, determining a compensated G code instruction point;

[0010] Based on the compensated G code instruction point, speed planning is performed to obtain the compensated sending position point.

[0011] Furthermore, the target position point and the actual position point are data points corresponding to the target position and the actual position at any time t.

[0012] Further, the determining the actual position point B corresponding to the G code instruction point based on the target position point includes:

[0013] Based on the target position point obtained by spline curve fitting, a target position curve is determined, and a point A on the target position curve that is closest to the G code instruction point is used as the target position point corresponding to the G code instruction point;

[0014] Traverse all target position points and obtain the target position points before and after point A at two moments;

[0015] Based on the two target position points, determine the corresponding actual position points at time t and time t+1;

[0016] Based on the planar position relationship between point A and the two target position points, the actual position point B corresponding to the G code instruction point is determined.

[0017] Further, the determining of the actual position point B corresponding to the G code instruction point based on the planar position relationship between the point A and the two target position points includes:

[0018] Using a perpendicular line drawn from point A to the straight line where the two target position points are located, calculate the length of the line segment formed by the target position point and the foot of the perpendicular at time t, and calculate the ratio with the length of the line segment formed by the two target position points to obtain a ratio relationship;

[0019] Based on the ratio relationship, the actual position point B corresponding to the G code instruction point is determined on the line segment formed by the actual position points at time t and time t+1 corresponding to the two target position points.

[0020] Further, based on the contour error, determining the compensated G code instruction point includes:

[0021] Based on the target position obtained by spline curve fitting, the target position curve is determined, and the contour error between the actual position point B corresponding to the G code instruction point and the target position curve is calculated;

[0022] Based on the contour error, an error direction vector is determined, and the error direction vector is correspondingly superimposed on the G code instruction point to obtain a compensated G code instruction point.

[0023] Further, the speed planning is performed based on the compensated G code instruction point to obtain the compensated sending position point, including:

[0024] Based on the compensated G code instruction point, a trapezoidal acceleration and deceleration algorithm is used to re-plan the speed of the G code instruction point;

[0025] Based on the results of speed planning, a new delivery location point is obtained at any time t.

[0026] According to a second technical solution of the present invention, a robot machining contour error compensation device is provided, the device comprising:

[0027] A data acquisition unit is configured to acquire G code instruction points and target position points of robot processing;

[0028] an error calculation unit, configured to determine an actual position point B corresponding to the G-code instruction point based on the target position point, and calculate a contour error between the actual position point B and the target position;

[0029] A compensation determination unit is configured to determine a compensated G-code instruction point based on the contour error;

[0030] The sending data acquisition unit is configured to perform speed planning based on the compensated G code instruction point to obtain the compensated sending position point.

[0031] Furthermore, the error calculation unit is further configured as follows:

[0032] Based on the target position point obtained by spline curve fitting, a target position curve is determined, and a point A on the target position curve that is closest to the G code instruction point is used as the target position point corresponding to the G code instruction point;

[0033] Traverse all target position points and obtain the target position points before and after point A at two moments;

[0034] Based on the two target position points, determine the corresponding actual position points at time t and time t+1;

[0035] Based on the planar position relationship between point A and the two target position points, the actual position point B corresponding to the G code instruction point is determined.

[0036] Furthermore, the compensation determination unit is further configured to:

[0037] Based on the target position obtained by spline curve fitting, the target position curve is determined, and the contour error between the actual position point B corresponding to the G code instruction point and the target position curve is calculated;

[0038] Based on the contour error, an error direction vector is determined, and the error direction vector is correspondingly superimposed on the G code instruction point to obtain a compensated G code instruction point.

[0039] According to a third technical solution of the present invention, a readable storage medium is provided, wherein the readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method as described above.

[0040] The present invention has at least the following beneficial effects:

[0041] The present invention solves the target position point A and the actual position point B corresponding to the G code instruction point, and then obtains the error direction vector at the G code instruction point, generates a new G code instruction point based on the error direction vector, and then performs speed planning on it. The speed planning algorithm is used to ensure the smoothness of the compensated sending speed, and finally the compensated sending position point is obtained. The present invention greatly improves the position accuracy of robot processing and solves the problem of uneven sending speed after compensation. In addition, the present invention only needs to calculate the error direction vector at the G code instruction point, which greatly reduces the amount of calculation and improves the efficiency of contour error compensation. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 An overall flow chart of a robot machining contour error compensation method according to an embodiment of the present invention is shown;

[0043] Figure 2 A schematic diagram of a robot machining contour error compensation method according to the prior art is shown;

[0044] Figure 3 A schematic diagram of a robot machining contour error compensation method according to an embodiment of the present invention is shown;

[0045] Figure 4 A structural diagram of a robot machining contour error compensation device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0046] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and specific embodiments, but are not intended to limit the present invention. For the various steps described herein, if there is no necessity for a causal relationship between each other, the order in which they are described as examples herein should not be regarded as a limitation, and those skilled in the art should know that they can be adjusted in order, as long as the logic between them is not destroyed, resulting in the inability to implement the entire process.

[0047] Figure 1 FIG. 4 shows an overall flow chart of a robot machining contour error compensation method according to an embodiment of the present invention. Figure 1As shown, an embodiment of the present invention provides a robot machining contour error compensation method, which includes the following steps S110-S140.

[0048] Step S110, obtaining the G code instruction points and target position points for robot processing.

[0049] Exemplarily, the G code instruction point, the target position data and the actual position data are read in the robot control system, wherein the target position point and the actual position point are the data points corresponding to the target position and the actual position at any time t.

[0050] Step S120, determining the actual position point B corresponding to the G code instruction point based on the target position point, and calculating the contour error between the actual position point B and the target position.

[0051] In some embodiments, the target position obtained by spline curve fitting is obtained to obtain a target position curve, and the curve corresponding to the G code instruction point G is found. n The closest point A, which passes through point A and G code command point G n The straight line where the target position curve is located should be perpendicular to the tangent line passing through point A, where point A is the G code command point G n The corresponding target location point.

[0052] Point A must be between any time t and time t+1 of the target position. Traverse all the target position points and find the target position point two times before and after point A, that is, A t and A t+1 . Draw a perpendicular line from point A to the straight line where the two target positions are located, and find the target position point A at time t t The length of the line segment formed with the foot of the perpendicular and the length of the line segment formed with the two target position points Based on the obtained ratio relationship, the line segment formed by the two actual position points On the top, find the G code command point G n The corresponding actual position point B. The target position obtained by spline curve fitting is obtained to obtain the target position curve. The actual position point B obtained is used to calculate the contour error between the actual position at point B and the target position curve. and the error direction vector in Perpendicular to the tangent line of the target position curve.

[0053] Step S130, determining a compensated G code instruction point based on the contour error.

[0054] In some embodiments, based on the obtained profile error The error direction vector Correspondingly superimposed to the G code instruction point G n The G code command point G after compensation is obtained n ′.

[0055] Step S140, performing speed planning based on the compensated G code instruction point to obtain the compensated sending position point.

[0056] In some embodiments, for the compensated G code instruction point G n ', using the trapezoidal acceleration and deceleration algorithm, the G code command point G n 'Re-plan the speed and obtain the new delivery position at any time t based on the result of speed planning.

[0057] The following example compares this example with the existing method to fully illustrate the advancement of the present invention.

[0058] Figure 2 A schematic diagram of a robot machining contour error compensation method according to the prior art is shown, as Figure 2 As shown, the principle of the prior art method is as follows:

[0059] Get the contour error between the target position curve and the actual position curve at any time t and the error direction vector Then the error direction vector Correspondingly superimposed to the target position point A t The final compensation point is A. t ′.

[0060] According to the above prior art method flow, the error direction vector of the robot Usually larger, and the communication cycle of its control system is shorter, usually 1ms, and the compensation amount is superimposed on the target position point A accordingly t After it goes up, it will inevitably affect the smoothness of the downward speed, causing vibration, jitter and other problems at the end of the robot, which will in turn affect the compensation effect of the contour error.

[0061] Figure 3 FIG. 4 shows a schematic diagram of a robot machining contour error compensation method according to an embodiment of the present invention. Compared with the prior art method, Figure 3 As shown, the method of the embodiment of the present invention uses the G code instruction point G n ′ to compensate for robot machining contour error The smoothness of the delivery speed is determined by the speed planning algorithm, which effectively improves the position accuracy of the robot processing and solves the problem of uneven delivery speed after compensation. The number is far less than The number of contour errors is greatly reduced, thus greatly reducing the amount of calculation and improving the efficiency of contour error compensation.

[0062] Figure 4 1 shows a structural diagram of a robot machining contour error compensation device according to an embodiment of the present invention. The embodiment of the present invention provides a robot machining contour error compensation device, such as Figure 4 As shown, the device 400 includes:

[0063] The data acquisition unit 401 is configured to acquire the G code instruction points and target position points of robot processing;

[0064] The error calculation unit 402 is configured to determine the actual position point B corresponding to the G code instruction point based on the target position point, and calculate the contour error between the actual position point B and the target position;

[0065] A compensation determination unit 403 is configured to determine a compensated G-code instruction point based on the contour error;

[0066] The sending data acquisition unit 404 is configured to perform speed planning based on the compensated G code instruction point to obtain the compensated sending position point.

[0067] In some embodiments, the target position point and the actual position point are data points corresponding to the target position and the actual position at any time t.

[0068] In some embodiments, the error calculation unit is further configured to: determine the target position curve based on the target position points obtained by spline curve fitting, and take point A on the target position curve that is closest to the G code instruction point as the target position point corresponding to the G code instruction point; traverse all target position points to obtain the target position points at two moments before and after point A; based on the two target position points, determine the corresponding actual position points at time t and time t+1; based on the planar position relationship between point A and the two target position points, determine the actual position point B corresponding to the G code instruction point.

[0069] In some embodiments, the error calculation unit is further configured to: use a perpendicular line drawn through point A to the straight line where the two target position points are located to calculate the length of the line segment formed by the target position point and the foot of the perpendicular at time t, and calculate the ratio with the length of the line segment formed by the two target position points to obtain a ratio relationship; based on the ratio relationship, determine the actual position point B corresponding to the G code instruction point on the line segment formed by the actual position points at time t and time t+1 corresponding to the two target position points.

[0070] In some embodiments, the compensation determination unit is further configured to: determine the target position curve based on the target position obtained by spline curve fitting, and calculate the contour error between the actual position point B corresponding to the G code instruction point and the target position curve; determine the error direction vector based on the contour error, and superimpose the error direction vector onto the G code instruction point accordingly to obtain the compensated G code instruction point.

[0071] In some embodiments, the data sending acquisition unit is further configured to: based on the compensated G code instruction point, use a trapezoidal acceleration and deceleration algorithm to re-speed plan the G code instruction point; based on the result of the speed planning, obtain a new sending position point at any time t.

[0072] It should be noted that the device described in this embodiment belongs to the same technical concept as the method described previously, and can achieve the same technical effect, which will not be repeated here.

[0073] An embodiment of the present invention further provides a readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the methods described in the above embodiments.

[0074] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. For example, those of ordinary skill in the art can use other embodiments when reading the above description. In addition, in the above-mentioned specific embodiments, various features can be grouped together to simplify the present invention. This should not be interpreted as a feature of an invention that is not claimed for protection being necessary for any claim. On the contrary, the subject matter of the present invention may be less than all the features of the embodiments of a specific invention. Thus, the following claims are incorporated into the specific embodiments as examples or embodiments, wherein each claim is independently used as a separate embodiment, and it is considered that these embodiments can be combined with each other in various combinations or arrangements. The scope of the present invention should be determined with reference to the full scope of the equivalent forms of the attached claims and these claims.

Claims

1. A robot machining contour error compensation method, It is characterized in that The method comprises: Obtain the G code instruction points and target position points of robot processing; Determining an actual position point B corresponding to the G code instruction point based on the target position point, and calculating a contour error between the actual position point B and the target position, including: The target position obtained by spline curve fitting is obtained to obtain the target position curve, and the G code instruction point G on the target position curve is found. n The closest point A, which passes through point A and G code command point G n The straight line where the target position curve is located is perpendicular to the tangent line passing through point A, where point A is the G code command point G n The corresponding target location point; Point A is between any time t and time t+1 of the target position. Traverse all the target position points and find the target position point two times before and after point A, that is, A t and A t+1 , draw a perpendicular line from point A to the straight line where the two target positions are located, and find the target position point A at time t t The length of the line segment formed with the foot of the perpendicular and the length of the line segment formed with the two target position points Find the ratio, based on the obtained ratio relationship, the line segment formed by the two actual position points On the top, find the G code command point G n The corresponding actual position point B, using the obtained actual position point B, calculate the contour error between the actual position at point B and the target position curve and the error direction vector in A tangent line perpendicular to the target position curve; Based on the contour error, determining a compensated G code instruction point includes: Based on the obtained contour error The error direction vector Correspondingly superimposed to the G code instruction point G n The G code command point G after compensation is obtained n ′; Based on the compensated G code instruction point, speed planning is performed to obtain the compensated sending position point.

2. The method according to claim 1, It is characterized in that The target position point and the actual position point are data points corresponding to the target position and the actual position at any time t.

3. The method according to claim 1, It is characterized in that The method of performing speed planning based on the compensated G code instruction point to obtain the compensated sending position point includes: Based on the compensated G code instruction point, a trapezoidal acceleration and deceleration algorithm is used to perform speed planning on the G code instruction point; Based on the results of speed planning, a new delivery location point is obtained at any time t.

4. A robot machining contour error compensation method and device, It is characterized in that The device comprises: A data acquisition unit is configured to acquire G code instruction points and target position points of robot processing; an error calculation unit, configured to determine an actual position point B corresponding to the G-code instruction point based on the target position point, and calculate a contour error between the actual position point B and the target position; A compensation determination unit is configured to determine a compensated G-code instruction point based on the contour error; A data acquisition unit is configured to perform speed planning based on the compensated G-code instruction point to obtain a compensated sending position point; The error calculation unit is further configured to: The target position obtained by spline curve fitting is obtained to obtain the target position curve, and the G code instruction point G on the target position curve is found. n The closest point A, which passes through point A and G code command point G n The straight line where the target position curve is located is perpendicular to the tangent line passing through point A, where point A is the G code command point G n The corresponding target location point; Point A is between any time t and time t+1 of the target position. Traverse all the target position points and find the target position point two times before and after point A, that is, A t and A t+1 , draw a perpendicular line from point A to the straight line where the two target positions are located, and find the target position point A at time t t The length of the line segment formed with the foot of the perpendicular and the length of the line segment formed with the two target position points Find the ratio, based on the obtained ratio relationship, the line segment formed by the two actual position points On the top, find the G code command point G n The corresponding actual position point B, using the obtained actual position point B, calculate the contour error between the actual position at point B and the target position curve and the error direction vector in A tangent line perpendicular to the target position curve; The compensation determination unit is further configured to: Based on the obtained contour error The error direction vector Correspondingly superimposed to the G code instruction point G n The G code command point G after compensation is obtained n ′.

5. A readable storage medium, It is characterized in that The readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method according to any one of claims 1 to 3.