Welding robot dragging teaching welding method based on linear structured light
By dragging and teaching the welding method through a welding robot based on line structured light, using line laser sensors to obtain the three-dimensional information of the workpiece and weld characteristics, and adaptively adjusting the welding parameters, it solves the problems of low efficiency and unstable quality of traditional welding programming, and achieves Efficient and adaptable welding operations.
Patent Information
- Application Number
- CN202411112212.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-01
AI Technical Summary
In current factory applications of welding robots, the traditional teaching programming method requires independent programming for each workpiece, resulting in high welding costs, low efficiency, and inability to guarantee welding quality, especially when there are many types of workpieces, small batches, large sizes, and low processing accuracy. situation.
The welding robot dragging and teaching welding method based on line structured light is used to obtain the three-dimensional point cloud information of the workpiece through the line laser sensor, extract the weld position and morphological features, use the attitude matching algorithm to plan the welding trajectory, and adaptively adjust the welding parameters. Generate robot control instructions for autonomous welding.
It improves welding efficiency and adaptability, adapts to the automatic welding needs of unstructured workpieces, reduces costs, enhances welding quality and competitiveness, and avoids the shortcomings of the traditional teaching mode.
Smart Images

Figure CN118720504A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a dragging teaching welding method for a welding robot based on line structured light Background Art
[0002] With the development of the field of intelligent manufacturing and the important role of welding operations in industrial production, intelligent welding technology has become the mainstream content of current industrial automation research and development. At present, domestic welding is still mainly done by manual operations. This welding operation mode, which relies heavily on the technical experience of practitioners, has led to huge differences in the products produced by different practitioners and cannot meet the requirements of standardized production. At the same time, due to the current reduction in the number of welding technology practitioners and the increase in current labor costs, the cost of welding processing has increased. Realizing welding automation production and reducing production costs have become the mainstream needs of most companies at present. Facing the current welding industry environment, in today's manufacturing and processing fields, welding robots have been widely used due to their high efficiency and universality, effectively reducing the labor costs of enterprises, improving the production efficiency of enterprises, and injecting new vitality into the high-quality development of the economy.
[0003] However, in the current factory application of welding robots, most processing companies use welding robots based on the "teach-reproduce" mode for assembly line production. In this mode, the robot needs to be programmed in advance to determine the welding path and parameters, and then weld the workpieces of fixed fixtures according to the preset program. However, the actual situation is more complicated: there are many types of workpieces, small batches, large sizes, and low processing accuracy. This requires the traditional teaching programming method to program each workpiece independently, which increases welding costs, reduces efficiency, and cannot guarantee welding quality.
[0004] Therefore, realizing autonomous and adaptive operation of robot welding has become a necessary means to improve the quality, efficiency and competitiveness of enterprise welding products, and has important value. In this context, the dragging teaching operation method of welding robot based on line structured light came into being. Summary of the invention
[0005] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some embodiments. The purpose of the abstract and the invention title in this section and the present application is not to be ambiguous, and such simplification or omission cannot be used to limit the scope of the present invention.
[0006] In view of the above problems, the present invention proposes a dragging and teaching welding method for a welding robot based on line structured light. The three-dimensional point cloud information of the workpiece is obtained by the dragging and scanning method. The weld position, morphology and other characteristics are obtained by processing the data of the line laser sensor. The welding trajectory is planned using the weld position and morphology characteristics, and the robot welding posture at the laser weld position is obtained by the posture matching algorithm. The welding current, speed and other parameters are adaptively adjusted based on the weld morphology characteristics. Finally, the robot control command is generated and sent to the robot controller through the communication protocol to execute and start welding.
[0007] The technical solution adopted by the present invention to solve the technical problem is: a welding robot dragging teaching welding method based on line structured light, which is aimed at the hardware equipment in the use system including a six-degree-of-freedom collaborative welding robot with a computer programming control interface, a matching robot welding gun and welding machine system, a line laser sensor, and a computer (system). In addition, the main steps are as follows:
[0008] Step 1: Preparation: Complete the calibration of the robot welding gun tool, the robot and the line laser sensor, then create the robot system URDF model file and check the connection between the hardware;
[0009] Step 2: Drag the robotic arm to scan the workpiece to be welded, match the laser data with the robotic arm data, and generate a three-dimensional point cloud of the workpiece to be welded;
[0010] Step 3: According to the three-dimensional point cloud of the workpiece, the position information of the weld is extracted through the PCL point cloud library, the weld morphology characteristics are extracted through a specific algorithm, and the welding trajectory is calculated based on the weld position information and weld morphology characteristics;
[0011] Step 4: Based on the workpiece point cloud model and the welding trajectory target position, the robot singular cost function and joint limit cost function are established. Combined with the robot arm kinematics analytical solution and collision detection algorithm, the optimal welding posture of the robot and the corresponding robot joint angle are solved through intelligent algorithm optimization;
[0012] Step 5: According to the weld position in the model, the robot welding posture under the welding trajectory is obtained through the posture matching algorithm, so as to generate the robot control instruction and send it to the robot controller through the communication protocol to execute and start welding, so as to realize the anti-collision function.
[0013] Furthermore, step two includes: the research object of the present invention is the drag teaching welding problem in the field of industrial welding, and the three-dimensional point cloud image of the weldment is obtained by a line laser scanning method. The point cloud should be under the robot arm base coordinate system to facilitate guiding the robot to subsequently weld the workpiece.
[0014] Furthermore, step three includes: pre-processing such as downsampling the original data of the three-dimensional point cloud of the weld scanned by the line laser sensor. The complete weld morphology is obtained by the line laser sensor, the welding point of the weld groove is accurately identified by the slope mutation method, and the weld width, depth and other characteristics at the current position are calculated, and the coordinate transformation matrix between the laser and the end of the robot arm is determined by laser light plane calibration and laser hand-eye calibration. The identified welding points are calculated to the robot base coordinate system through the laser hand-eye calibration matrix and the inverse kinematics relationship of the robot arm. And the welding trajectory is planned according to the precise weld morphology.
[0015] Furthermore, step five includes: projecting the precise position information scanned by the laser onto the planned trajectory information to obtain the posture information of the current position. At the same time, according to the calculated weld morphology, the welding current, welding speed and other parameters are adaptively adjusted to ensure the accuracy and stability of welding.
[0016] The beneficial effect of the present invention is that a dragging and teaching welding method for a welding robot based on line structured light is proposed, which solves the adaptive welding problem of robot welding in the current industrial processing field, improves the welding efficiency under a certain cost, and according to experiments, can adapt to the needs of some non-structured automatic welding operations with poor processing and assembly precision, improves the adaptability and welding efficiency of robot welding, and eliminates the shortcomings of traditional teaching modes. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0018] Figure 1 It is the work flow chart of the present invention;
[0019] Figure 2 It is a diagram of the components of the system of the present invention;
[0020] Figure 3 This is a diagram showing an example of the installation of a line laser according to the present invention;
[0021] Figure 4 This is a diagram showing an example of dragging and teaching of the present invention;
[0022] Figure 5 A quantitative diagram of the working range of the line laser sensor of the present invention;
[0023] Figure 6 This is the original image of the laser sensor of the present invention;
[0024] Figure 7 Acquiring a characteristic point map for the line laser of the present invention;
[0025] Figure 8 The original waypoint extraction result diagram of the present invention;
[0026] Fig. 9 This is a trajectory processing result diagram of the present invention;
[0027] Fig.10 It is the welding posture interpolation diagram of the present invention;
[0028] Fig.11 This is a schematic diagram of equivalent axis angle calculation posture of the present invention; DETAILED DESCRIPTION
[0029] Reference Figure 1 , Figure 2 , Figure 3 , a welding robot dragging teaching welding method based on line structured light, including the following steps: Step 1: drag the robot arm to scan and obtain the three-dimensional point cloud of the workpiece; Step 2: extract the weld information according to the three-dimensional point cloud, and generate the welding trajectory according to the weld information; Step 3: assign the welding posture according to the equivalent axis angle interpolation algorithm, combine the robot arm kinematics analytical solution and collision detection algorithm to realize the anti-collision function, and adaptively adjust the welding parameters through the weld feature information obtained by the laser. Step 4: The robot moves to the welding starting point and starts welding. In this way, the welding robot completes the adaptive welding of the weld. Figure 2 It is a specific component of this system. The whole system consists of a line laser sensor, a welding robot, a teaching pendant, a robot controller and a computer. Figure 3 This is an example diagram of the installation of the laser and welding gun.
[0030] Reference Figure 4 , Figure 5 , Figure 6 , step 1 includes: the research object of the invention is the drag welding problem in the field of industrial welding, the welding trajectory information can be obtained by the drag scanning method, the workpiece is ensured to be within the working range of the laser during the dragging process, the trajectory should be under the robot base coordinate system, and contain the robot's posture information, which is convenient for guiding the robot to weld the workpiece later.
[0031] Reference Figure 7 , Figure 8 , Fig. 9, step 2 includes: obtaining the complete weld morphology through a line laser sensor, accurately identifying the welding points of the weld groove through the slope mutation method, and calculating the weld width, depth and other characteristics at the current position, and determining the coordinate transformation matrix between the laser and the end of the robotic arm through laser light plane calibration and laser hand-eye calibration. The identified welding points are calculated to the robotic arm base coordinate system through the laser hand-eye calibration matrix and the inverse kinematics relationship of the robotic arm. The specific process of identifying weld feature points by the slope mutation method is as follows: the line laser obtains the original data, and a single linear weld point cloud information is obtained due to the limitation of the line laser principle, and the slope of the point cloud is calculated, as shown in the formula:
[0032]
[0033] For slope curve analysis, the mutation point in the slope curve is taken as the feature point. The feature point is converted to the robot base coordinate system through the hand-eye calibration of the line laser sensor and the robot and the inverse kinematics relationship of the robot. Through the above steps, the feature points are extracted according to the laser data collected in a single time, and the feature points and line laser data are transferred to the robot coordinate system to obtain the complete weld morphology. All feature points constitute the original waypoints. The original waypoints are smoothed, sorted, and interpolated to generate a complete welding path.
[0034] The smoothing, sorting and interpolation methods of the original waypoints are as follows: the original waypoints are projected onto the xoy plane and the xoz plane, and sliding window smoothing and linear least squares fitting are performed on the data of the two planes respectively. The straight line is assumed to be:
[0035] Ax+By+C=0
[0036] The error calculation formula of the fitted straight line is as follows:
[0037]
[0038] To minimize the error formula, we need to find partial derivatives of parameters A and B. The partial derivatives are:
[0039]
[0040] By setting the partial derivatives to zero and rearranging the equation, we can get the best estimates for the parameters A and B:
[0041]
[0042] The fitting result is assigned to the last point of the sliding window by projection, and finally the data on the two planes are merged to obtain a smooth welding path.
[0043] Reference Fig.10 , Fig.11Step 3 includes: performing anti-collision calculation based on the precise point cloud information reconstructed by laser scanning, and interpolating the posture of the waypoints between the feature points based on the robot arm posture at the feature points. At the same time, according to the weld morphology extracted from the point cloud, the welding current, welding speed and other parameters are adaptively adjusted to ensure the accuracy and stability of welding.
[0044] Welding posture interpolation method Fig.10 As shown. The interpolation calculation of the remaining waypoints is performed based on the robot arm posture of the three feature points A, B, and C. The welding posture is calculated based on the length ratio of each waypoint on the line segment formed by the discrete points of the existing trajectory and the principle of equivalent axis angle. The details are as follows:
[0045] For each waypoint extracted from the point cloud information scanned by the line laser, for example, waypoint D falls between feature points A and B. The length of line segment AB is recorded as L, and the length of line segment AD is recorded as L1. Calculate the ratio k between the two:
[0046]
[0047] Initial posture rotation matrix R A , ending posture rotation matrix R B . Calculate the rotation matrix R AB :
[0048]
[0049] Decomposition of the rotation matrix R AB is the rotation axis n and the rotation angle θ:
[0050]
[0051] The rotation axis n is extracted from the antisymmetric part of the rotation matrix. Calculate the rotation angle from A to D:
[0052] θ AD = k * θ
[0053] Calculate the rotation matrix R AC :
[0054] R AC =R A ·Rodrigues(n,θ AD )
[0055] Where Rodrigues is the Rodriguez rotation formula, which is used to generate the rotation angle θ around axis n AD The rotation matrix of .
[0056] Rodriguez rotation formula:
[0057] R=I+sinθK+(1-cosθ)K 2
[0058] Where I is the 3×3 identity matrix, K is the rotation axis n=(n x +n y +n2) to construct an antisymmetric matrix.
[0059] The posture of each waypoint is obtained, and then the weld height, depth and other characteristics are calculated for various welds based on the feature points. The welding current, welding speed and other parameters are adaptively adjusted to ensure the accuracy and stability of welding.
[0060] Experimental verification shows that the drag-and-drop teaching welding method for welding robots based on line structured light can meet the needs of automatic welding operations for some unstructured welding workpieces with poor processing and assembly precision, improves the adaptability and efficiency of robot welding, and eliminates the shortcomings of traditional manual teaching modes.
[0061] The efficiency of welding work on non-structured weldments has been improved to a certain extent. Laser sensors can effectively make up for the problem of large errors in workpiece processing and assembly, and can achieve practical application results.
[0062] The above is only a specific embodiment of the present invention, and cannot be used to limit the scope of the invention. Therefore, the replacement of equivalent components, or equivalent changes and modifications made according to the scope of protection of the patent of the present invention, should still fall within the scope of this patent. In addition, the technical features of the present invention can be freely combined with each other, with each other, and with each other.
Claims
1. A welding robot dragging teaching welding method based on line structured light, characterized in that: The following steps are included: Step 1: Drag the robot arm to scan and obtain the three-dimensional point cloud of the workpiece; Step 2: Extract the weld information based on the three-dimensional point cloud, and generate the welding trajectory based on the weld information; Step 3: Assign the welding posture according to the equivalent axis angle interpolation algorithm, combine the robot arm kinematics analytical solution and collision detection algorithm to realize the anti-collision function, and adaptively adjust the welding parameters through the weld feature information obtained by the laser. Step 4: The robot moves to the welding starting point and starts welding. In this way, the welding robot completes the adaptive welding of the weld.
2. A welding robot dragging teaching welding method based on line structured light according to claim 1 The method is characterized by: Step one includes: the research object of the present invention is the drag welding problem in the field of industrial welding. The welding trajectory information is obtained by manual drag teaching and line laser scanning methods. The trajectory should be in the robot arm base coordinate system and contain the robot's posture information to facilitate guiding the robot to subsequently weld the workpiece.
3. A welding robot dragging teaching welding method based on line structured light according to claim 2 The method is characterized by: The dragging robot arm uses the laser to scan the workpiece to be welded, matches the laser data with the robot arm data, and generates a three-dimensional point cloud of the workpiece to be welded.
4. The dragging teaching welding method for a welding robot based on line structured light according to claim 1 is characterized in that: Step 2 includes: generating a three-dimensional point cloud and extracting weld information based on the line laser scanning results, generating a welding trajectory based on the weld information, and ensuring the accuracy of the trajectory throughout the welding operation.
5. The dragging teaching welding method for a welding robot based on line structured light according to claim 1 is characterized in that: Step three includes: extracting the position information of the weld through the PCL point cloud library based on the three-dimensional point cloud of the workpiece, extracting the weld morphology characteristics through a specific algorithm, and calculating the welding posture based on the weld position information and weld morphology characteristics.
6. The dragging teaching welding method for a welding robot based on line structured light according to claim 5 is characterized in that: Based on the workpiece point cloud model and the target position of the welding trajectory, the robot singular cost function and joint limit cost function are established. Combined with the robotic arm kinematics analytical solution and collision detection algorithm, the optimal welding posture of the robot and the corresponding robot joint angle are solved through intelligent algorithm optimization.
7. The dragging teaching welding method for a welding robot based on line structured light according to claim 6 is characterized in that: According to the calculated weld morphology, the welding current, welding speed and other parameters are adaptively adjusted to ensure the accuracy and stability of welding.
8. The dragging teaching welding method for a welding robot based on line structured light according to claim 1 is characterized in that: Step 4 includes: generating a trajectory and posture between the robot starting point and the welding starting point according to the anti-collision algorithm and sending the trajectory and posture to the robot, and starting welding after the robot moves to the welding starting point.
Citation Information
Cited By
Welding seam detection method based on surface structured light
CN119762449A
A seam detection method based on surface structured light
CN119762449B
Robot laser flight welding three-dimensional dynamic display and processing triggering method
CN120362705A
