Welding seam grinding method and equipment based on laser vision
Through the welding seam grinding method based on laser vision, the point cloud slope mutation and B-spline interpolation are used to solve the problem of low efficiency of automatic grinding equipment and achieve efficient and accurate welding seam grinding, which is suitable for complex spatial surface structures.
Patent Information
- Application Number
- CN202410916042.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-09
AI Technical Summary
Existing automatic grinding equipment is inefficient when ensuring grinding accuracy, especially when processing complex spatial surface structures. The calculation complexity is high, making it difficult to simplify the calculation method.
The welding seam grinding method based on laser vision is used to generate point cloud information through line laser scanning of the welding seam and the workpiece surfaces on both sides. The point cloud slope mutation is used to segment the welding seam, an intersecting grinding path is set, and B-spline interpolation is used to generate smooth Curves, simplifying calculations and improving efficiency.
It achieves improved efficiency of automatic grinding equipment while ensuring grinding accuracy, simplifies point cloud processing and grinding path planning, and is suitable for weld grinding of complex spatial surface structures.
Smart Images

Figure CN118650495A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of weld grinding, and in particular to a weld grinding method and grinding equipment based on laser vision. Background Art
[0002] At present, industrial robots are playing an important role in more and more fields. They can replace manual labor in material processing projects such as welding, grinding, and casting. They have replaced traditional manual production in these high-noise and high-pollution environments, greatly improving processing efficiency and reducing labor costs. By adding visual sensors, sound sensors and other methods to the body of industrial robots for multi-information fusion, the intelligence of industrial robots has been greatly improved, allowing robots to handle various complex working conditions like humans.
[0003] In addition, with the rapid development of materials science and other related fields, welding technology has also developed rapidly, so that welding technology has also been applied to complex spatial curved surface structures.
[0004] Although the existing technology can replace manual weld grinding by adding visual sensors to robot equipment, these automatic grinding devices collect weld information based on visual sensors. However, in order to ensure the grinding accuracy, the automatic grinding methods of welds are complicated and generally require offline programming, resulting in low grinding efficiency of automatic grinding equipment. The efficiency of weld grinding on more complex spatial curved structures is even lower. Summary of the invention
[0005] The technical problem to be solved by the present invention is how to improve the automatic grinding efficiency of the automatic grinding equipment while ensuring the grinding accuracy.
[0006] In order to solve the above problems, the present invention provides a weld grinding method based on laser vision, comprising:
[0007] Collect the images of the weld and the workpiece surfaces on both sides scanned by line laser and generate point cloud information;
[0008] Segmenting the weld point cloud based on the sudden change in slope of each line of the laser point cloud in the point cloud information;
[0009] Based on the weld point cloud, setting a grinding path along the weld;
[0010] Making the execution end of the grinding device grind the surface of the workpiece along the grinding path;
[0011] Wherein, the line length direction of the line laser is arranged to intersect with the extension direction of the weld.
[0012] Optionally, collecting images of the weld and workpiece surfaces on both sides thereof irradiated by the line laser and generating point cloud information includes:
[0013] Calibrate the end tool center point of the execution end;
[0014] Changing different postures of the mechanical arm of the grinding device and using the laser camera at the execution end to take corresponding photos at multiple different angles;
[0015] Based on the plurality of the photos, the hand-eye conversion matrix of the laser camera is obtained.
[0016] Setting the starting point and the end point of the laser camera to capture the weld and the workpiece surfaces on both sides thereof;
[0017] The execution end moves along the weld from the starting point to the end point, and the laser camera is used to collect the current position P of the center point of the end tool in real time. tcp ;
[0018] The point cloud 3D reconstruction formula is used to calculate the position of the point cloud information in the base coordinate system. The point cloud 3D reconstruction formula is:
[0019]
[0020] Among them, P base is the position of the point cloud information in the base coordinate system, P L is the point cloud position of the weld and the workpiece surfaces on both sides thereof collected by the laser camera, is the hand-eye conversion matrix of the laser camera, is based on the current position P tcp The calculated transformation matrix between the end tool center point and the base coordinate system.
[0021] Optionally, based on the sudden change in the point cloud slope of the line laser in the point cloud information, before segmenting the weld point cloud, the method includes:
[0022] Performing outlier filtering processing on the point cloud information includes:
[0023] A spatial spherical neighborhood range is set for each point in the point cloud information, and the radius of the spatial spherical neighborhood range is L R , the number of points in the spherical space of the i-th point in the point cloud information is n i ;
[0024] Using the average distance formula, the average distance d is calculated for each point in the point cloud information. Ri and standard deviation σ Ri , the average distance formula is:
[0025]
[0026] Among them, d Ri represents the average distance of the i-th point in the point cloud information, (x ij ,y ij , z ij ) represents the spatial coordinates of the jth point in the spherical space of the i-th point in the point cloud information, (x i ,y i , z i ) represents the spatial coordinates of the i-th point in the point cloud information;
[0027] The standard deviation formula is used to calculate the standard deviation of the i-th point in the point cloud information. The standard deviation formula is:
[0028]
[0029] Among them, σ Ri represents the standard deviation of the i-th point in the point cloud information, d Rij represents the distance between the i-th point in the point cloud information and the j-th point in the spherical space;
[0030] Set the average distance threshold d RT and the threshold value of the standard deviation σ RT , when d Ri >d RT And σ Ri >σ RT When , the i-th point is judged as an outlier;
[0031] The outliers are removed.
[0032] Optionally, segmenting the weld point cloud based on a sudden change in slope of each line of the laser point cloud in the point cloud information includes:
[0033] Step 1: Based on the point cloud information, calculate the slope of the workpiece surface on both sides of the weld in a single line laser point cloud and the slopes of multiple point clouds at the weld;
[0034] Step 2: Based on the slopes of the workpiece surfaces on both sides of the weld and the slopes of multiple point clouds at the weld, edge points on both sides of the width of the weld in a single line laser point cloud are calculated;
[0035] Step 3: Segment the weld point cloud in the single line laser point cloud based on the edge points on both sides of the width of the weld in the single line laser point cloud;
[0036] Step 4: Repeat steps 1 to 3 for each line laser point cloud in the point cloud information to segment the weld point cloud.
[0037] Optionally, step 1, based on the point cloud information, calculating the slopes of the workpiece surfaces on both sides of the weld in a single line laser point cloud and the slopes of multiple point clouds at the weld includes:
[0038] Sort the point clouds in the single line laser point cloud along the width direction of the weld, and record the total number of point clouds in the single line laser point cloud as n P ;
[0039] The number of point clouds used to evaluate the surface slope of the workpiece on both sides of the weld in the single line laser point cloud is set to n. b ;
[0040] The workpieces on both sides of the weld are two substrates, and the slopes of the workpieces on both sides of the weld are calculated using the first slope formula:
[0041]
[0042] Wherein, k1 is the slope of one of the two substrates, k2 is the slope of the other of the two substrates, and x i is the coordinate of the i-th point cloud in the single line laser point cloud along the width direction of the weld, z i is the vertical coordinate of the i-th point cloud in the single line laser point cloud;
[0043] The number of point clouds in the single line laser point cloud used to evaluate the slope of the multiple point clouds at the weld is set to n w , use the second slope formula to evaluate n w The slope k of the point cloud j , the second slope formula is:
[0044]
[0045] Among them, 1≤j≤n P -2*n b , Floor means rounding down, and j is from 1 to n. P -2*n b Calculate n w The slope k of the point cloud j .
[0046] Optionally, step 2, based on the slope of the workpiece surface on both sides of the weld and the slope of multiple point clouds at the weld, calculating the edge points on both sides of the width of the weld in a single line laser point cloud includes:
[0047] Step 2.1, set the initial angle threshold of one side of the workpiece on both sides of the weld to θ T1 , and θ T1 The descent gradient is Δθ;
[0048] Step 2.2, calculate n in sequence w The slope k of the point cloud j The angle θ with k1 1j , and with the angle threshold θ T1 For comparison, and in θ 1j >θ T1 When j in step 1 is marked as j k1 , calculate the angle θ 1j The formula is:
[0049]
[0050] Among them, the calculation of j in step 1 starts from 1 and ends at n P -2*n b ;
[0051] Step 2.3: If j in step 1 increases from 1 to n P -2*n b None of them obtained θ 1j >θ T1 , then let θ T1 =θ T1 -Δθ, and repeat step 2.2 until θ 1j >θ T1 When j in step 1 is marked as j k1 , end the calculation;
[0052] Step 2.4: Set the initial angle threshold of the other side of the workpiece on both sides of the weld to θ T2 , and θ T2 The descent gradient is also Δθ, which is the θ in step 2.2 and step 2.3. T1 Replace with θ T2 Repeat steps 2.2 and 2.3 until θ is calculated. 2j >θ T2 , and record that j in step 1 is j k2 , end the calculation;
[0053] Step 2.5: Segment the weld point cloud P W , sort the single line laser point cloud along the width direction of the weld and record it as P SL , extract the point cloud sequence P SL Sort by n b +j k1 to n b +j k2 The point cloud is the weld point cloud P W ,
[0054] P w =[P SL(n b +j k1 ),P SL (n b +j k1 +1),…P SL (n b +j k2 )], where P SL (n b +j k1 ) indicates that in the point cloud sequence P SL The nth b +j k1 A point cloud.
[0055] Optionally, based on the weld point cloud, setting a grinding path along the weld includes:
[0056] Based on the weld point cloud, the coordinate point P of the grinding path is generated. mi (x mi ,y mi , z mi ), where 1≤i≤p, p is the number of line laser point clouds captured by the laser camera, P mi is the midpoint coordinate of the weld point cloud segment segmented from the i-th line laser point cloud, P mi The calculation formula is as follows:
[0057]
[0058] Among them, P SLi (n b +j k1 ) and P SLi (n b +j k2 ) respectively represent the coordinates of the edge points at both ends of the weld point cloud segment segmented from the i-th line laser point cloud;
[0059] Calculate the coordinate point P for each line laser point cloud in turn mi , and save the calculation results in the matrix MatB,
[0060] MatB=[P m1 , P m2 , P m3 ,…,P mp ],
[0061] Among them, MatB is a matrix of size p*3, each row contains the corresponding coordinate point P mi (x mi ,y mi , z mi );
[0062] Using B-spline interpolation, a matrix MatB of the coordinate points of the polishing path obtained by calculation is used to generate a smooth curve;
[0063] Calculating the normal direction at each point of the smooth curve;
[0064] The polishing path is generated based on the smooth curve and the normal direction at each point thereof.
[0065] Optionally, using B-spline interpolation to generate a smooth curve from the matrix MatB of the coordinate points of the polishing path obtained by calculation includes:
[0066] Interpolate n between two adjacent points in the matrix MatB B points;
[0067] In each adjacent subinterval [P mk , P m(k+1) ], construct the cubic B-spline interpolation function S k (P m ),
[0068] S k (P m )=a k +b k (P m -P mk )+c k (P m -P mk ) 2 +d k (P m -P mk ) 3 , where 1≤k≤p-1, a k , b k , c k , d k They are the interpolation functions S k (P m ) and solve the interpolation function S for each adjacent point k (P m ) k , b k , c k , d k ;
[0069] Interpolate the coordinates of the points that do not have adjacent points, and save the interpolated results in the matrix MatC.
[0070]
[0071] in, Indicates that [P m1 , Pm2 ] B points, the matrix MatC is a (p+(p-1)*n B )*3, change the naming method of the matrix in MatC:
[0072]
[0073] in, Corresponding to The value of represents the coordinate position of the point set after interpolation;
[0074] Calculating the normal direction at each point of the smooth curve comprises:
[0075] For the interpolation function S k (P m ) Solve for the first-order derivative and calculate the slope S of the tangent line at each point k ′(P m ):
[0076] S k ′(P m )=b k +2c k (P m -P mk )+3d k (P m -P mk ) 2 ,
[0077] Among them, 1≤k≤p-1;
[0078] Calculate normal direction Among them, 1≤i≤(p+(p-1)*n B );
[0079] Solve the normal direction of each point of the matrix MatC in turn, and convert the calculated normal direction V i Saved in the matrix MatD, Among them, the matrix MatD is a (p+(p-1)*n B )*3 matrix;
[0080] Based on the smooth curve and the normal direction at each point thereof, generating the grinding path comprises:
[0081] The matrix MatC and the matrix MatD are combined to generate the matrix MatP of the grinding path, and the combination method is as follows:
[0082]
[0083] Wherein, the matrix MatP is a (p+(p-1)*n B )*6 matrix.
[0084] Optionally, after the execution end of the grinding device is made to grind the surface of the workpiece along the grinding path, the method further comprises:
[0085] Repeat the steps of collecting images of the weld and the surfaces of the workpieces on both sides thereof scanned by a line laser and generating point cloud information, and segmenting the weld point cloud based on a sudden change in the slope of each line laser point cloud in the point cloud information;
[0086] If the residual height of the weld point cloud relative to the workpiece surfaces on both sides is higher than the set height value, the step of causing the execution end of the grinding device to grind the workpiece surface along the grinding path is repeated.
[0087] In addition, the present invention also provides a grinding device, which is used to perform the weld grinding method. The grinding device includes a robotic arm and a grinding head. The grinding head is a hydraulically controlled floating grinding head, and the grinding head is connected to the robotic arm.
[0088] The technical effects of the present invention include at least:
[0089] The present invention uses a line laser to scan the weld and the workpiece surfaces on both sides thereof and generates point cloud information. In this way, the line laser point cloud is cleverly used to obtain the characteristics of being obtained by splicing single line laser point clouds, so that it is not necessary to slice the point cloud when segmenting and extracting the weld, and each single line laser can be directly processed, thereby greatly reducing the calculation of the point cloud and simplifying the calculation method. At the same time, in order to ensure the subsequent grinding accuracy of the weld, the inventor of the present invention cleverly combines the inherent characteristics of the weld itself, and uses the fact that the weld feet on both sides of the weld have protrusions relative to the substrate, which is manifested in the point cloud as the point cloud slope at the weld feet on both sides of the weld will suddenly change; based on this, it is only necessary to solve the slopes of adjacent point clouds in turn and set a reasonable slope threshold to find the edge of the weld. Specifically, it is proposed to segment the weld point cloud based on the sudden change in the slope of each line laser point cloud in the point cloud information, thereby ensuring the accuracy of weld identification. At the same time, the present invention uses the line length direction of the line laser to cross the extension direction of the weld to ensure that the line laser points in the collected image completely cover the weld along the wide side of the weld, ensure the integrity of the subsequent line laser point cloud analysis, and ensure that the slope mutation position in the line laser point cloud can be accurately identified. In this way, the present invention combines line laser scanning with the sudden change in the slope of the point cloud at the weld feet on both sides of the weld, thereby resolving the conflicting problem between ensuring grinding accuracy and simplifying the calculation method, and achieving the advantage of improving the automatic grinding efficiency of the automatic grinding equipment while ensuring grinding accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] Figure 1 A schematic flow chart of the main steps of the laser vision-based weld grinding method according to a specific embodiment of the present invention;
[0091] Figure 2 A schematic flow chart of all steps of the laser vision-based weld grinding method according to a specific embodiment of the present invention;
[0092] Figure 3 It is a schematic flow chart of the main steps of the process of segmenting the weld point cloud in the weld grinding method based on laser vision according to a specific embodiment of the present invention;
[0093] Figure 4 A schematic flow chart of the main steps of calculating and obtaining edge points on both sides of the width of the weld in a single line laser point cloud in the weld grinding method based on laser vision according to a specific embodiment of the present invention;
[0094] Figure 5 is a schematic structural diagram of a weld in a specific embodiment of the present invention in a transverse direction;
[0095] Figure 6 It is a schematic structural diagram of the longitudinal direction of the weld at the spatial curved surface structure in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0096] In order to make the above-mentioned purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation mode of the present invention is described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the embodiments of the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. The embodiments of the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed below.
[0097] It can be understood that the terms "first", "second", etc. used in the present invention can be used in this article to describe various professional terms, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. However, unless otherwise specified, these professional terms are not limited by these terms. These terms are only used to distinguish one professional term from another professional term. For example, without departing from the scope of the present invention, the first receiving device and the second receiving device are different receiving devices, the first surface and the second surface are different surfaces, and the first plane, the second plane, the third plane and the fourth plane are different planes. In the description of the embodiments of the present invention, the meaning of "multiple" and "several" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0098] In the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "install", "connect", "set", "fix" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two components or the interaction relationship between two components, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific circumstances.
[0099] In the description of the embodiments of the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the horizontal height of the first feature is higher than the horizontal height of the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the horizontal height of the first feature is lower than the horizontal height of the second feature.
[0100] It should be noted that when a component is referred to as being "fixed on" or "set on" another component, or similar words such as "fixed on" or "set on", it can be directly on the other component or there can be a central component. When a component is considered to be "connected" to another component, it can be directly connected to the other component or there can be a central component at the same time.
[0101] Unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0102] Moreover, the Y-axis in the accompanying drawings represents the longitudinal direction, that is, the front-to-back direction of the weld; the X-axis in the accompanying drawings represents the transverse direction, that is, the width direction of the weld; the Z-axis in the accompanying drawings represents the vertical direction, that is, the up-down direction, and the positive direction of the Z-axis (that is, the direction of the arrow of the Z-axis) represents the top, and the negative direction of the Z-axis (that is, the direction opposite to the positive direction of the Z-axis) represents the bottom; it should be noted that the aforementioned X-axis, Y-axis and Z-axis are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or component referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0103] See also Figures 1 to 6, this embodiment provides a weld grinding method based on laser vision, comprising:
[0104] Collect the images of the weld and the workpiece surfaces on both sides scanned by line laser and generate point cloud information;
[0105] Segmenting the weld point cloud based on the sudden change in slope of each line of the laser point cloud in the point cloud information;
[0106] Based on the weld point cloud, setting a grinding path along the weld;
[0107] Making the execution end of the grinding device grind the surface of the workpiece along the grinding path;
[0108] Wherein, the line length direction of the line laser is arranged to intersect with the extension direction of the weld.
[0109] It should be noted that the line length direction of the line laser here is cross-set with the extension direction of the weld, including the situation where the line length direction of the line laser is perpendicular to the extension direction of the weld, and also including the situation where the line length direction of the line laser crosses the extension direction of the weld at an acute angle or an obtuse angle.
[0110] It should be noted that the grinding equipment here can be an industrial robot, which can be simply referred to as a robot.
[0111] The inventor of the present invention has found that the main reason why the prior art cannot improve the grinding efficiency of the automatic grinding equipment while ensuring the grinding accuracy is that, in the prior art, for the automatic grinding of welds, in order to ensure the grinding accuracy of the welds, the automatic detection and path planning of the welds often need to be carefully analyzed and calculated to ensure that there is no threat to the operators around the automatic grinding equipment, and more importantly, no damage to the workpiece being ground. To this end, it is necessary to set multiple safety steps for automatic weld grinding, and to collect the image data of the weld surface and the workpiece surface around it as fully as possible during the visual sensor detection process, resulting in a huge amount of collected data. In addition, in order to ensure the accuracy of weld identification, a combination of multiple algorithms is generally used to ensure the accuracy of the analysis of the large amount of collected data, so as to accurately identify the weld, and then based on these huge data, the computer automatically edits the grinding trajectory and other related grinding parameters to form a corresponding program, that is, offline programming, and the generated program is simulated online to ensure the accuracy and safety of subsequent automatic grinding.
[0112] In order to solve the contradiction between ensuring grinding accuracy and simplifying the calculation method, the present invention uses a line laser to scan the weld and the workpiece surfaces on both sides thereof and generates point cloud information. In this way, the line laser point cloud is cleverly used to obtain the characteristics of being obtained by splicing single line laser point clouds, so that when segmenting and extracting the weld, it is not necessary to slice the point cloud, and each single line laser can be directly processed, thereby greatly reducing the calculation of the point cloud and simplifying the calculation method. At the same time, in order to ensure the subsequent grinding accuracy of the weld, the inventor of the present invention cleverly combines the inherent characteristics of the weld itself, and uses the fact that the weld feet on both sides of the weld have protrusions relative to the substrate, which is manifested in the point cloud as the point cloud slope at the weld feet on both sides of the weld will suddenly change; based on this, it is only necessary to solve the slopes of the adjacent point clouds in turn and set a reasonable slope threshold to find the edge of the weld. Specifically, it is proposed to segment the weld point cloud based on the sudden change in the slope of each line laser point cloud in the point cloud information, thereby ensuring the accuracy of weld identification. At the same time, the present invention uses the line length direction of the line laser to cross the extension direction of the weld to ensure that the line laser points in the collected image completely cover the weld along the wide side of the weld, ensure the integrity of the subsequent line laser point cloud analysis, and ensure that the slope mutation position in the line laser point cloud can be accurately identified. In this way, the present invention combines line laser scanning with the sudden change in the slope of the point cloud at the weld feet on both sides of the weld, thereby resolving the conflicting problem between ensuring grinding accuracy and simplifying the calculation method, and achieving the advantage of improving the automatic grinding efficiency of the automatic grinding equipment while ensuring grinding accuracy.
[0113] See also Figures 1 to 6 , further, collecting images of the weld and the workpiece surfaces on both sides thereof irradiated by the line laser and generating point cloud information includes:
[0114] Calibrate the end tool center point of the execution end;
[0115] Changing different postures of the mechanical arm of the grinding device and using the laser camera at the execution end to take corresponding photos at multiple different angles;
[0116] Specifically, calibration can be completed by changing the robot's six-axis posture and taking multiple photos.
[0117] Based on the plurality of the photos, the hand-eye conversion matrix of the laser camera is obtained.
[0118] Setting the starting point and the end point of the laser camera to capture the weld and the workpiece surfaces on both sides thereof;
[0119] The execution end moves along the weld from the starting point to the end point, and the laser camera is used to collect the current position P of the center point of the end tool in real time. tcp ;
[0120] The point cloud 3D reconstruction formula is used to calculate the position of the point cloud information in the base coordinate system. The point cloud 3D reconstruction formula is:
[0121]
[0122] Among them, P base is the position of the point cloud information in the base coordinate system, P L is the point cloud position of the weld and the workpiece surfaces on both sides thereof collected by the laser camera, is the hand-eye conversion matrix of the laser camera, is based on the current position P tcp The calculated transformation matrix between the end tool center point and the base coordinate system.
[0123] The calibration point of the end tool center point of the grinding equipment is selected as the center point of the end grinding tool of the EHA floating grinding head.
[0124] In this way, the position of the point cloud in the robot base coordinate system is obtained, and all the converted point clouds are spliced to complete the 3D reconstruction of the point cloud taken by the laser camera. In this way, the coordinates of the weld point cloud are unified, which is convenient for subsequent calculations and reduces the amount of calculations.
[0125] See also Figures 1 to 6 Further, based on the sudden change in the slope of the point cloud of the line laser in the point cloud information, before the weld point cloud is segmented, the method includes:
[0126] Performing outlier filtering processing on the point cloud information includes:
[0127] A spatial spherical neighborhood range is set for each point in the point cloud information, and the radius of the spatial spherical neighborhood range is L R , the number of points in the spherical space of the i-th point in the point cloud information is n i , that is, define the neighborhood.
[0128] Using the average distance formula, the average distance d is calculated for each point in the point cloud information. Ri and standard deviation σ Ri , the average distance formula is:
[0129]
[0130] Among them, d Ri represents the average distance of the i-th point in the point cloud information, (x ij ,y ij , z ij ) represents the spatial coordinates of the jth point in the spherical space of the i-th point in the point cloud information, (x i ,y i , zi ) represents the spatial coordinates of the i-th point in the point cloud information;
[0131] The standard deviation formula is used to calculate the standard deviation of the i-th point in the point cloud information. The standard deviation formula is:
[0132]
[0133] Among them, σ Ri represents the standard deviation of the i-th point in the point cloud information, d Rij represents the distance between the i-th point in the point cloud information and the j-th point in the spherical space;
[0134] Set the average distance threshold d RT and the threshold value of the standard deviation σ RT , when d Ri >d RT And σ Ri >σ RT When , the i-th point in the point cloud information is determined to be an outlier;
[0135] The outliers are removed.
[0136] During the shooting process of the laser camera, interference phenomena (such as reflections, etc.) are prone to occur, which will cause some noise points in the acquired point cloud and need to be removed. Outlier filtering can effectively remove these noise points, improve the quality of the acquired point cloud, avoid misjudgment of the weld in the subsequent weld segmentation process, make it easier for the subsequent weld segmentation, and reduce unnecessary subsequent calculations.
[0137] See also Figures 1 to 6 Further, based on the sudden change in slope of each line of the laser point cloud in the point cloud information, segmenting the weld point cloud includes:
[0138] Step 1: Based on the point cloud information, calculate the slope of the workpiece surface on both sides of the weld in a single line laser point cloud and the slopes of multiple point clouds at the weld;
[0139] Step 2: Based on the slopes of the workpiece surfaces on both sides of the weld and the slopes of multiple point clouds at the weld, edge points on both sides of the width of the weld in a single line laser point cloud are calculated;
[0140] Step 3: Segment the weld point cloud in the single line laser point cloud based on the edge points on both sides of the width of the weld in the single line laser point cloud;
[0141] Step 4: Repeat steps 1 to 3 for each line laser point cloud in the point cloud information to segment the weld point cloud.
[0142] Since the point cloud generated by the laser camera is obtained by splicing single-line laser point clouds, it is not necessary to slice the point cloud when segmenting the point cloud obtained by the laser camera. Each single-line laser can be directly processed. The above segmentation process is first applied to the single-line laser point cloud, and then the processed point cloud is spliced. That is, after executing steps 1 to 3, in step 4, steps 1 to 3 are repeated for each line laser point cloud in the point cloud information to segment the weld point cloud, thereby simplifying the segmentation method and improving the accuracy of segmentation.
[0143] Furthermore, it is only necessary to calculate the edge points on both sides of the width of the weld in a single line laser point cloud, without obtaining irrelevant information such as different heights at different positions of the weld, thereby eliminating a large amount of unnecessary information collection and subsequent calculation processes.
[0144] See also Figures 1 to 6 Further, step 1, based on the point cloud information, calculating the slope of the workpiece surface on both sides of the weld in a single line laser point cloud and the slope of multiple point clouds at the weld includes:
[0145] Sort the point clouds in the single line laser point cloud along the width direction of the weld, and record the total number of point clouds in the single line laser point cloud as n P ;
[0146] The number of point clouds used to evaluate the surface slope of the workpiece on both sides of the weld in the single line laser point cloud is set to n. b ;
[0147] The first slope formula is used to calculate the slopes of the workpieces on both sides of the weld respectively. The workpieces on both sides of the weld are two substrates. The first slope formula is:
[0148]
[0149] Wherein, k1 is the slope of one of the two substrates, k2 is the slope of the other of the two substrates, and x i is the coordinate of the i-th point cloud in the single line laser point cloud along the width direction of the weld, z i is the vertical coordinate of the i-th point cloud in the single line laser point cloud;
[0150] The number of point clouds in the single line laser point cloud used to evaluate the slope of the multiple point clouds at the weld is set to n w , use the second slope formula to evaluate n w The slope k of the point cloud j , the second slope formula is:
[0151]
[0152] Among them, 1≤j≤n P -2*n b , Floor means rounding down, and j is from 1 to n. P -2*n b Calculate n w The slope k of the point cloud j ;
[0153] Preferably, k j The calculation results are saved in the matrix MatA.
[0154]
[0155] Among them, MatA is a 1*(n P -2*n b )-sized matrix.
[0156] In order to facilitate the segmentation of the weld point cloud and the substrate point cloud, it is necessary to first solve the approximate slope of the point cloud at the substrate for a single line laser point cloud. Due to the particularity of the line laser point cloud, although it has coordinates in three directions (x, y, z), the line laser point cloud can be compressed into a plane along the width direction of the laser line. The plane point processing method can greatly improve the calculation speed while ensuring the calculation accuracy. For example, a line laser point cloud captured along the x-axis direction can temporarily ignore its y-axis coordinates during the segmentation process, and simplify its coordinates from (x, y, z) to (x, z), thereby simplifying the subsequent large number of calculations.
[0157] See also Figures 1 to 6 Further, step 2, based on the slope of the workpiece surface on both sides of the weld and the slope of multiple point clouds at the weld, calculating the edge points on both sides of the width of the weld in a single line laser point cloud includes:
[0158] Step 2.1, set the initial angle threshold of one side of the workpiece on both sides of the weld to θ T1 , and θ T1 The descent gradient is Δθ;
[0159] Step 2.2, calculate n in sequence w The slope k of the point cloud j The angle θ with k1 1j , and with the angle threshold θ T1 For comparison, and in θ 1j >θ T1 When j in step 1 is marked as j k1 , calculate the angle θ 1j The formula is:
[0160]
[0161] Among them, the calculation of j in step 1 starts from 1 and ends at n P -2*n b ;
[0162] Step 2.3: If j in step 1 increases from 1 to n P -2*n b None of them obtained θ 1j >θ T1 , then let θ T1 =θ T1 -Δθ, and repeat step 2.2 until θ 1j >θ T1 When j in step 1 is marked as j k1 , end the calculation;
[0163] Step 2.4: Set the initial angle threshold of the other side of the workpiece on both sides of the weld to θ T2 , and θ T2 The descent gradient is also Δθ, which is the θ in step 2.2 and step 2.3. T1 Replace with θ T2 Repeat steps 2.2 and 2.3 until θ 1j >θ T1 When j in step 1 is marked as j k1 , end the calculation;
[0164] Step 2.5: Segment the weld point cloud P W , sort the single line laser point cloud along the width direction of the weld and record it as P SL , extract the point cloud sequence P SL Sort by n b +j k1 to n b +j k2 The point cloud is the weld point cloud P W ,
[0165] P w =[P SL (n b +j k1 ), P SL (n b +j k1 +1),…P SL (n b +j k2 )],
[0166] Among them, P SL (n b +j k1 ) indicates that in the point cloud sequence P SL The nth b+j k1 A point cloud.
[0167] Since the edge of the weld generally has a large angle with the substrate, the angle between the slope of the adjacent points in the substrate and the two sides of the substrate is solved, and the initial threshold is set to find the point with a large angle with the substrate. If it is not found within the set initial threshold, the angle threshold is reduced by using the threshold descent gradient and the search is repeated again until the boundary point at the edge is found. In this way, the edge of the weld can be found smoothly.
[0168] See also Figures 1 to 6 Further, based on the weld point cloud, setting a grinding path along the weld includes:
[0169] Based on the weld point cloud, the coordinate point P of the grinding path is generated. mi (x mi ,y mi , z mi ), where 1≤i≤p, p is the number of line laser point clouds captured by the laser camera, P mi is the midpoint coordinate of the weld point cloud segment segmented from the i-th line laser point cloud, P mi The calculation formula is as follows:
[0170]
[0171] Among them, P SLi (n b +j k1 ) and P SLi (n b +j k2 ) respectively represent the coordinates of the edge points on both sides of the weld point cloud segment segmented from the i-th line laser point cloud;
[0172] Calculate the coordinate point P for each line laser point cloud in turn mi , and save the calculation results in the matrix MatB,
[0173] MatB=[P m1 ,P m2 ,P m3 ,...,P mp ],
[0174] Among them, MatB is a matrix of size p*3, each row contains the corresponding coordinate point P mi (x mi ,y mi , z mi );
[0175] Using B-spline interpolation, a matrix MatB of the coordinate points of the polishing path obtained by calculation is used to generate a smooth curve;
[0176] Calculating the normal direction at each point of the smooth curve;
[0177] The polishing path is generated based on the smooth curve and the normal direction at each point thereof.
[0178] The inventors of the present invention have found through research that the grinding path also has a great influence on the final weld grinding forming accuracy, especially for the weld grinding on the spatial curved surface structure. The inventors of the present invention have further found that in order to ensure a constant removal amount, the grinding direction needs to always keep coincidence with the normal of the weld surface. The grinding method in the prior art only removes from the highest point of the weld, and does not adjust the posture of the robot itself, which easily leads to poor final weld removal forming quality and uneven surface excess height.
[0179] To this end, the inventor of the present invention proposes the above-mentioned simple and efficient grinding trajectory planning method, which directly generates the final grinding path from the weld point cloud obtained by scanning, and the coordinate points of the grinding path are processed by B-spline interpolation to generate a smooth curve, so that the weld on the curved structure can be polished more smoothly at the end of the execution, meeting the processing requirements. Moreover, the trajectory planning method is obtained based on the aforementioned weld extraction method, which is simple and accurate in weld extraction. On this basis, the midpoints of the edge points on both sides of the segmented weld are used as the grinding path coordinate points, and P is used as the grinding path coordinate point. mi The calculation formula is combined with the edge points on both sides of the weld after segmentation, that is, with P SLi (n b +j k1 ) and P SLi (n b +j k2 ) to quickly obtain the grinding path coordinates. The whole process is fast and can be generated in real time without offline programming. The point position and posture can be sent to the robot in real time for execution, and a good weld grinding and forming surface can be obtained.
[0180] See also Figures 1 to 6 , further, using B-spline interpolation, the matrix MatB of the coordinate points of the polishing path obtained by calculation is used to generate a smooth curve, including:
[0181] Interpolate n between two adjacent points in the matrix MatB B points;
[0182] In each adjacent subinterval [P mk , P m(k+1) ], construct the cubic B-spline interpolation function S k (P m ),
[0183] Sk (P m )=a k +b k (P m -P mk )+c k (P m -P mk ) 2 +d k (P m -P mk ) 3 ,
[0184] Among them, 1≤k≤p-1, a k , b k , c k , d k They are the interpolation functions S k (P m ) and solve the interpolation function S for each adjacent point k (P m ) k ,b k ,c k ,d k ;
[0185] Interpolate the coordinates of the points that do not have adjacent points, and save the interpolated results in the matrix MatC.
[0186] MatC=[P m1 ,L1(P m1 ),...L nB (P m1 ),P m2 …P mp ],
[0187] in, Indicates that [P m1 ,P m2 ] B points, the matrix MatC is a (p+(p-1)*n B )*3, change the naming method of the matrix in MatC:
[0188]
[0189] in, Corresponding to The value of represents the coordinate position of the point set after interpolation;
[0190] Calculating the normal direction at each point of the smooth curve includes:
[0191] For the interpolation function Sk (P m ) Solve for the first-order derivative and calculate the slope S of the tangent line at each point k ′(P m ):
[0192] S k ′(P m )=b k +2c k (P m -P mk )+3d k (P m -P mk ) 2 ,
[0193] Among them, 1≤k≤p-1;
[0194] Calculate normal direction Among them, 1≤i≤(p+(p-1)*n B );
[0195] Solve the normal direction of each point of the matrix MatC in turn, and convert the calculated normal direction V i Save in MatD, Among them, the matrix MatD is a (p+(p-1)*n B )*3);
[0196] Based on the smooth curve and the normal direction at each point thereof, generating the grinding path comprises:
[0197] The matrix MatC and the matrix MatD are combined to generate the matrix MatP of the grinding path, and the combination method is as follows:
[0198]
[0199] Wherein, the matrix MatP is a (p+(p-1)*n B )*6 matrix.
[0200] In addition, by fitting a B-spline curve on the given data points, a smooth curve is generated to represent the unknown values between the data points. These unknown values are combined with the estimated polishing coordinate points obtained by calculation to generate a smooth polishing trajectory path. More importantly, in the present invention, cubic B-spline interpolation is used for fitting, and the curve obtained after fitting has high smoothness, good stability and good approximation. This ensures that the generated path coincides with the previously obtained polishing trajectory coordinates as much as possible.
[0201] See also Figures 1 to 6, further, after the execution end of the grinding device grinds the surface of the workpiece along the grinding path, it also includes:
[0202] Repeat the steps of collecting images of the weld and the surfaces of the workpieces on both sides thereof scanned by a line laser and generating point cloud information, and segmenting the weld point cloud based on a sudden change in the slope of each line laser point cloud in the point cloud information;
[0203] If the residual height of the weld point cloud relative to the workpiece surfaces on both sides is higher than the set height value, the step of causing the execution end of the grinding device to grind the workpiece surface along the grinding path is repeated.
[0204] In this way, the surface of the workpiece after grinding is scanned again with a line laser to obtain the corresponding point cloud information, and then the point cloud information is compared with the set height value to check whether the grinding effect meets the requirements. If not, the grinding operation is repeated to ensure that the grinding quality is qualified.
[0205] Specifically, the target height of weld grinding is set to h w Based on the sudden change in the slope of each line of the laser point cloud in the point cloud information, the detection residual height of the weld point cloud is segmented as h t , if h t >h w , then repeat the step of making the execution end of the grinding device grind the surface of the workpiece along the grinding path; if h t <h w , the grinding operation is completed.
[0206] In addition, this embodiment also provides a grinding device, which is used to perform the weld grinding method. The grinding device includes a robotic arm and a grinding head. The grinding head is a hydraulically controlled floating grinding head, and the grinding head is connected to the robotic arm.
[0207] Since the technical effect achieved by the grinding equipment is the same as that of the weld grinding method, the grinding equipment will not be described in detail.
[0208] Preferably, the grinding head uses constant force grinding during the process of grinding the surface of the workpiece.
[0209] In addition, the hydraulically controlled floating grinding head may be an EHA floating grinding head.
[0210] In addition, research has also found that when using industrial robots for grinding, due to the low positioning accuracy of the industrial robot itself and the strong rigidity of the industrial robot body, if only a rotating spindle is installed for grinding, it is easy to fail to grind, over-grind, or damage the robot body.
[0211] To this end, in the present invention, the grinding head is a hydraulically controlled floating grinding head, thereby reducing the rigid connection between the grinding head and the execution end. At the same time, the hydraulically controlled floating grinding head has the characteristics of strong bearing capacity. Under the control of the hydraulic pressure, the grinding head and the workpiece surface are in stable contact, preventing the grinding head and the workpiece surface from vibrating and affecting the grinding effect on the workpiece surface. Thus, high rigidity, high precision heavy-load constant force grinding and polishing are achieved.
[0212] Preferably, the grinding head uses constant force grinding during the process of grinding the surface of the workpiece.
[0213] The grinding process parameters are guaranteed to be stable, the grinding removal amount is controllable, and the surface roughness after grinding is constant, so as to obtain good surface forming quality.
[0214] Preferably, the execution end of the grinding equipment is closed-loop controlled, and the closed-loop control is used to ensure the constant force of the end. The floating position of the floating axis of the end can be collected in real time to ensure the final forming accuracy of the weld grinding.
[0215] Although the disclosure is disclosed as above, the protection scope of the disclosure is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the disclosure, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A weld grinding method based on laser vision, characterized in that: include: Collect the images of the weld and the workpiece surfaces on both sides scanned by line laser and generate point cloud information; Segmenting the weld point cloud based on the sudden change in slope of each line of the laser point cloud in the point cloud information; Based on the weld point cloud, setting a grinding path along the weld; Making the execution end of the grinding device grind the surface of the workpiece along the grinding path; Wherein, the line length direction of the line laser is arranged to intersect with the extension direction of the weld.
2. The weld grinding method according to claim 1, characterized in that: Collecting images of the weld and the workpiece surfaces on both sides irradiated by the line laser and generating point cloud information includes: Calibrate the end tool center point of the execution end; Changing different postures of the mechanical arm of the grinding device and using the laser camera at the execution end to take corresponding photos at multiple different angles; Based on the plurality of the photos, the hand-eye conversion matrix of the laser camera is obtained. Setting the starting point and the end point of the laser camera to capture the weld and the workpiece surfaces on both sides thereof; The execution end moves along the weld from the starting point to the end point, and the laser camera is used to collect the current position P of the center point of the end tool in real time. tcp ; The point cloud 3D reconstruction formula is used to calculate the position of the point cloud information in the base coordinate system. The point cloud 3D reconstruction formula is: Among them, P base is the position of the point cloud information in the base coordinate system, P L is the point cloud position of the weld and the workpiece surfaces on both sides thereof collected by the laser camera, is the hand-eye conversion matrix of the laser camera, is based on the current position P tcp The calculated transformation matrix between the end tool center point and the base coordinate system.
3. The weld grinding method according to claim 1, characterized in that: Based on the sudden change of the point cloud slope of the line laser in the point cloud information, before the weld point cloud is segmented, the following steps are included: Performing outlier filtering processing on the point cloud information includes: A spatial spherical neighborhood range is set for each point in the point cloud information, and the radius of the spatial spherical neighborhood range is L R , the number of points in the spherical space of the i-th point in the point cloud information is n i ; Using the average distance formula, the average distance d is calculated for each point in the point cloud information. Ri and standard deviation σ Ri , the average distance formula is: Among them, d Ri represents the average distance of the i-th point in the point cloud information, (x ij ,y ij , z ij ) represents the spatial coordinates of the jth point in the spherical space of the i-th point in the point cloud information, (x i ,y i , z i ) represents the spatial coordinates of the i-th point in the point cloud information; The standard deviation formula is used to calculate the standard deviation of the i-th point in the point cloud information. The standard deviation formula is: Among them, σ Ri represents the standard deviation of the i-th point in the point cloud information, d Rij represents the distance between the i-th point in the point cloud information and the j-th point in the spherical space; Set the average distance threshold d RT and the threshold value of the standard deviation σ RT , when d Ri >d RT And σ Ri >σ RT When , the i-th point is judged as an outlier; The outliers are removed.
4. The weld grinding method according to claim 1, characterized in that: Based on the sudden change in slope of each line of the laser point cloud in the point cloud information, segmenting the weld point cloud includes: Step 1: Based on the point cloud information, calculate the slope of the workpiece surface on both sides of the weld in a single line laser point cloud and the slopes of multiple point clouds at the weld; Step 2: Based on the slopes of the workpiece surfaces on both sides of the weld and the slopes of multiple point clouds at the weld, edge points on both sides of the width of the weld in a single line laser point cloud are calculated; Step 3: Segment the weld point cloud in the single line laser point cloud based on the edge points on both sides of the width of the weld in the single line laser point cloud; Step 4: Repeat steps 1 to 3 for each line laser point cloud in the point cloud information to segment the weld point cloud.
5. The weld grinding method according to claim 4, characterized in that: Step 1, based on the point cloud information, calculating the slope of the workpiece surface on both sides of the weld in a single line laser point cloud and the slope of multiple point clouds at the weld, including: Sort the point clouds in the single line laser point cloud along the width direction of the weld, and record the total number of point clouds in the single line laser point cloud as n P ; The number of point clouds used to evaluate the surface slope of the workpiece on both sides of the weld in the single line laser point cloud is set to n. b ; The workpieces on both sides of the weld are two substrates, and the slopes of the workpieces on both sides of the weld are calculated using the first slope formula: Wherein, k1 is the slope of one of the two substrates, k2 is the slope of the other of the two substrates, and x i is the coordinate of the i-th point cloud in the single line laser point cloud along the width direction of the weld, z i is the vertical coordinate of the i-th point cloud in the single line laser point cloud; The number of point clouds in the single line laser point cloud used to evaluate the slope of the multiple point clouds at the weld is set to n w , use the second slope formula to evaluate n w The slope k of the point cloud j , the second slope formula is: Among them, 1≤j≤n P -2*n b , Floor means rounding down, and j is from 1 to n. P -2*n b Calculate n w The slope k of the point cloud j .
6. The weld grinding method according to claim 5, characterized in that: Step 2, based on the slope of the workpiece surface on both sides of the weld and the slope of multiple point clouds at the weld, calculating the edge points on both sides of the width of the weld in a single line laser point cloud includes: Step 2.1, set the initial angle threshold of one side of the workpiece on both sides of the weld to θ T1 , and θ T1 The descent gradient is Δθ; Step 2.2, calculate n in sequence w The slope k of the point cloud j The angle θ with k1 1j , and with the angle threshold θ T1 For comparison, and in θ 1j >θ T1 When j in step 1 is marked as j k1 , calculate the angle θ 1j The formula is: Among them, the calculation of j in step 1 starts from 1 and ends at n P -2*n b ; Step 2.3: If j in step 1 increases from 1 to n P -2*n b None of them obtained θ 1j >θ T1 , then let θ T1 =θ T1 -Δθ, and repeat step 2.2 until θ 1j >θ T1 When j in step 1 is marked as j k1 , end the calculation; Step 2.4: Set the initial angle threshold of the other side of the workpiece on both sides of the weld to θ T2 , and θ T2 The descent gradient is also Δθ, which is the θ in step 2.2 and step 2.
3. T1 Replace with θ T2 Repeat steps 2.2 and 2.3 until θ is calculated. 2j >θ T2 , and record that j in step 1 is j k2 , end the calculation; Step 2.5: Segment the weld point cloud P W , sort the single line laser point cloud along the width direction of the weld and record it as P SL , extract the point cloud sequence P SL Sort by n b +j k1 to n b +j k2 The point cloud is the weld point cloud P W , P w =[P SL (n b +j k1 ),P SL (n b +j k1 +1),…P SL (n b +j k2 )], Among them, P SL (n b +j k1 ) indicates that in the point cloud sequence P SL The nth b +j k1 A point cloud.
7. The weld grinding method according to claim 6, characterized in that: Based on the weld point cloud, setting a grinding path along the weld includes: Based on the weld point cloud, the coordinate point P of the grinding path is generated. mi (x mi ,y mi , z mi ), where 1≤i≤p, p is the number of line laser point clouds captured by the laser camera, P mi is the midpoint coordinate of the weld point cloud segment segmented from the i-th line laser point cloud, P mi The calculation formula is as follows: Among them, P SLi (n b +j k1 ) and P SLi (n b +j k2 ) respectively represent the coordinates of the edge points at both ends of the weld point cloud segment segmented from the i-th line laser point cloud; Calculate the coordinate point P for each line laser point cloud in turn mi , and save the calculation results in the matrix MatB, MatB=[P m1 ,P m2 ,P m3 ,…,P mp ], Among them, MatB is a matrix of size p*3, each row contains the corresponding coordinate point P mi (x mi ,y mi , z mi ); Using B-spline interpolation, a matrix MatB of the coordinate points of the polishing path obtained by calculation is used to generate a smooth curve; Calculating the normal direction at each point of the smooth curve; The polishing path is generated based on the smooth curve and the normal direction at each point thereof.
8. The weld grinding method according to claim 7, characterized in that: Using B-spline interpolation, the matrix MatB of the coordinate points of the polishing path obtained by calculation is used to generate a smooth curve, including: Interpolate n between two adjacent points in the matrix MatB B points; In each adjacent subinterval [P mk , P m(k+1) ], construct the cubic B-spline interpolation function S k (P m ), S k (P m )=a k +b k (P m -P mk )+c k (P m -P mk ) 2 +d k (P m -P mk ) 3 , Among them, 1≤k≤p-1, a k , b k , c k , d k They are the interpolation functions S k (P m ) and solve the interpolation function S for each adjacent point k (P m ) k , b k , c k , d k ; Interpolate the coordinates of the points that do not have adjacent points, and save the interpolated results in the matrix MatC. in, Indicates that [P m1 , P m2 ] B points, the matrix MatC is a (p+(p-1)*n B )*3, change the naming method of the matrix in MatC: in, Corresponding to The value of represents the coordinate position of the point set after interpolation; Calculating the normal direction at each point of the smooth curve includes: For the interpolation function S k (P m ) Solve for the first-order derivative and calculate the slope S of the tangent line at each point k ′(P m ): S k ′(P m )=b k +2c k (P m -P mk )+3d k (P m -P mk ) 2 , Among them, 1≤k≤p-1; Calculate normal direction Among them, 1≤i≤(p+(p-1)*n B ); Solve the normal direction of each point of the matrix MatC in turn, and convert the calculated normal direction V i Saved in the matrix MatD, Among them, the matrix MatD is a (p+(p-1)*n B )*3 matrix; Based on the smooth curve and the normal direction at each point thereof, generating the grinding path comprises: The matrix MatC and the matrix MatD are combined to generate the matrix MatP of the grinding path, and the combination method is as follows: Wherein, the matrix MatP is a (p+(p-1)*n B )*6 matrix.
9. The weld grinding method according to claim 7, characterized in that: After the execution end of the grinding device grinds the surface of the workpiece along the grinding path, the method further comprises: Repeat the steps of collecting images of the weld and the surfaces of the workpieces on both sides thereof scanned by a line laser and generating point cloud information, and segmenting the weld point cloud based on a sudden change in the slope of each line laser point cloud in the point cloud information; If the residual height of the weld point cloud relative to the workpiece surfaces on both sides is higher than the set height value, the step of causing the execution end of the grinding device to grind the workpiece surface along the grinding path is repeated.
10. A grinding device, characterized in that: The grinding equipment is used to perform the weld grinding method described in any one of claims 1 to 9, and the grinding equipment includes a robotic arm and a grinding head, wherein the grinding head is a hydraulically controlled floating grinding head, and the grinding head is connected to the robotic arm.
Citation Information
Patent Citations
Robot vision guiding method and device based on integration of global vision and local vision
CN111216124A
Weld joint recognizing and positioning method and device for weld joint grinding
CN111993200A
Robot weld joint polishing algorithm based on feature point recognition
CN112288707A
Method for measuring surplus height of circumferential weld of pull welding part and generating polishing track
CN114633262A
Top cover brazing self-adaptive grinding method based on 3D line laser visual guidance
CN115592501A
Cited By
Method and device for determining polishing path of welding seam and polishing system of welding seam
CN119036242A
Weld joint breakpoint marking method and device, electronic equipment and readable storage medium
CN119150195A
Polishing track automatic generation method, medium and equipment
CN119887821A
Dovetail welding seam automatic grinding control method based on robot visual positioning
CN120619979A
