Real-time welding seam tracking method and system based on 3D point cloud
Through the real-time weld tracking method based on 3D point cloud, using line structure light and improved B-spline fitting technology, the problems of inaccurate weld recognition and non-smooth path generation during welding are solved, achieving high precision and efficient Welding operation, suitable for complex weld shapes and dynamic welding environments.
Patent Information
- Application Number
- CN202411146561.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-20
AI Technical Summary
The existing weld tracking method during welding process is affected by factors such as welding deformation and sensor stability, and the path fitting is not smooth enough, resulting in robot speed fluctuations and unstable welding quality. .
Using a real-time weld tracking method based on 3D point cloud, point cloud data is obtained through linear structured light, weld feature points are identified, and abnormal points are processed using improved B-spline fitting and sliding windows to generate smooth motion paths, combined with hand and eye Calibration and statistics principles, automatically determine the starting point and end point of welding to realize real-time trajectory planning.
It improves the smoothness and accuracy of the welding path, reduces welding defects, improves welding efficiency and automation, ensures the continuity and accuracy of the welding process, and is suitable for complex weld shapes and dynamic welding environments.
Smart Images

Figure CN118875432A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to but is not limited to the field of weld tracking technology, and in particular relates to a real-time weld tracking method and system based on 3D point cloud. Background Art
[0002] As an indispensable and important process in the manufacturing industry, welding plays a key role in improving product quality, reducing production costs and improving production efficiency. With the continuous development of industrial informatization and intelligence, welding technology is also gradually evolving towards intelligence and automation. Welding robots have gradually become the mainstream tool to replace manual welding due to their high precision, stability and efficiency. In order to adapt to the complex environmental changes in the welding process, such as assembly processing errors and welding deformation, and to further improve the welding quality, the intelligent welding robot system has become one of the current research hotspots.
[0003] Since visual measurement sensors have the advantages of non-contact, high speed and high precision, they are widely used in weld tracking systems. At present, welding robots widely use two-dimensional visual sensors for weld identification and tracking. Although they perform well in simple weld tracking tasks, the limitations of two-dimensional visual sensors gradually emerge when processing complex three-dimensional weld trajectories. Two-dimensional sensors are difficult to provide sufficient depth information and spatial resolution, which affects the accuracy and stability of weld identification and tracking. Line structured light cameras reconstruct three-dimensional point cloud data of the welding environment by projecting light onto the welding workpiece and using the camera to capture the deformed light image. It can not only provide accurate three-dimensional position and shape information of the weld, but also has strong anti-interference ability and adaptability. Therefore, line structured light has received widespread attention in the field of weld tracking.
[0004] Real-time and stable tracking control is the key to efficient and accurate weld tracking. Existing weld tracking methods often scan and process the workpiece before welding to obtain the weld trajectory. Due to the deformation factors that occur during welding, the actual weld is often different from the weld before welding, resulting in errors in weld tracking, affecting the quality of weld formation, and the process is complicated. Moreover, since the weld feature points are obtained in real time, the path fitting is often performed in segments, and the fitting curve connections at the segment endpoints are often not smooth enough, resulting in robot speed fluctuations. Due to factors such as arc light and sensor stability, the feature points obtained often have abnormal points, resulting in inaccurate fitting paths and errors in autonomously determining the start and end points of the weld. Therefore, a comprehensive and accurate weld tracking method and system is needed in this field.
[0005] Through the above analysis, the problems and defects of the prior art are as follows:
[0006] Existing weld tracking methods often scan and process the workpiece before welding to obtain the weld trajectory. Due to the deformation factors that occur during welding, the actual weld is often different from the weld before welding, resulting in errors in weld tracking, affecting the quality of weld formation, and the process is complicated. In addition, since the weld feature points are obtained in real time, the path fitting is often performed in segments, and the fitting curve connection at the segment endpoints is often not smooth enough, which causes the robot speed to fluctuate. Summary of the invention
[0007] In view of the problems existing in the prior art, the present invention provides a real-time weld tracking method based on 3D point cloud.
[0008] The technical solution of the present invention is as follows: a real-time weld tracking method based on 3D point cloud, and its specific steps include:
[0009] S1. Select points on the weld to be welded, obtain point cloud data of the points through line structured light, identify weld feature points, and complete the coordinate conversion of weld feature points and robot welding end through hand-eye calibration;
[0010] S2, teach an initial path for weld tracking. When the robot recognizes a weld feature point along the path, this point is defined as the weld starting point. The robot moves to the welding starting point along the welding speed and waits for the welding instruction to start weld tracking.
[0011] S3. Due to the front-end of the line structured light, when the end of the robot reaches the starting point of the weld, the weld feature points in the weld feature point queue are uniformly discretized by improved B-spline fitting to generate smooth and accurate discrete points as the robot's motion path.
[0012] S4. Identification of the weld end point. In the weld feature point queue, considering the influence of recognition error factors, the invalid points and end points appearing in the welding are identified to complete the entire welding task.
[0013] Furthermore, the method for identifying weld feature points using the line structured light camera is as follows:
[0014] First, the point cloud is preprocessed. Some weld external points are removed through straight-through filtering to make the point cloud data more concentrated in the weld area. Then, the point cloud density is reduced through voxel grid filtering. The weld surface is classified through DBSCAN. For weld feature point recognition, different solutions are adopted for different welds, as shown below:
[0015] For butt or V-groove welds, the classified weld surfaces are identified by differential method, and the center point of the weld boundary point is used as the weld feature point;
[0016] For lap welds, the classified weld surfaces are used to identify the welds using the differential method, and the higher weld surface boundaries are used as weld feature points;
[0017] For fillet welds, a straight line is fitted to the classified weld surface, and the intersection of the two straight lines is the weld feature point.
[0018] Further, the specific method of step S1 is:
[0019] The 10-point method is used for hand-eye calibration. First, the position of the robot end effector and the position of the identified feature points are collected at different positions and postures. At each position and posture, the robot end effector position matrix A can be obtained. i And the camera pose matrix B i , we can construct the equation:
[0020] A i X=XB i
[0021]
[0022]
[0023] Where X is a fixed transformation matrix, R X is the rotation matrix, and The translation vectors of the robot end effector and the camera at the i-th position and posture are converted into vector form, t X is the translation vector; R X SVD can be used to solve, t X Use the least squares method to solve.
[0024] Further, the step S2 method:
[0025] Manually teach an initial path and set the required welding parameters. It is necessary to ensure that the structured light can recognize the weld. When the weld feature points are identified, according to statistical principles, when two or more feature points appear consecutively, the first feature point is used as the starting point of the weld.
[0026] Further, the step S3 method:
[0027] The feature points in the weld feature point queue are sequentially fitted with an improved B-spline curve, and the fitting curve is uniformly discretized, and the path point information is fed back to the robot so that it can perform the welding task according to the fitting path;
[0028] The processing of abnormal points is as follows: set a sliding window with a size of N, and the value of N needs to take into account the welding speed, tracking accuracy and real-time performance; calculate the difference between two adjacent feature points in the Y and Z directions, recorded as Y i and Z i, the difference between the point to be determined and its previous feature point is recorded as Y new and Z new , the Z-score method is used to determine whether the difference is an outlier, and the mean and variance of the difference are calculated:
[0029]
[0030]
[0031]
[0032]
[0033] where μ y , μ z is the mean difference between the Y and Z directions, σ y , σ Z is the variance of the difference in the Y and Z directions.
[0034] Then calculate the Z-score of the difference between the discriminant points:
[0035]
[0036]
[0037] When | Z new,y |>T or |Z new,z When |>T, the discrimination point can be identified as an abnormal point, where T is the discrimination value set according to the actual situation.
[0038] Further, the step S4 method:
[0039] A threshold range is set according to the taught weld end point information. When the identified weld feature point reaches this threshold range, when two or more invalid points appear consecutively, the last point is determined to be the weld end point.
[0040] Another object of the present invention is to provide a real-time weld tracking system based on 3D point cloud, comprising:
[0041] The recognition module is used to select points on the weld to be welded, obtain the point cloud data of the points through line structured light, and identify the weld feature points. The coordinate conversion between the weld feature points and the robot welding end is completed through hand-eye calibration;
[0042] Tracking module is used to teach an initial path for weld tracking. When the robot identifies a weld feature point along the path, this point is defined as the weld starting point. It moves to the welding starting point along the welding speed and waits for welding instructions before starting weld tracking.
[0043] The fitting module is used to perform improved B-spline fitting on the weld feature points in the weld feature point queue when the robot end reaches the weld starting point due to the line structured light advance, perform uniform discretization, and generate smooth and equidistant discrete points as the robot's motion path;
[0044] The discrimination module is used to discriminate the end point of the weld. In the weld feature point queue, the invalid points and end points appearing in the welding are discriminated taking into account the influence of the recognition error factors to complete the entire welding task.
[0045] Another object of the present invention is to provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the real-time weld tracking method based on 3D point cloud.
[0046] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to perform the steps of the real-time weld tracking method based on 3D point cloud.
[0047] Another object of the present invention is to provide an information data processing terminal, which is used to implement the real-time weld tracking system based on 3D point cloud.
[0048] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are analyzed from the following aspects:
[0049] First, since the entire weld path planning is generated in real time during welding, the steps of scanning and processing point clouds before welding to obtain the welding path are omitted. In addition, the deformation during welding that causes weld changes and the process parameters can be adaptively adjusted according to the weld state, which can greatly save the time of automated welding and ensure that the weld has a higher forming quality. In the past, the processing of abnormal weld points was often directly removed. In the present invention, a prediction replacement is made for the abnormal points based on the previous weld points, which can improve the accuracy of weld tracking. In the past, weld tracking often ignored the judgment problem of the welding starting point and the end point. When invalid points appear in real-time welding, the problem of misjudgment of the weld end point will occur. For the welding starting point, the previous weld tracking ignored the problem of the robot's posture transformation from the starting position to the starting point. The present invention processes both the starting point and the end point, making the entire weld tracking process more automated, reducing many places that require manual teaching, and proposing a solution to the problem of misjudgment of the weld end point.
[0050] The technical problem to be solved by the present invention is mainly to solve the problem of weld tracking errors caused by arc light, welding deformation and sensor stability. The present invention provides a real-time weld tracking method based on 3D point cloud, which can achieve high-precision weld tracking for curved welds. The present invention only needs to manually teach an initial trajectory, and can automatically reach the starting point and start weld tracking, eliminating the pre-welding scanning process and having high recognition accuracy.
[0051] Second, the main parameters, algorithms and mathematical models of the present invention solve several key problems in the prior art. First, in the hand-eye calibration process, traditional methods are often limited by calibration accuracy and stability. The present invention significantly improves the calibration accuracy and stability by utilizing the 10-point method, combined with the singular value decomposition method (SVD) and the least squares method. This method effectively solves the problem of precise positioning between the robot end effector and the camera, laying a solid foundation for subsequent welding tasks.
[0052] Secondly, in terms of weld starting point identification, the traditional manual teaching method is prone to inaccurate identification and low efficiency. The present invention uses manual teaching of the initial path and statistical principles to use the first feature point as the weld starting point when two or more feature points appear consecutively. This method not only improves the accuracy of weld starting point identification, but also greatly improves the efficiency of welding tasks, ensuring the consistency and reliability of the welding process.
[0053] In addition, the present invention has made significant progress in weld path fitting and outlier processing. The improved B-spline curve is used to fit the weld feature points, and the sliding window is set and the Z-score method is used to process the outliers, which effectively improves the smoothness and accuracy of the welding path. Traditional methods often have problems such as uneven paths and inaccurate outlier identification when processing weld paths. The present invention successfully solves these problems through sophisticated mathematical models and algorithm design, ensuring the high quality of the welding path.
[0054] Finally, in the problem of identifying invalid points and weld end points during welding, the present invention proposes a discrimination method based on a threshold range. When the identified weld feature points reach the set threshold range and two or more invalid points appear continuously, it can be identified as the weld end point. This method effectively solves the problem of invalid feature point identification during welding and ensures the continuity and accuracy of welding tasks. Through these improvements, the present invention has achieved significant technical progress while solving the problems of the prior art, providing strong support for efficient and accurate welding operations.
[0055] Second, the technical solution of the present invention fills the technical gap in the industry at home and abroad: most of the existing weld tracking technologies focus on pre-scanning before welding to obtain weld information and then perform trajectory planning. It is often difficult to predict problems such as weld deformation during welding, which causes welding defects such as welding deviation and leaking. This technology is based on real-time 3D point cloud processing of welds. It can obtain the morphological changes of welds during welding in real time and plan the welding path in real time. Compared with the past, it can greatly reduce the welding defects caused by deformation. Since real-time trajectory planning is real-time, its trajectory is often planned in sections, so it is often discontinuous at the endpoints of each trajectory. The improved B-spline trajectory adopted in this solution ensures the continuity of each real-time trajectory planning endpoint while maintaining the high precision and smoothness of the entire trajectory.
[0056] The technical solution of the present invention solves the technical problem that people have been eager to solve but have never been successful: the traditional robot welding process takes a long time for manual teaching and has high application costs. The three-dimensional information of the weld is obtained based on the 3D point cloud, which can achieve high-precision weld detection and tracking, and eliminate the time for manual teaching, greatly saving costs. Especially for some narrow welds, manual teaching often has large errors. In addition, it is often difficult to make real-time adjustments to the weld position change caused by deformation during the welding process, which affects the quality of the weld formation. The real-time tracking method of this solution is to plan the welding path in real time during welding, and the weld changes that occur during welding can be perceived in real time and corresponding adjustments can be made.
[0057] Third. Technical problems solved by the present invention:
[0058] 1) Inaccurate weld identification:
[0059] In the prior art, the weld recognition accuracy is low, especially in complex weld shapes and welding environments, it is difficult to identify weld feature points, resulting in unstable welding quality.
[0060] The present invention classifies and identifies different types of welds (butt joints, V-grooves, overlap joints, and fillet joints) by combining a line structured light camera with a DBSCAN algorithm and a differential method, thereby improving the recognition accuracy of weld feature points.
[0061] 2) Path generation is not smooth:
[0062] Traditional weld tracking path generation methods are difficult to ensure the smoothness of the path, resulting in unstable movement during robot welding and affecting welding quality.
[0063] The present invention generates a smooth and uniform welding path by improving the B-spline curve fitting and uniform discretization method, thereby ensuring the stable movement of the robot during the welding process.
[0064] 3) Weld seam tracking is not real-time:
[0065] The existing weld tracking methods have high computational complexity and poor real-time performance, making it difficult to accurately track the weld during the dynamic welding process.
[0066] The present invention processes weld feature points in real time through a sliding window and a Z-score method, removes abnormal points, and ensures the real-time and accuracy of weld tracking.
[0067] ###Significant technological advances achieved:
[0068] 1) Improved weld recognition accuracy:
[0069] The line structured light camera combined with the DBSCAN algorithm and the differential method is used to classify and identify different types of welds, which greatly improves the recognition accuracy of weld feature points and ensures the accuracy of the welding path.
[0070] 2) The welding path is smooth and stable:
[0071] By improving the B-spline curve fitting and uniform discretization method, a smooth and uniform welding path is generated to ensure the smooth movement of the robot during the welding process and improve the welding quality.
[0072] 3) Real-time weld tracking:
[0073] The sliding window and Z-score method are used to process weld feature points in real time and eliminate abnormal points to ensure the real-time and accuracy of weld tracking, so that the robot can accurately track the weld during dynamic welding.
[0074] 4) Strong adaptability to multiple types of welds:
[0075] The method of the present invention is applicable to various types of welds (butt joints, V-grooves, overlap joints, and fillet joints), has strong adaptability, and meets the needs of different welding scenarios.
[0076] Through the above embodiments, the real-time weld tracking method based on 3D point cloud of the present invention significantly improves the welding accuracy and efficiency in industrial automatic welding and shipbuilding, solves the problems of inaccurate weld identification, uneven path generation, and non-real-time weld tracking in the prior art, and provides a reliable and efficient solution for related industries. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 It is a flow chart of a real-time weld tracking method based on 3D point cloud provided in an embodiment of the present invention.
[0078] Figure 2 It is a structural block diagram of a real-time weld tracking system based on 3D point cloud provided by an embodiment of the present invention.
[0079] Figure 3It is a hardware structure diagram of the weld tracking system provided by an embodiment of the present invention.
[0080] Figure 4 It is a detailed flow chart of a real-time weld tracking method based on 3D point cloud provided in an embodiment of the present invention.
[0081] Figure 5 This is a diagram of arc weld feature points obtained by simulating a structured light camera according to an example of the present invention.
[0082] Figure 6 It is a fitting curve error diagram of the improved B-spline simulated by the example of the present invention.
[0083] Figure 7 It is a path fitting error diagram of the simulation example of the present invention under a random error of ±0.2 mm.
[0084] Figure 8 It is a welding speed error diagram of the example simulation of the present invention under a random error of ±0.2mm.
[0085] Fig. 9 The improved B-spline curve fitting method of the present invention is DETAILED DESCRIPTION
[0086] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0087] Example 1: Industrial automatic welding
[0088] Industrial automatic welding requires a high-precision, high-stability weld tracking system that is suitable for complex weld shapes and dynamic welding environments.
[0089] 1) Weld identification:
[0090] The weld feature points are identified by a line structured light camera, and the DBSCAN algorithm and differential method are used for classification and identification to improve the recognition accuracy.
[0091] 2) Path generation:
[0092] The improved B-spline curve is used to fit the weld feature points to generate a smooth and uniform welding path to ensure the stability of the welding process.
[0093] 3) Real-time tracking:
[0094] The sliding window and Z-score method are used to process feature points and eliminate abnormal points to ensure the real-time and accuracy of weld tracking.
[0095] Effect:
[0096] - Improve welding quality and efficiency and reduce welding defects.
[0097] -Achieve high-precision automatic welding of complex weld shapes.
[0098] Example 2: Shipbuilding
[0099] During the shipbuilding process, the welding tasks are heavy and the weld shapes are complex, requiring a high-precision weld tracking system.
[0100] 1) Weld identification:
[0101] Use a line structured light camera combined with the DBSCAN algorithm to identify the characteristic points of ship welds and improve recognition accuracy.
[0102] 2) Path generation:
[0103] The improved B-spline curve is used to fit the weld feature points to generate a smooth and uniform welding path to ensure the stability of the welding process.
[0104] 3) Real-time tracking:
[0105] The sliding window and Z-score method are used to process feature points and eliminate abnormal points to ensure the real-time and accuracy of weld tracking.
[0106] Effect:
[0107] - Improve ship welding quality and reduce welding defects.
[0108] -Achieve high-precision automatic welding and improve production efficiency.
[0109] like Figure 1 As shown, a real-time weld tracking method based on 3D point cloud provided by an embodiment of the present invention comprises the following steps:
[0110] S1. Select points on the weld to be welded, obtain the point cloud data of the points through line structured light, identify the weld feature points, and complete the coordinate conversion of the weld feature points and the robot welding end through hand-eye calibration.
[0111] S2. Teach an initial path for weld tracking. When the robot recognizes the weld feature point along the path, this point is defined as the weld starting point. It moves to the welding starting point along the welding speed and waits for the welding instruction before starting weld tracking.
[0112] S3. Due to the line structured light advance, when the end of the robot reaches the starting point of the weld, the weld feature points of the weld feature point queue are uniformly discretized by improved B-spline fitting to generate smooth and equidistant discrete points as the robot's motion path.
[0113] S4. Determination of the weld end point. In the weld feature point queue, considering the influence of factors such as recognition error, the invalid points and end points appearing in the welding are determined to complete the entire welding task.
[0114] Prioritize the specific principle of using a line structured light camera to identify weld feature points as follows: first pre-process the point cloud, remove some weld external points through direct filtering, so that the point cloud data is more concentrated in the weld area, and then reduce the point cloud density through voxel grid filtering, and classify the weld surface through DBSCAN. For weld feature point recognition, different welds adopt different solutions, as shown below:
[0115] For butt or V-groove welds, the classified weld surfaces are identified using the differential method, and the center points of the weld boundary points are used as weld feature points.
[0116] For lap welds, the classified weld surfaces are identified using the differential method, and the higher weld surface boundaries are used as weld feature points.
[0117] For fillet welds, a straight line is fitted to the classified weld surface, and the intersection of the two straight lines is the weld feature point.
[0118] Preferably, the implementation principle of step S1 is as follows: use the 10-point method to perform hand-eye calibration. First, the position of the robot end effector and the position of the identified feature points are collected at different positions and postures. At each position and posture, we can obtain the robot end effector pose matrix A i And the camera pose matrix B i , we can construct the equation:
[0119] A i X=XB i
[0120]
[0121]
[0122] Where X is a fixed transformation matrix, R X is the rotation matrix, and The translation vectors of the robot end effector and the camera at the i-th position and posture are converted into vector form, t X is the translation vector. X SVD can be used to solve, t X Use the least squares method to solve.
[0123] Preferably, the implementation principle of step S2 is specifically as follows: manually teach an initial path and set the required welding parameters, etc., wherein it is necessary to ensure that the structured light can recognize the weld. When the weld feature points are identified, according to statistical principles, when two or more feature points appear consecutively, the first feature point is used as the starting point of the weld.
[0124] Preferably, the implementation principle of step S3 is as follows: first, the starting point and the end point of the weld are judged, and a sliding window of size 4 is made for the weld feature point queue acquired in real time by the line structured light, such as Fig. 9 As shown in the figure, the characteristic points in the sliding window are taken out, the control points required for the improved B-spline are added to the two middle points, and the improved B-spline is fitted to the 6 points. The fitting curve should just pass through the two characteristic points, and the fitting curve is uniformly discretized. When there is a starting point or an end point in the sliding window, two repeated points will be added to the starting point or the end point, and the improved B-spline fitting is performed on the 9 points, and uniformly discretized to ensure that the curve passes through the starting point or the end point. The path point information is fed back to the robot so that it can perform the welding task according to the fitting path.
[0125] The processing of abnormal points is as follows: set a sliding window with a size of N. The value of N needs to take into account welding speed, tracking accuracy and real-time performance. Calculate the difference between two adjacent feature points in the Y and Z directions, recorded as Y i and Z i , the difference between the point to be determined and its previous feature point is recorded as Y new and Z new , the Z-score method is used to determine whether the difference is an outlier, and the mean and variance of the difference are calculated:
[0126]
[0127]
[0128]
[0129]
[0130] Then calculate the Z-score of the difference between the discriminant points:
[0131]
[0132]
[0133] When | Z new,y |>T or |Z new,z When |>T, the discriminant point can be identified as an abnormal point.
[0134] Preferably, the specific implementation principle of step S4 is: due to the problem of invalid feature point recognition during welding, it is necessary to distinguish the invalid points appearing in the middle from the weld end point, so a threshold range is set according to the point information of the taught weld end point. When the identified weld feature point reaches this threshold range, when two or more invalid points appear continuously, the last point is determined to be the weld end point.
[0135] like Figure 2 As shown, another object of the present invention is to provide a real-time weld tracking system based on 3D point cloud, comprising:
[0136] The recognition module is used to select points on the weld to be welded, obtain the point cloud data of the points through line structured light, and identify the weld feature points. The coordinate conversion between the weld feature points and the robot welding end is completed through hand-eye calibration;
[0137] Tracking module is used to teach an initial path for weld tracking. When the robot identifies a weld feature point along the path, this point is defined as the weld starting point. It moves to the welding starting point along the welding speed and waits for welding instructions before starting weld tracking.
[0138] The fitting module is used to perform improved B-spline fitting on the weld feature points in the weld feature point queue when the robot end reaches the weld starting point due to the line structured light advance, perform uniform discretization, and generate smooth and accurate discrete points as the robot's motion path;
[0139] The discrimination module is used to discriminate the end point of the weld. In the weld feature point queue, the invalid points and end points appearing in the welding are discriminated taking into account the influence of the recognition error factors to complete the entire welding task.
[0140] Another object of the present invention is to provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the real-time weld tracking method based on 3D point cloud.
[0141] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to perform the steps of the real-time weld tracking method based on 3D point cloud.
[0142] Another object of the present invention is to provide an information data processing terminal, which is used to implement the real-time weld tracking system based on 3D point cloud.
[0143] The present invention is specifically implemented:
[0144] The present invention provides a weld tracking method based on 3D point cloud. The whole weld tracking method comprises the following steps: Figure 4 As shown, the hardware of the entire weld tracking system includes a robot 1, a structured light sensor 2, a computer 3, an industrial computer 4, and a welding machine 5. Figure 3 As shown;
[0145] The workpiece to be welded is placed under the welding gun; the structured light sensor is placed at the front end of the welding gun and connected to a computer, which reads the point cloud information sent back by the structured light sensor and processes it. The computer is also connected to the robot's industrial computer to facilitate real-time communication with the robot. The industrial computer is responsible for controlling the movement of the robot and the welding parameters of the welding machine.
[0146] Step S1 uses a line structured light camera to obtain weld point cloud information, and a computer processes the point cloud data to obtain weld feature point information. The specific principle is:
[0147] Step S1-1 Select the type of weld to be identified on the computer. Here, we will take the butt weld as an example. Set the upper and lower limits through the straight-through filter. Due to the characteristics of the butt weld, the z range is set to (-0.5, 2) and the y range is set to (-4, 4) to limit the weld point cloud data to an area of interest. This method can significantly reduce the amount of point cloud data, thereby speeding up subsequent processing steps.
[0148] Step S1-2 divides the point cloud data into a number of small three-dimensional grid units (voxels) through voxel grid filtering, and then replaces all points in each voxel with a representative point (such as the centroid) of the point in each voxel, thereby achieving the effect of data downsampling.
[0149] In step S1-3, the point cloud is divided into different clusters according to the point cloud density through the DBSCAN method. Each cluster corresponds to an independent geometric structure, and the two planes of the butt weld are divided. The distance between each point is calculated by the difference method. According to the set threshold of 0.5, the weld area of the butt weld can be identified, and the boundary points of the two divided surfaces are obtained. The center point of the two boundary points is calculated as the weld feature point.
[0150] Step S2 calibrates the weld feature points and the welding gun through the 10-point method. First, a weld point is selected on the weld. According to the welding parameters required for welding, such as the focal length of laser welding, the incident angle, etc., the end effector is located at the weld point, and the weld feature points recognized by the camera at different postures at this point are recorded. The transformation matrix of the weld feature points recognized by the end effector and the camera is calculated according to the principle of the 10-point method and recorded.
[0151] Step S3 manually teaches an initial trajectory. It is necessary to ensure that the camera can identify the weld feature points when the robot moves along the trajectory. The end point is near the end point of the weld. The robot moves along the taught path. When the camera identifies the weld feature points and two or more feature points appear continuously in the feature point queue, the robot runs to the starting point of the weld at the welding speed.
[0152] In step S4, due to the pre-positioning of line structured light, there are K feature point values in the weld feature point column, where K is the quotient of the pre-position distance divided by the period of line structured light acquisition of point cloud data. Due to the continuity of the B-spline curve, the feature points can be segmented, and the number of segmented feature points is α*K, where α depends on the welding speed and the period of acquiring point cloud. The fitted improved B-spline is uniformly discretized, and the discrete number is m*α*K, where m is the quotient of the period of acquiring point cloud and the period of robot motion, and the discretized point information is transmitted to the robot industrial computer, so that the robot welds along the path.
[0153] Step S5 is for determining the end point of the weld. Since the problem of invalid feature point recognition occurs during welding, it is necessary to distinguish the invalid points that appear in the middle from the weld end point. Therefore, a threshold range is set according to the point position information of the taught weld end point. When the identified weld feature point reaches this threshold range, when two or more invalid points appear continuously, the last point is determined to be the weld end point.
[0154] The processing of weld abnormal points is as follows: set a sliding window with a size of N. The value of N needs to take into account welding speed, tracking accuracy and real-time performance. Calculate the difference between two adjacent feature points in the Y and Z directions, recorded as Y i and Z i , the difference between the point to be determined and its previous feature point is recorded as Y new and Z new , the Z-score method is used to determine whether the difference is an outlier, and the mean and variance of the difference are calculated:
[0155]
[0156]
[0157]
[0158]
[0159] Then calculate the Z-score of the difference between the discriminant points:
[0160]
[0161]
[0162] When | Z new,y |>3 or |Z new,z When |>3, the discriminant point can be identified as an abnormal point.
[0163] After determining the abnormal point, a point will be fitted to replace the abnormal point based on the mean and variance calculated in the sliding window to avoid the problem of welding speed change due to the increase in point distance caused by fewer points during subsequent uniform discretization.
[0164] Step S6, the welding task is completed and the robot returns to a safe position.
[0165] Application Example 1: Industrial Robot Welding System
[0166] In industrial manufacturing, welding is a key process. Traditional welding operations usually rely on manual operation or simple automation systems, which are easily affected by the worker's skill level and welding environment, resulting in unstable welding quality. The present invention proposes a welding system based on robots and intelligent algorithms, which can achieve high-quality automated welding in complex welding environments.
[0167] 1) Hand-eye calibration:
[0168] The 10-point method is used to perform hand-eye calibration in different positions and postures.
[0169] The position of the robot end effector and the corresponding feature point positions are collected to obtain the pose matrix.
[0170] The fixed transformation matrix is solved by SVD and least squares method to ensure high-precision calibration.
[0171] 2) Path teaching:
[0172] Manually teach the initial welding path and set welding parameters to ensure that the structured light can identify the weld.
[0173] According to statistical principles, when two or more characteristic points appear consecutively, the first characteristic point is taken as the starting point of the weld.
[0174] 3) Path fitting:
[0175] The improved B-spline curve is used to fit the characteristic points of the weld and the fitting curve is evenly discretized.
[0176] The path point information is fed back to the robot so that it can perform welding tasks according to the fitted path.
[0177] Set a sliding window and use the Z-score method to handle outliers to ensure path smoothness and accuracy.
[0178] 4) End point determination:
[0179] Set the threshold range according to the taught weld end point information.
[0180] When the identified weld feature points reach the threshold range and two or more invalid points appear consecutively, the weld end point is determined.
[0181] Through the above steps, the present invention realizes high-precision hand-eye calibration, efficient path teaching and fitting, and accurate endpoint judgment in industrial robot welding, which significantly improves welding quality and efficiency.
[0182] Application Example 2: Bridge Steel Structure Welding System
[0183] The welding of bridge steel structures requires high precision and high reliability. Traditional welding methods are difficult to meet the welding requirements of complex structures. The intelligent welding system proposed in this invention can achieve high-quality automated welding in complex bridge steel structures, ensuring the structural strength and durability of the bridge.
[0184] 1) Hand-eye calibration:
[0185] The 10-point method is used for hand-eye calibration to collect the pose matrix of the robot end effector and camera.
[0186] The fixed transformation matrix is solved by SVD and least squares method to ensure high-precision calibration.
[0187] 2) Path teaching:
[0188] Manually teach the initial welding path and set welding parameters to ensure that the structured light can identify the weld.
[0189] According to statistical principles, when two or more characteristic points appear consecutively, the first characteristic point is taken as the starting point of the weld.
[0190] 3) Path fitting:
[0191] The improved B-spline curve is used to fit the characteristic points of the weld and the fitting curve is evenly discretized.
[0192] The path point information is fed back to the robot so that it can perform welding tasks according to the fitted path.
[0193] Set a sliding window and use the Z-score method to handle outliers to ensure path smoothness and accuracy.
[0194] 4) End point determination:
[0195] Set the threshold range according to the taught weld end point information.
[0196] When the identified weld feature points reach the threshold range and two or more invalid points appear consecutively, the weld end point is determined.
[0197] In the welding of bridge steel structures, the present invention ensures high quality and high reliability of welding through high-precision hand-eye calibration, intelligent path teaching and fitting, and accurate endpoint judgment, providing a strong guarantee for the safety and durability of bridge steel structures.
[0198] These two embodiments demonstrate the specific operating steps and significant technical progress of the present invention in different application scenarios, and effectively solve multiple key problems in the prior art.
[0199] The relevant evidence of the technical effects obtained by the embodiments of the present invention is as follows:
[0200] The present invention simulates the sampling characteristics of the structured light camera and uses MATLAB to sample a 1 / 6 arc with a radius of 400 mm. The simulated welding speed is 50 mm / s, the sampling period is 40 ms, the robot movement period is 4 ms, and a sampling point is taken every 2 mm. Figure 5 As shown, for the sake of clarity, every 10 points are shown as a feature point and recorded in the feature point queue.
[0201] First, the improved B-spline interpolation is directly performed on the feature points, and the obtained x-coordinates of the discrete points are brought into the arc curve. The error between the discrete points and the y-coordinates of the corresponding actual arc points is calculated and regarded as the theoretical error of the curve. Figure 6 As shown, the theoretical error between the discrete points on the curve and the actual arc is within ±1×10^-9.
[0202] Considering that there will be recognition errors and manual hand-eye calibration errors in the actual welding process, the points of the arc curve are randomly fluctuated by ±0.2mm, and the above method is used for fitting discretization to calculate the error between the discrete points and the actual points of the arc curve under the same x coordinate, and the speed error is calculated at the same time. Figure 7 It can be seen that under the condition of 0.2mm feature point error, the maximum actual error of the fitting position is 0.2181mm, and the calculated average error is 0.09mm. Figure 8 It can be seen that the maximum speed error of the actual movement speed is 0.6371mm / s compared with the theoretical speed of 50mm / s, and the calculated average speed error is 0.082mm / s, which can meet the welding requirements. The entire arc trajectory fitting time is 117ms. Since the movement and trajectory fitting are carried out simultaneously in real-time welding, and the curve fitting is performed before the robot moves, the real-time performance can also meet the welding requirements.
[0203] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0204] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A real-time weld tracking method based on 3D point cloud, It is characterized in that The following steps are involved: S1. Select points on the weld to be welded, obtain point cloud data of the points through line structured light, identify weld feature points, and complete the coordinate conversion of weld feature points and robot welding end through hand-eye calibration; S2, teach an initial path for weld tracking. When the robot recognizes a weld feature point along the path, this point is defined as the weld starting point. The robot moves to the welding starting point along the welding speed and waits for the welding instruction to start weld tracking. S3. Due to the front-end of the line structured light, when the end of the robot reaches the starting point of the weld, the weld feature points in the weld feature point queue are uniformly discretized by improved B-spline fitting to generate smooth and accurate discrete points as the robot's motion path. S4. Identification of the weld end point. In the weld feature point queue, considering the influence of recognition error factors, the invalid points and end points appearing in the welding are identified to complete the entire welding task.
2. The real-time weld tracking method based on 3D point cloud as claimed in claim 1, It is characterized in that The method for identifying weld feature points with the line structured light camera: First, the point cloud is preprocessed. Some weld external points are removed through straight-through filtering to make the point cloud data more concentrated in the weld area. Then, the point cloud density is reduced through voxel grid filtering. The weld surface is classified through DBSCAN. For weld feature point recognition, different solutions are adopted for different welds, as shown below: For butt or V-groove welds, the classified weld surfaces are identified by differential method, and the center point of the weld boundary point is used as the weld feature point; For lap welds, the classified weld surfaces are used to identify the welds using the differential method, and the higher weld surface boundaries are used as weld feature points; For fillet welds, a straight line is fitted to the classified weld surface, and the intersection of the two straight lines is the weld feature point.
3. The real-time weld tracking method based on 3D point cloud as claimed in claim 1, It is characterized in that The specific method of step S1 is as follows: The 10-point method is used for hand-eye calibration. First, the position of the robot end effector and the position of the identified feature points are collected at different positions and postures. At each position and posture, the robot end effector position matrix A can be obtained. i and the camera pose matrix B i , we can construct the equation: A i X=XB i Where X is a fixed transformation matrix, R X is the rotation matrix, and The translation vectors of the robot end effector and the camera at the i-th position and posture are converted into vector form, t X is the translation vector; R X SVD can be used to solve, t X Use the least squares method to solve.
4. The real-time weld seam tracking method based on 3D point cloud as claimed in claim 1, It is characterized in that The step S2 method: Manually teach an initial path and set the required welding parameters. It is necessary to ensure that the structured light can recognize the weld. When the weld feature points are identified, according to statistical principles, when two or more feature points appear consecutively, the first feature point is used as the starting point of the weld.
5. The real-time weld seam tracking method based on 3D point cloud as claimed in claim 1, It is characterized in that The step S3 method: The feature points in the weld feature point queue are fitted with an improved B-spline curve, and the fitting curve is evenly discretized, and the path point information is fed back to the robot so that it can perform the welding task according to the fitting path; The processing of abnormal points is as follows: set a sliding window with a size of N, and the value of N needs to take into account the welding speed, tracking accuracy and real-time performance; calculate the difference between two adjacent feature points in the Y and Z directions, recorded as Y i and Z i , the difference between the point to be determined and its previous feature point is recorded as Y new and Z new , the Z-score method is used to determine whether the difference is an outlier, and the mean and variance of the difference are calculated: Then calculate the Z-score of the difference between the discriminant points: When | Z new,y |>T or |Z new,z When |>T, the discriminant point can be identified as an abnormal point.
6. The real-time weld seam tracking method based on 3D point cloud as claimed in claim 1, It is characterized in that The step S4 method: A threshold range is set according to the taught weld end point information. When the identified weld feature point reaches this threshold range, when two or more invalid points appear consecutively, the last point is determined to be the weld end point.
7. A real-time weld tracking system based on 3D point cloud for implementing the real-time weld tracking method based on 3D point cloud as claimed in any one of claims 1 to 6, It is characterized in that The real-time weld tracking system based on 3D point cloud includes: The recognition module is used to select points on the weld to be welded, obtain the point cloud data of the points through line structured light, and identify the weld feature points. The coordinate conversion between the weld feature points and the robot welding end is completed through hand-eye calibration; Tracking module is used to teach an initial path for weld tracking. When the robot recognizes a weld feature point along the path, this point is defined as the weld starting point. It moves to the welding starting point along the welding speed and waits for welding instructions before starting weld tracking. The fitting module is used to perform improved B-spline fitting on the weld feature points in the weld feature point queue when the robot end reaches the weld starting point due to the line structured light advance, perform uniform discretization, and generate smooth and accurate discrete points as the robot's motion path; The discrimination module is used to discriminate the end point of the weld. In the weld feature point queue, the invalid points and end points appearing in the welding are discriminated taking into account the influence of the recognition error factors to complete the entire welding task.
8. A computer device, It is characterized in that The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the real-time weld tracking method based on 3D point cloud as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the real-time weld tracking method based on 3D point cloud as claimed in any one of claims 1 to 6.
10. An information data processing terminal, It is characterized in that The information data processing terminal is used to implement the real-time weld tracking system based on 3D point cloud as described in claim 7.
Citation Information
Patent Citations
Curve welding seam welding technology based on line structured light
CN106425181A
Welding deformation self-adaptive linear welding seam polishing track generation method and device
CN115358965A
Welding seam extracting and fitting method based on 3D point cloud
CN116542914A
Welding seam tracking method and system based on 3D point cloud
CN117161644A
The Control Method of a Robot Tracking Orientationsfor a Arc-welding Seam
KR1020050009096A
Cited By
Three-convex-surface structure identification filtering method, computer equipment and readable storage medium
CN122391227A
Planning a processing path using laser sensors
WO2026170368A1
