Welding robot welding path extraction and welding gun posture planning method based on machine vision and BIM
Through the welding robot welding path extraction and welding gun posture planning method based on machine vision and BIM, using TeklaStructures software and visual sensors, the problem of automatic welding and efficient welding path extraction of the welding robot in unstructured scenes is solved, and welding efficiency and The improved adaptability is suitable for the complex welding needs of small and medium-sized enterprises.
Patent Information
- Application Number
- CN202410805393.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing welding robots are difficult to achieve automatic welding and efficient welding path extraction in the face of unstructured scenarios and increased labor costs. Moreover, the welding gun posture planning has a low degree of intelligence and cannot adapt to the complex welding needs of small and medium-sized enterprises.
Using the welding robot welding path extraction and welding gun attitude planning methods based on machine vision and BIM, the BIM model is established through TeklaStructures software, point cloud data is obtained using visual sensors, and the point cloud registration algorithm is used to extract welding seam information, and the welding path and welding gun attitude are calculated. .
It realizes automatic welding operations in unstructured scenarios, improves welding efficiency and adaptability, reduces labor costs, and solves key technical issues in welding path extraction and welding gun posture planning.
Smart Images

Figure CN118721189A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a welding path extraction and welding gun posture planning method for a welding robot based on machine vision and BIM. Background Art
[0002] With the development of intelligent manufacturing, welding robots are widely used in today's industry due to their stability and efficiency. However, in recent years, with the sharp increase in labor costs in the welding production field, the trend of a decrease in front-line welding workers has been intensifying year by year. Welding has become a bottleneck process in metal processing and machinery manufacturing, and the demand for products has increased year by year.
[0003] At present, the vast majority of welding robots on the market use the traditional "teach-reproduce" type of "blind" robots. This type of robot has strict requirements on the consistency of the environment. The welding path and related parameters are pre-set. Not only does it require high worker operation ability, complex operation and high repeatability, but it is also mainly suitable for the production of single-structure parts in large production lines. However, in the actual processing process, welded parts often change the position of the weld due to factors such as deformation, variable heat dissipation, variable gap, workpiece processing error and assembly error; at the same time, in some small and medium-sized enterprises, due to the frequent processing of some unstructured welding parts, workers need to teach frequently, and the "teach-reproduce" type welding robot cannot be applied to this unstructured scene, which leads to the application of machine vision in welding robots.
[0004] However, its current application of vision is mostly limited to the heel and ankle of simple welds in small scenes by laser, or the point cloud reconstruction of welds by depth cameras and then the feature extraction of weld point clouds. The above two methods not only rely on the robustness of feature extraction algorithms, but also the visual method is limited by the shooting angle and the area that the robot cannot reach and cannot provide the perception of the global three-dimensional features of welds. Therefore, it is necessary to consider other ways to reconstruct the global three-dimensional features of welds, use spatial three-dimensional point clouds to plan the trajectory of the robot's working posture, and provide a basis for the application of three-dimensional point clouds in the field of welding.
[0005] Although the above methods provide some basis for the autonomous operation of welding robots, welding target feature extraction and global perception of welding trajectories, there are still problems such as single operation scene, manual teaching of welding start and end points, and low degree of intelligence. Summary of the invention
[0006] 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.
[0007] In view of the above problems, the present invention proposes a welding path extraction and welding gun posture planning method for a welding robot based on machine vision and BIM. The method first uses TeklaStructures software to establish a BIM model of the workpiece to be welded according to the processing and assembly drawings of the workpiece to be welded, and exports it as a data file in IFC format, develops a weld feature information extraction algorithm, and extracts all weld information of the workpiece to be welded; then uses a visual sensor to perform three-dimensional reconstruction of the welding operation scene, generates point cloud information, and performs preprocessing; finally, uses a point cloud registration algorithm to register the BIM model to the point cloud of the workpiece to be welded, and obtains all weld information of the current position of the workpiece to be welded, thereby realizing the welding path extraction and welding gun posture planning of the robot arm.
[0008] The technical solution adopted by the present invention to solve its technical problems is: a welding path extraction and welding gun posture planning method of a welding robot based on machine vision and BIM, comprising the following steps: Step 1: According to the processing and assembly drawings of the workpiece to be welded, use Tekla Structures software to establish a BIM model of the workpiece to be welded, export the model file as a data file in IFC format, develop a weld feature information extraction algorithm, and obtain all weld information of the workpiece to be welded; Step 2: The mechanical arm carries a visual sensor to take pictures in multiple positions, obtain point cloud data and perform point cloud splicing, and reconstruct the welding operation scene; Step 3: De-noise, filter and semantically segment the obtained point cloud to obtain a complete point cloud of the workpiece to be welded; Step 4: Use the point cloud registration algorithm to register the model to the point cloud, and map all weld information extracted from the model to the reconstructed point cloud; Step 5: Through the weld information of the workpiece to be welded at the current position obtained in step 4, the welding path and welding gun posture of the workpiece are calculated again. In this way, the welding path extraction and welding gun trajectory planning of the welding robot are completed.
[0009] Furthermore, step one includes: according to the processing and assembly drawings of the workpiece to be welded, using TeklaStructures software to establish a BIM model of the workpiece to be welded, using the IFC export system provided by the software to export the model file into an IFC format data file, and using the IfcOpenShell open source toolkit and Python language to develop a weld feature information extraction algorithm to extract and calculate all weld information of the workpiece to be welded.
[0010] Furthermore, step 2 includes: the research object of the present invention is the intelligent teaching problem of welding robots in the field of industrial welding. The robot is equipped with a visual sensor to take pictures of the scene of the workpiece to be welded in multiple postures, and the scene point cloud in each posture is reconstructed by the pinhole imaging principle. Through the hand-eye calibration of the point cloud camera and the robot, the coordinate transformation relationship between the camera and the robot is determined, and the scene point cloud obtained in each posture is converted to the robot base coordinate system, and the scene point cloud is spliced according to the closest point iteration (Iterative Closest Point, ICP) method to obtain complete weldment point cloud information.
[0011] Furthermore, step three includes: processing the acquired point cloud data. Due to the field of view of the visual sensor, it is easy to obtain too much point cloud information and obtain point cloud information outside the working range; at the same time, it is easy to generate certain point cloud noise due to environmental influences. In response to these problems, in this step, the point cloud data is limited to the workbench of the workpiece to be welded by means of a radius filter, and the noise is suppressed by removing outliers. For the original workpiece point cloud, it contains many redundant points, so it is necessary to downsample the point cloud to reduce the number of points in the point cloud and speed up the processing speed of the subsequent algorithm.
[0012] Furthermore, step 4 includes: using a point cloud registration algorithm to register the model obtained in step 1 and the point cloud obtained in step 3. First, a rough registration method based on sampling consistency (Sample Consensus Initial Alignment, SAC-IA) is used to solve the initial alignment problem between the point cloud and the model data, providing a good initial position for subsequent precise registration; then the nearest point iteration algorithm is used for fine registration, the coordinate system of the BIM model and the point cloud is aligned, and the coordinate transformation matrix is obtained, and the weld feature information extracted from the BIM model is converted to the robot base coordinate system.
[0013] Furthermore, step five includes: obtaining a welding path based on the weld features in the robot arm base coordinate system obtained in step four, including but not limited to the starting point coordinates, length, direction vector, normal vector and weld type of the weld point; taking the welding gun posture as a decision variable, and establishing a weld coordinate system and a welding gun coordinate system, calculating the weld angle according to the position coordinates of each weld point, and according to welding experience, when the direction of the welding gun is parallel to the bisector of the weld angle, the welding effect is best, thereby obtaining the welding gun posture.
[0014] The beneficial effect of the present invention is that a welding path extraction and welding gun posture planning method for welding robots based on machine vision and BIM is proposed, which solves the problems of welding robots in the current industrial processing field. In the case of a sharp increase in labor costs in the welding production field and a trend of a year-on-year decrease in front-line welding workers, the welding efficiency is improved, the stability of the welding operation is ensured, and the key technologies of welding path extraction and welding gun posture planning in the current welding field are solved. Experiments have shown that the method can adapt to the needs of automatic welding operations in some unstructured scenes, and improve the adaptability and welding efficiency of the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] 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.
[0016] Figure 1 It is a flow chart of the present invention;
[0017] Figure 2 It is a diagram of the system structure of the present invention;
[0018] Figure 3 This is an example diagram of the working scene of the present invention;
[0019] Figure 4 The weldment point cloud information of the present invention and the point cloud information after preprocessing;
[0020] Figure 5 It is a schematic diagram of the model and point cloud registration principle of the present invention;
[0021] Figure 6 The welding path and welding gun posture diagram extracted and calculated in the BIM model of the present invention;
[0022] Figure 7 This is a schematic diagram of the principle structure of the visual sensor used in the present invention;
[0023] Figure 8 A schematic diagram of the process of aligning the model with the point cloud of the present invention;
[0024] Fig. 9 It is a result diagram of welding feature extraction of various welding types of the present invention;
[0025] Fig.10 It is a calculation principle diagram of the weld coordinate system and welding gun coordinate system of the present invention;
[0026] Fig.11 It is a projection diagram of the curved weld of the present invention on the XOY plane. DETAILED DESCRIPTION
[0027] Reference Figure 1 , Figure 2 and Fig. 9 , a welding path extraction and welding gun posture planning method for a welding robot based on machine vision and BIM, including the following steps: Step 1: According to the processing and assembly drawings of the workpiece to be welded, use TeklaStructures software to establish a BIM model of the workpiece to be welded, use the IFC export system provided by the software to export the model file to an IFC format data file, and use the IfcOpenShell open source toolkit to develop a weld feature information extraction algorithm using Python language to obtain all weld information of the workpiece to be welded. First, parse the connector IFCFASTENER entity information from the IFC file. IFCFASTENER is used as a fastener to connect or connect components to other components. Weld line types are roughly divided into two categories: straight lines and curves. Since there are differences in the attribute entities defined for straight welds and curved welds in the IFC file, two different weld feature extraction algorithms are developed for two different types of linear welds.
[0028] Straight weld:
[0029] The starting coordinates of the weld are defined as (X 1 , Y 1 , Z 1 ), the end point coordinate is (X 2 , Y 2 , Z 2 );(x 0 ,y 0 , Z 0 ) are three values in the entity of IFCCARTESIANPOINT type, which are the midpoint coordinates of the weld; d x d y d z is the direction vector corresponding to the entity of IFCDIRECTION type. The weld length L is the attribute value of the IFCPROPERTYSINGLEVALUE entity. The coordinates of the start and end points of the straight weld are calculated. The specific calculation process is as follows: Formula (1) - Formula (3):
[0030]
[0031]
[0032]
[0033] Curved weld:
[0034] The IfcOpenShell toolkit is used to obtain the local placement matrix of the curved weld, with the goal of converting a local location LOCAL PLACEMENT into a 4×4 transformation matrix. Then all the three-dimensional Cartesian coordinates contained in the IFCCARTESIANPOINTLIST3D entity are expanded into a 4×1 matrix, and the 4×4 transformation matrix is multiplied point by point. All the converted three-dimensional Cartesian coordinates are output again, and the coordinates of all the weld points of the curve in the BIM model coordinate system are obtained. Figure 2 It is a specific component of this system. The whole system consists of a visual sensor (depth camera), a welding robot, a teaching pendant, a robot control cabinet, a welding machine, a welding gun and a computer.
[0035] Reference Figure 3 , Figure 4 and Figure 7 , step 2 includes: the research object of the present invention is the intelligent teaching problem of welding robots in the field of industrial welding. The robot arm is equipped with a visual sensor to take pictures of the scene of the workpiece to be welded in multiple postures, and the scene point cloud in each posture is reconstructed by the pinhole imaging principle. Through the hand-eye calibration of the point cloud camera and the robot arm, the coordinate transformation relationship between the camera and the robot arm is determined, and the scene point cloud obtained in each posture is converted to the robot arm base coordinate system. According to the nearest point iteration method, the scene point cloud is spliced to obtain complete weldment point cloud information.
[0036] Reference Figure 3 , Figure 4 and Figure 7 ,Step 3 includes: processing the acquired point cloud data. Due to the field of view of the visual sensor, it is easy to obtain too much point cloud information and obtain point cloud information outside the working range; at the same time, it is easy to generate certain point cloud noise due to environmental influences. In view of these problems, in this step, the point cloud data is limited to the workbench of the workpiece to be welded by means of a radius filter, and the noise is suppressed by removing outliers.
[0037] Reference Figure 5 , Figure 6 , Figure 8 , Fig.10 and Fig.11 , Step 4 includes: using the point cloud registration algorithm to register the BIM model obtained in step 1 and the point cloud obtained in step 3. First, a sampling consistency-based initial alignment (SAC-IA) initial registration method is used to solve the initial alignment problem between the point cloud and the model data, providing a good initial position and direction for subsequent precise registration. The following are the main steps and principles of SAC-IA point cloud coarse registration:
[0038] Input: Source point cloud P s and the target point cloud Pt , number of pairs s, minimum sampling distance d min ;
[0039] Output: P s To P t The optimal transformation of (R, t);
[0040] Sampling point selection: First, at P s A set of s points are randomly sampled in the target point cloud. These sampled points should have different characteristics to ensure that they can find corresponding matching points in the target point cloud and ensure that the minimum distance between them is less than d min . s At each sampling point in P t In the KD tree nearest neighbor search, a group of points with similar FPFH (Fast Point Feature Histograms) features are found, and one point is selected from these similar points as the corresponding point;
[0041] Transformation matrix calculation: Based on the corresponding point pairs found, calculate the rigid transformation matrix M between them 0 The quality of the transformation is measured using formula (4), where e i is the error of the i-th group of corresponding points after transformation, and returns the transformation matrix (R best , t best )
[0042]
[0043] Error evaluation and iteration: The error between the transformed source point cloud and the target point cloud is used to evaluate the performance of the current registration until the preset number of iterations is reached or the error requirement is met; finally, the initial transformation matrix M is returned. 0 It provides a good initial position for subsequent fine alignment.
[0044] The second step is to use the iterative closest point (ICP) algorithm for precise registration. The coordinate systems of the model and point cloud are aligned, and the nearest point pairs are searched in the two sets of point clouds respectively. The rigid transformation is used to minimize the error metric. Compared with the traditional ICP algorithm, the point-to-plane ICP can better reflect the spatial structure of the point cloud, can better resist the wrong corresponding point pairs, and the iterative convergence speed is faster. The principle of the point-to-plane iterative closest point algorithm is mainly based on minimizing the distance from the point to the plane to achieve the registration between the two point clouds, and the distance E(T) from the point in the source point cloud to the plane where the corresponding point of the target point cloud is located is used as the registration criterion.
[0045]
[0046] Where T represents the transformation matrix; pi ,q i Respectively represent the corresponding points in the source point cloud and the target point cloud, n l Indicates q i The normal vector of the corresponding point.
[0047] Among them, the source point cloud in the point-to-plane ICP algorithm is the initial transformation matrix M obtained in the rough registration 0 As the initial value, in the second step, the transformation matrix M of the precise alignment is obtained. 1 , the two matrices are multiplied to obtain the final transformation matrix M, and then the weld feature information extracted from the BIM model is transformed into the robot base coordinate system through the transformation matrix M to complete the mapping of the weld features.
[0048] Step 5 includes: obtaining the welding path according to the weld features in the robot base coordinate system obtained in step 4, including but not limited to the starting point coordinates, length, direction vector, normal vector and weld type of the weld point; taking the welding gun posture as the decision variable, and establishing its weld coordinate system as follows: Fig.10 As shown. Coordinate system {O H :X H , Y H , Z H} represents the weld coordinate system, and the coordinate system {O G :X G , Y G , Z G} represents the welding gun coordinate system. Fig.10 Middle, click O H Any point on the intersection line extracted by IFC is converted to the corresponding weld point in the workpiece coordinate system, and its coordinates have been obtained. Define the weld point O H The plane tangent to the main tube (tube) is the main tube normal plane 1, passing through the weld point O H The plane tangent to the auxiliary plate (tube) is the auxiliary tube normal plane 2. The weld point O H The plane where the two normal vectors at are located is the normal vector plane.
[0049] In addition, each weld point feature requires not only the coordinates but also the projection θ of the point on the XOY plane, such as Fig.11 The weld curve in plane X H O H Y H The projection on the , angle θ is the corresponding angle of each weld point in the global intersection weld, and its value range is 0≤θ≤2π. Fig.10 middle and Point O H The unit normal vectors of normal plane 1 and normal plane 2 at . Angle The dihedral angle between normal plane 1 and normal plane 2 is defined as the welding angle, and its value can be expressed as:
[0050]
[0051] Unit normal vector from the weld point to the main board (tube) for
[0052]
[0053] Unit normal vector from weld point to subplate (tube) for
[0054]
[0055] like Fig.10 As shown, axis Z H Dihedral The angle bisector of the weld is parallel to the weld and points to the outside of the weld. H With weld point O H The tangent line of the intersection weld coincides with the tangent line of the intersection weld, and the direction is the same. H Determined by the right-hand rule.
[0056] The position, axis and centerline direction of the weld are the basic characteristics of the weld. G} is relative to the weld coordinate system {O H}Establish.
[0057] So construct the weld coordinate system {O H} method is as follows:
[0058]
[0059] Welding gun coordinate system G} Follow the following conventions:
[0060]
[0061] According to each weld point coordinate P and its corresponding welding gun coordinate system, the homogeneous matrix T can be obtained: G .
[0062]
[0063] The welding gun posture of all welding points is as follows Figure 6 As shown in the figure, the experimental results show that the welding path extraction and welding gun posture planning method of the welding robot based on machine vision and BIM can be applied to the welding operation scene of the intersecting line to achieve automatic recognition and planning.
[0064] The above is only a specific method flow and process embodiment of the present invention, which cannot be used to limit the scope of the invention. Therefore, the replacement of equivalent components, algorithm control items, or equivalent changes and modifications made according to the patent protection scope 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 welding path extraction and welding gun posture planning method based on machine vision and BIM, characterized by: Includes the following Steps: Step 1: According to the drawings of the workpiece to be welded, use Tekla Structures software to build the workpiece BIM model and export it as an IFC file, develop a weld feature information extraction algorithm, and extract all weld information of the workpiece to be welded; Step 2: The robot arm is equipped with a visual sensor to take pictures in multiple positions, obtain point cloud data, and perform point cloud splicing to reconstruct the scene; Step 3: De-noise, filter and semantically segment the point cloud to obtain a complete point cloud of the workpiece to be welded; Step 4: Use the point cloud registration algorithm to register the BIM model to the point cloud, and map all weld information extracted from the BIM to the point cloud; Step 5: Through the weld information of the workpiece to be welded at the current position obtained in step 4. Calculate the welding path and welding gun posture of the workpiece, thereby completing the welding path extraction and welding gun trajectory planning of the welding robot, so that the robot can complete the welding operation.
2. According to the method of welding robot welding path extraction and welding gun posture planning based on machine vision and BIM according to claim 1, it is characterized in that: Step one includes: using TeklaStructures software to establish a BIM model of the workpiece to be welded according to the processing and assembly drawings of the workpiece to be welded, using the IFC export system provided by the software to export the model file into an IFC format data file, and using the IfcOpenShel open source toolkit and Python language to develop a weld feature information extraction algorithm to extract and calculate all weld information of the workpiece to be welded.
3. The method for welding robot welding path extraction and welding gun posture planning based on machine vision and BIM according to claim 2 is characterized in that: First, parse the IFCFASTENER fastener entity information of the connector from the IFC file. The linear types of welds are roughly divided into two categories: straight lines and curves. Since there are differences in the attribute entities defined for linear welds and curved welds in the IFC file, two different weld feature extraction algorithms are developed for the two different types of linear welds.
4. The method for welding robot welding path extraction and welding gun posture planning based on machine vision and BIM according to claim 1 is characterized in that: Step two includes: the robotic arm is equipped with a visual sensor to take pictures of the workpiece scene to be welded in multiple different postures, and the point cloud of the scene in each posture is reconstructed through the pinhole imaging principle. The coordinate transformation relationship between the camera and the robotic arm is determined through the hand-eye calibration of the point cloud camera and the robotic arm, and the scene point cloud obtained in each posture is converted to the robotic arm base coordinate system. The scene point cloud is spliced according to the closest point iteration (ICP) method to obtain complete weldment point cloud information.
5. The method for welding robot welding path extraction and welding gun posture planning based on machine vision and BIM according to claim 1 is characterized in that: Step three includes: processing the point cloud data obtained in step two. Due to the field of view of the visual sensor, it is easy to cause excessive acquisition of point cloud information and obtain point cloud information outside the working range; at the same time, affected by the environment, it is also easy to generate certain point cloud noise. To address these problems, in this step, the point cloud data is limited to the workbench of the workpiece to be welded through a radius filter, and the noise is suppressed by removing outliers. The original workpiece point cloud contains many redundant points, so the point cloud is downsampled to reduce the number of points in the point cloud and speed up the processing speed of subsequent algorithms.
6. The method for welding robot welding path extraction and welding gun posture planning based on machine vision and BIM according to claim 1 is characterized in that: Step 4 includes: using a point cloud registration algorithm to register the BIM model in step 1 and the point cloud obtained in step 3.
7. The method for welding robot welding path extraction and welding gun posture planning based on machine vision and BIM according to claim 6 is characterized in that: Firstly, the initial alignment method based on sampling consistency (SAC-IA) is used to solve the initial alignment problem between point cloud and model data, providing a good initial position and direction for subsequent precise registration. Secondly, the iterative closest point (ICP) algorithm is used for precise registration to align the coordinate systems of the model and the point cloud.
8. The method for welding robot welding path extraction and welding gun posture planning based on machine vision and BIM according to claim 1 is characterized in that: Step five includes: obtaining a welding path according to the weld features in the robot arm base coordinate system obtained in step four, including but not limited to the starting point coordinates, length, direction vector, normal vector and weld type of the weld point; taking the welding gun posture as a decision variable, and establishing its weld coordinate system and welding gun coordinate system.
9. The method for welding robot welding path extraction and welding gun posture planning based on machine vision and BIM according to claim 8, characterized in that: According to the weld coordinates and welding path information obtained in step five, the welding gun posture information is obtained using a global planning strategy, and the three are aligned and combined to finally obtain the welding robot welding path and welding gun posture information, thereby completing the welding operation.
Citation Information
Patent Citations
Automatic positioning method and system for thin-wall welding
CN115035034A
Welding robot path planning method based on point cloud scene understanding
CN117584121A
Welding robot teaching-free autonomous operation method based on data model and visual system
CN117921670A
Weld joint parameter identification method and apparatus, and electronic device and storage medium
WO2023142229A1
Cited By
Robot position planning method and device based on reinforcement learning
CN119328773A
Robot welding method and device for assisting weld joint locating based on offline programming technology
CN119681384A
Ship anchor chain welding track generation method and device, electronic equipment and storage medium
CN119871390A
Multi-point welding device and method for heat shield of exhaust pipe of motor home
CN120055489A
Industrial robot automatic welding method and control equipment
CN120170366A
