Welding method and device based on three-dimensional point cloud, electronic equipment and medium
Through three-dimensional point cloud technology, the three-dimensional data of the welding workpiece is acquired and processed, reducing the amount of data and improving the welding accuracy. It solves the problems of long teaching time and low accuracy in the existing technology, and realizes a fast and automatic welding process.
Patent Information
- Application Number
- CN202410965353.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-27
AI Technical Summary
In existing laser welding technology, the teaching process is time-consuming and affected by human factors, resulting in low welding trajectory accuracy. Especially when processing a small number of workpieces to be welded with complex trajectory curves, teaching takes up a lot of time and the accuracy is not high.
A welding method based on three-dimensional point cloud is used to obtain spatial point cloud data through a 3D industrial camera. After slicing processing, vertical mapping and point cloud fitting are performed to determine the weld point cloud trajectory, and the weld trajectory is determined based on the coordinate system conversion relationship, so that The robotic arm performs welding, eliminating the manual teaching process.
It reduces the amount of point cloud data processing, improves welding accuracy and efficiency, can quickly identify weld types, is suitable for different workpieces to be welded, reduces welding errors, realizes automatic welding, and increases the accuracy to 95%, meeting the needs of automatic welding.
Smart Images

Figure CN118699555A
Abstract
Description
Technical Field
[0001] The present application relates to the field of laser welding, and more specifically, to a welding method, device, electronic equipment and medium based on three-dimensional point cloud. Background Art
[0002] Since the welding trajectory is a necessary condition for the operation of the laser welding system, it is also the most important step in welding. The online programming system determines the motion trajectory and posture through teaching. During operation, the visual equipment is used to correct the trajectory to ensure accuracy. Offline programming obtains the running trajectory and posture of the welding gun through the three-dimensional model of the workpiece to be welded or the overall shape of the scanned weld, and after data processing. Teaching is a relatively time-consuming and tedious task, especially when dealing with a small number of workpieces to be welded with complex trajectory curves. Teaching is also affected by the operator's human factors while taking up a long working time, resulting in low welding trajectory accuracy. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a welding method, device, electronic device and medium based on three-dimensional point cloud, so as to solve the above-mentioned problems existing in the prior art and improve the welding accuracy while reducing the amount of point cloud data processing.
[0004] In a first aspect, a welding method based on a three-dimensional point cloud is provided, and the method may include:
[0005] Acquire the spatial point cloud dataset of the workbench and the workpiece to be welded on the workbench captured by the 3D industrial camera;
[0006] Slicing the target spatial point cloud data set to obtain a plurality of orderly arranged sub-point cloud data sets; the target spatial point cloud data set is obtained after screening the spatial point cloud data set;
[0007] For any sub-point cloud data set, vertical mapping processing is performed on the sub-point cloud data set to obtain a sub-plane point cloud data set;
[0008] Perform point cloud fitting on multiple orderly arranged sub-plane point cloud data sets to determine the weld point cloud trajectory;
[0009] Based on the weld point cloud trajectory and the coordinate system conversion relationship, the weld trajectory is determined so that the robotic arm welds the workpiece to be welded according to the weld trajectory; wherein the coordinate system conversion relationship represents the conversion relationship between the 3D industrial camera coordinate system and the robotic arm coordinate system.
[0010] In a possible implementation, a plurality of fixed calibration objects are arranged on the workbench;
[0011] The determination of the coordinate system transformation relationship includes:
[0012] The coordinate system conversion relationship between the 3D industrial camera coordinate system and the robotic arm coordinate system is determined by the first coordinates of the point cloud of the center points of the multiple calibration objects in the spatial point cloud data set and the second coordinates of the center points of the corresponding calibration objects in the robotic arm coordinate system.
[0013] In a possible implementation, obtaining a spatial point cloud dataset of a workbench and a workpiece to be welded on the workbench photographed by a 3D industrial camera includes:
[0014] Acquire an initial spatial point cloud data set of a workbench and a workpiece to be welded on the workbench that are photographed vertically multiple times by a 3D industrial camera above the workbench; the workbench surface is rectangular;
[0015] Multiple initial spatial point cloud data sets are superimposed to obtain a spatial point cloud data set.
[0016] In a possible implementation, the target space point cloud dataset is obtained after screening the space point cloud dataset, including:
[0017] Eliminating the spatial point cloud data outside the workbench from the target spatial point cloud data set;
[0018] Obtain a target distance from the top plane of the calibration object to the upper surface of the workbench; eliminate spatial point cloud data whose elevation difference with the top plane is greater than the target distance, and obtain a target spatial point cloud data set of the workpiece to be welded on the workbench.
[0019] In a possible implementation, the target space point cloud dataset is sliced to obtain a plurality of ordered sub-point cloud datasets, including:
[0020] Taking the vertical plane where the short side of the workbench table is located as the starting plane, the target space point cloud data set is sliced according to the configured first preset distance to obtain a plurality of orderly arranged sub-point cloud data sets.
[0021] In a possible implementation, for any sub-point cloud data set, performing vertical mapping processing on the sub-point cloud data set to determine a sub-plane point cloud data set includes:
[0022] For any sub-point cloud data set, the sub-point cloud data set within a second preset distance is vertically mapped to the target vertical plane to determine the sub-plane point cloud data set; wherein the second preset distance is half of the first preset distance.
[0023] In a possible implementation, fitting is performed on a plurality of ordered sub-plane point cloud data sets to determine the weld point cloud trajectory, including:
[0024] For any sub-plane point cloud data set, a visual algorithm is used to screen the sub-plane point cloud data set to determine the welding point cloud data;
[0025] Based on the arrangement order of each sub-plane point cloud data set and the corresponding welding point point cloud data of each sub-plane point cloud data, the weld point cloud trajectory is fitted.
[0026] In a second aspect, a welding device based on a three-dimensional point cloud is provided, which may include:
[0027] An acquisition unit, used for acquiring a spatial point cloud data set of a workbench and a workpiece to be welded on the workbench photographed by a 3D industrial camera;
[0028] A slicing unit, used for slicing a target spatial point cloud data set to obtain a plurality of orderly arranged sub-point cloud data sets; the target spatial point cloud data set is obtained after screening the spatial point cloud data set;
[0029] A mapping unit, for performing vertical mapping processing on any sub-point cloud data set to obtain a sub-plane point cloud data set;
[0030] A fitting unit, used for performing point cloud fitting on a plurality of orderly arranged sub-plane point cloud data sets to determine a weld point cloud trajectory;
[0031] A conversion unit is used to determine a weld trajectory based on the weld point cloud trajectory and the coordinate system conversion relationship, so that the robotic arm welds the workpiece to be welded according to the weld trajectory; wherein the coordinate system conversion relationship represents the conversion relationship between the 3D industrial camera coordinate system and the robotic arm coordinate system.
[0032] In a third aspect, an electronic device is provided, the electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0033] Memory, used to store computer programs;
[0034] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.
[0035] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.
[0036] The present application provides a welding method based on three-dimensional point cloud, which includes: obtaining a spatial point cloud data set of a workbench and a workpiece to be welded on the workbench photographed by a 3D industrial camera; slicing the target spatial point cloud data set to obtain multiple orderly arranged sub-point cloud data sets; for any sub-point cloud data set, performing vertical mapping processing on the sub-point cloud data set to obtain a sub-plane point cloud data set; performing point cloud fitting on multiple orderly arranged sub-plane point cloud data sets to determine the weld point cloud trajectory; based on the weld point cloud trajectory and the coordinate system conversion relationship, determining the weld trajectory, so that the robot arm welds the workpiece to be welded according to the weld trajectory. In the existing laser welding system, the present application generates spatial point cloud data of the workpiece to be welded by adding a 3D industrial camera; through "slicing" processing, the three-dimensional point cloud of the workpiece to be welded is converted into a plane point cloud, and the processing is reduced from three-dimensional to two-dimensional, which reduces the data processing amount, improves the processing efficiency, reduces the error of the welding point, can quickly identify the weld type, and after determining the weld tracking point, arrange the trajectory points in the three-dimensional space in order, fit different weld trajectories, send a welding robot, and the welding robot controls the robot arm to start welding. The application can eliminate the manual teaching process, is applicable to different workpieces to be welded within a certain range, can quickly start welding, and does not require a three-dimensional model of the workpiece. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A system architecture diagram for a welding method based on three-dimensional point cloud provided in an embodiment of the present application;
[0039] Figure 2 A schematic diagram of a welding method based on three-dimensional point cloud provided in an embodiment of the present application;
[0040] Figure 3 A schematic structural diagram of a welding device based on three-dimensional point cloud provided in an embodiment of the present application;
[0041] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] A welding method based on three-dimensional point cloud provided in the embodiment of the present application can be applied in Figure 1 In the system architecture shown in Figure 1 As shown, the system may include: a server, a robotic arm, and a 3D industrial camera. The server may be a physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0044] The 3D industrial camera is used to capture an initial spatial point cloud dataset of the workbench and the workpiece to be welded on the workbench above the workbench, and send the initial spatial point cloud dataset to a server.
[0045] The server (PC) is used to receive the initial spatial point cloud data set and execute a three-dimensional point cloud-based welding method provided in the present application.
[0046] The mechanical arm is a mechanical arm of a welding robot, and is used to weld the object to be welded according to the weld trajectory sent by the receiving server.
[0047] Since the welding trajectory is a necessary condition for the operation of the laser welding system, it is also the most important step in welding. The online programming system determines the motion trajectory and posture through teaching. During operation, the visual equipment is used to correct the trajectory to ensure accuracy. Offline programming obtains the running trajectory and posture of the welding gun through the three-dimensional model of the workpiece to be welded or the overall shape of the scanned weld, and after data processing. Teaching is a relatively time-consuming and tedious task, especially when dealing with a small number of workpieces to be welded with complex trajectory curves. Teaching is also affected by the operator's human factors while taking up a long working time, resulting in low welding trajectory accuracy.
[0048] Therefore, the present application provides a welding method based on three-dimensional point cloud to solve the above-mentioned problems existing in the prior art, thereby reducing the amount of point cloud data processing and improving welding accuracy.
[0049] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.
[0050] Figure 2 A schematic diagram of a welding method based on a three-dimensional point cloud provided in an embodiment of the present application. Figure 2 As shown, the method may include:
[0051] Step S210: Acquire a spatial point cloud data set captured by a 3D industrial camera.
[0052] Before executing step S210, a plurality of fixed calibration objects are placed at the edge of the rectangular workbench. For example, one or more cylindrical or square column calibration objects may be placed at the four corners of the workbench, and the positions of the calibration objects remain unchanged.
[0053] The workpiece to be welded should be placed inside the polygon formed by the calibration objects as much as possible, and the starting weld of the workpiece to be welded should be perpendicular to the short side of the rectangular workbench as much as possible.
[0054] Step S210 specifically includes:
[0055] The initial spatial point cloud dataset of the workbench and the workpiece to be welded on the workbench taken multiple times vertically by a 3D industrial camera above the workbench.
[0056] It should be noted that the position of the 3D industrial camera does not need to be fixed, and it only needs to be able to capture the complete point cloud data of the workpiece to be welded. The height of the 3D industrial camera can be adjusted.
[0057] The corresponding point cloud data in multiple groups of initial spatial point cloud data sets are superimposed to obtain a spatial point cloud data set.
[0058] It should be noted that the shooting accuracy of the 3D industrial camera can be adjusted according to the width of the weld.
[0059] Step S220: Slice the target space point cloud data set to obtain a plurality of orderly arranged sub-point cloud data sets.
[0060] Before executing step S220, the spatial point cloud dataset obtained in step S210 is screened to obtain a target spatial point cloud dataset.
[0061] The screening process is divided into two parts:
[0062] The first part is to retain the spatial point cloud data within the workbench. Specifically, the spatial point cloud data of the calibration object or the edge of the workbench can be used as the boundary to retain only the internal spatial point cloud data within the workbench, that is, the spatial point cloud data outside the workbench is removed from the spatial point cloud data set.
[0063] The second part is to retain the spatial point cloud data within the height of the calibration object. Specifically, the target distance h from the top plane of the calibration object to the upper surface of the workbench is obtained (the target distance is known data measured in advance); the spatial point cloud data with the elevation difference between the bottom of the top plane of the calibration object and the top plane greater than the target distance h is eliminated from the internal spatial point cloud data to obtain the target spatial point cloud data set of the workpiece to be welded on the workbench.
[0064] In this method, redundant spatial point cloud data other than the workpiece to be welded is eliminated, and only the target spatial point cloud data set composed of the point cloud data of the workpiece to be welded is retained, which can reduce the amount of point cloud data to be processed and improve data processing efficiency.
[0065] Step S220 specifically includes:
[0066] Taking the vertical plane where the short side of the workbench surface is located as the starting plane (the vertical plane can be understood as a virtual plane in space that is perpendicular to the short side of the workbench surface), the target space point cloud data set corresponding to the workpiece to be welded currently acquired is sliced according to the configured first preset distance to obtain multiple sub-point cloud data sets, and the slicing order of each sub-point cloud data set is marked, that is, the multiple sub-point cloud data sets are point cloud data sets arranged in order. The first preset distance is generally set to 3 to 5 mm.
[0067] This method can be understood as dividing the virtual workpiece to be welded (target space point cloud data set) according to the first preset distance to obtain multiple parallel partial virtual workpieces to be welded, that is, dividing the three-dimensional target space point cloud data set into multiple parallel sub-point cloud data sets.
[0068] Step S230: for any sub-point cloud data set, perform vertical mapping processing on the sub-point cloud data set to obtain a sub-plane point cloud data set.
[0069] Specifically, for any sub-point cloud data set, vertically map the sub-point cloud data set within the second preset distance to the target vertical plane to determine the sub-plane point cloud data set;
[0070] The second preset distance is half of the first preset distance.
[0071] This method can be understood as follows: for any sub-point cloud dataset, the vertical plane where the middle position of the sub-point cloud dataset is located is determined as the target vertical plane. The sub-point cloud data on both sides of the target vertical plane are mapped to the target vertical plane, thereby converting the three-dimensional sub-point cloud dataset into a two-dimensional sub-plane point cloud dataset.
[0072] It can be understood that, since the multiple sub-point cloud data sets are arranged in order, the multiple sub-plane point cloud data sets are also arranged in order.
[0073] In some embodiments, the size of the first preset distance can be adjusted to avoid overlapping mapping of subsequent multiple welding point cloud data during the mapping process.
[0074] Step S240: performing point cloud fitting on a plurality of ordered sub-plane point cloud data sets to determine a weld point cloud trajectory.
[0075] Specifically, for any sub-plane point cloud data set, a visual algorithm is used to screen the sub-plane point cloud data set to determine the welding point cloud data.
[0076] That is, by using a visual algorithm or an AI algorithm, the weld point cloud data can be determined based on features such as the horizontal distance between each plane point cloud data in the sub-plane point cloud data set.
[0077] Specifically, in the sub-plane corresponding to each sub-plane point cloud data set, the difference in the coordinates of adjacent points of the point cloud of the non-weld point in the horizontal plane direction is within the imaging accuracy range of the 3D industrial camera, but at the welding point, the coordinate difference in the horizontal plane direction may exceed multiple imaging accuracies, and the coordinate difference ratio in the vertical direction will exceed the set threshold range; in each sub-plane, the point cloud data is sorted from small to large according to the horizontal coordinates, firstly judging whether the horizontal coordinate difference of adjacent points exceeds the set threshold, and then judging whether the vertical coordinate difference of adjacent points exceeds the set threshold to determine whether this point is a breakpoint; if it exceeds any set threshold of horizontal or vertical, it is a breakpoint; if it does not exceed the set threshold, it is a non-breakpoint;
[0078] Tracking points are calculated based on the different shapes of breakpoints. The maximum and minimum thresholds can also be set for the horizontal distance between breakpoints. Breakpoint shapes beyond this range (the range between the maximum and minimum thresholds) cannot be used to calculate tracking points. Tracking points can be understood as welding points, that is, weld trajectory points.
[0079] Furthermore, each sub-plane may have multiple tracking points, which are sorted according to the horizontal coordinates.
[0080] The tracking points on each sub-plane are matched with the tracking points on the adjacent sub-planes, the Y-direction distance is ignored, and the horizontal and vertical distances are compared with the distance threshold to determine whether the tracking points belong to the same welding track. If the horizontal and vertical distances are not greater than the distance threshold, the tracking points belong to the same welding track; if the horizontal and vertical distances are greater than the distance threshold, the tracking points do not belong to the same welding track.
[0081] In some embodiments, it is also possible to determine whether a tracking point is an abnormal depression; if a tracking point is matched by corresponding tracking points only in three consecutive sub-planes, then the track may be an abnormal depression. Otherwise, it is a normal tracking point.
[0082] Afterwards, the weld point cloud trajectory is fitted based on the arrangement order of each sub-plane point cloud data set and the welding point point cloud data corresponding to each sub-plane point cloud data.
[0083] In some embodiments, the trajectory can be approximated using a B-spline and then approximated using a straight line or circular arc to fit the weld point cloud trajectory.
[0084] In another embodiment, a G1 continuous curve may be generated by using straight line and arc approximation, and the trajectory may be segmented into straight lines and arcs as the weld point cloud trajectory.
[0085] This method can efficiently process data and extract information. The existing technology is a technical solution through 3D point cloud registration and splicing, noise reduction, reconstruction of 3D model, and weld identification; while the present application reduces the 3D point cloud to 2D processing, and does not require registration, noise reduction, and reconstruction of 3D model. 2D weld identification is simpler than 3D, and the development difficulty is reduced by several orders of magnitude. The recognition difficulty is reduced, the accuracy is improved, the running time is reduced, and the welding efficiency is improved.
[0086] Step S250: determining the weld trajectory based on the weld point cloud trajectory and the coordinate system conversion relationship, so that the robot arm welds the workpiece to be welded according to the weld trajectory.
[0087] Among them, the coordinate system transformation relationship represents the transformation relationship between the 3D industrial camera coordinate system and the robot arm coordinate system.
[0088] Specifically, before executing step S250, the coordinate conversion relationship between the 3D industrial camera coordinate system and the robot arm coordinate system is determined.
[0089] The coordinate system conversion relationship between the 3D industrial camera coordinate system and the robotic arm coordinate system is determined by the first coordinates of the point cloud of multiple calibration object center points in the spatial point cloud data set and the second coordinates of the corresponding calibration object center points in the robotic arm coordinate system.
[0090] It is understood that the first coordinate is the coordinate of the point cloud of the center point of the calibration object in the 3D industrial camera coordinate system; and the second coordinate of the center point of each calibration object in the robot arm coordinate system can be measured. The center point of the calibration object can also be selected manually.
[0091] That is to say, the coordinate system conversion relationship between the two coordinate systems can be obtained through at least four first coordinates and corresponding second coordinates.
[0092] Afterwards, the coordinates of each point cloud data in the weld point cloud trajectory are converted into coordinates in the robot arm coordinate system, thereby determining the weld trajectory.
[0093] The weld trajectory is sent to the welding robot so that the welding robot operates the mechanical arm to weld the workpiece according to the weld trajectory.
[0094] In some embodiments, when the welding robot operates the mechanical arm to weld the workpiece to be welded according to the weld trajectory, a line scan laser camera is used to scan the weld for precise interpolation; the welding accuracy can be controlled to 0.2mm level.
[0095] The present application provides a welding method based on three-dimensional point cloud, which includes: obtaining a spatial point cloud data set of a workbench and a workpiece to be welded on the workbench photographed by a 3D industrial camera; slicing the target spatial point cloud data set to obtain multiple orderly arranged sub-point cloud data sets; for any sub-point cloud data set, performing vertical mapping processing on the sub-point cloud data set to obtain a sub-plane point cloud data set; performing point cloud fitting on multiple orderly arranged sub-plane point cloud data sets to determine the weld point cloud trajectory; based on the weld point cloud trajectory and the coordinate system conversion relationship, determining the weld trajectory, so that the robot arm welds the workpiece to be welded according to the weld trajectory. In the existing laser welding system, the present application generates spatial point cloud data of the workpiece to be welded by adding a 3D industrial camera; through "slicing" processing, the three-dimensional point cloud of the workpiece to be welded is converted into a plane point cloud, and the processing is reduced from three-dimensional to two-dimensional, which reduces the data processing amount, improves the processing efficiency, reduces the error of the welding point, can quickly identify the weld type, and after determining the weld tracking point, arrange the trajectory points in the three-dimensional space in order, fit different weld trajectories, send a welding robot, and the welding robot controls the robot arm to start welding. The application can eliminate the manual teaching process, is applicable to different workpieces to be welded within a certain range, can quickly start welding, and does not require a three-dimensional model of the workpiece.
[0096] The method provided in this application can reduce the data processing before welding to 20S, increase the accuracy to 95%, reduce the teaching process, and meet the needs of automatic welding. Different types of welds can be processed, and the weld points can be identified in the slice surface.
[0097] Corresponding to the above method, the embodiment of the present application also provides a welding device based on a three-dimensional point cloud, such as Figure 3 As shown, the device comprises:
[0098] An acquisition unit 310 is used to acquire a spatial point cloud data set of a workbench and a workpiece to be welded on the workbench photographed by a 3D industrial camera;
[0099] A slicing unit 320 is used to slice the target spatial point cloud data set to obtain a plurality of orderly arranged sub-point cloud data sets; the target spatial point cloud data set is obtained after screening the spatial point cloud data set;
[0100] A mapping unit 330 is used for performing vertical mapping processing on any sub-point cloud data set to obtain a sub-plane point cloud data set;
[0101] A fitting unit 340 is used to perform point cloud fitting on a plurality of ordered sub-plane point cloud data sets to determine a weld point cloud trajectory;
[0102] The conversion unit 350 is used to determine the weld trajectory based on the weld point cloud trajectory and the coordinate system conversion relationship, so that the robot arm welds the workpiece to be welded according to the weld trajectory; wherein the coordinate system conversion relationship represents the conversion relationship between the 3D industrial camera coordinate system and the robot arm coordinate system.
[0103] The functions of the functional units of a welding device based on a three-dimensional point cloud provided in the above-mentioned embodiment of the present application can be realized through the above-mentioned method steps. Therefore, the specific working process and beneficial effects of each unit in a welding device based on a three-dimensional point cloud provided in the embodiment of the present application are not repeated here.
[0104] The present application also provides an electronic device, such as Figure 4 As shown, it includes a processor 410 , a communication interface 420 , a memory 430 and a communication bus 440 , wherein the processor 410 , the communication interface 420 , and the memory 430 communicate with each other via the communication bus 440 .
[0105] Memory 430, for storing computer programs;
[0106] The processor 410 is used to execute the program stored in the memory 430 to implement the following steps:
[0107] Acquire the spatial point cloud dataset of the workbench and the workpiece to be welded on the workbench captured by the 3D industrial camera;
[0108] Slicing the target spatial point cloud data set to obtain a plurality of orderly arranged sub-point cloud data sets; the target spatial point cloud data set is obtained after screening the spatial point cloud data set;
[0109] For any sub-point cloud data set, vertical mapping processing is performed on the sub-point cloud data set to obtain a sub-plane point cloud data set;
[0110] Perform point cloud fitting on multiple orderly arranged sub-plane point cloud data sets to determine the weld point cloud trajectory;
[0111] Based on the weld point cloud trajectory and the coordinate system conversion relationship, the weld trajectory is determined so that the robotic arm welds the workpiece to be welded according to the weld trajectory; wherein the coordinate system conversion relationship represents the conversion relationship between the 3D industrial camera coordinate system and the robotic arm coordinate system.
[0112] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0113] The communication interface is used for communication between the above electronic device and other devices.
[0114] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0115] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0116] The implementation methods and beneficial effects of the components of the electronic device in the above embodiments to solve the problems can be found in Figure 2 The various steps in the illustrated embodiment are implemented, therefore, the specific working process and beneficial effects of the electronic device provided by the embodiment of the present application are not repeated here.
[0117] In another embodiment provided in the present application, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes a three-dimensional point cloud-based welding method described in any one of the above embodiments.
[0118] In another embodiment provided in the present application, a computer program product including instructions is also provided. When the computer program product is run on a computer, the computer executes a three-dimensional point cloud-based welding method described in any one of the above embodiments.
[0119] Those skilled in the art will appreciate that the embodiments in the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt a complete hardware embodiment, a complete software embodiment, or a form of an embodiment combining software and hardware. Moreover, the present application may adopt a form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0120] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0123] Unless otherwise defined, the technical terms or scientific terms used in this application should be understood by people with ordinary skills in the field to which the present invention belongs. "First", "second" and similar words used in this application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect", "couple" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0124] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the present application embodiments are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application embodiments.
[0125] Obviously, those skilled in the art can make various changes and modifications to the embodiments in the present application without departing from the spirit and scope of the embodiments in the present application. Thus, if these modifications and variations of the embodiments in the present application are within the scope of the embodiments in the present application and their equivalents, the embodiments in the present application are also intended to include these modifications and variations.
Claims
1. A welding method based on three-dimensional point cloud, characterized in that: The method comprises: Acquire the spatial point cloud dataset of the workbench and the workpiece to be welded on the workbench captured by the 3D industrial camera; Slicing the target spatial point cloud data set to obtain a plurality of orderly arranged sub-point cloud data sets; the target spatial point cloud data set is obtained after screening the spatial point cloud data set; For any sub-point cloud data set, vertical mapping processing is performed on the sub-point cloud data set to obtain a sub-plane point cloud data set; Perform point cloud fitting on multiple orderly arranged sub-plane point cloud data sets to determine the weld point cloud trajectory; Based on the weld point cloud trajectory and the coordinate system conversion relationship, the weld trajectory is determined so that the robotic arm welds the workpiece to be welded according to the weld trajectory; wherein the coordinate system conversion relationship represents the conversion relationship between the 3D industrial camera coordinate system and the robotic arm coordinate system.
2. The method according to claim 1, characterized in that A plurality of fixed calibration objects are arranged on the workbench; The determination of the coordinate system transformation relationship includes: The coordinate system conversion relationship between the 3D industrial camera coordinate system and the robotic arm coordinate system is determined by the first coordinates of the point cloud of the center points of the multiple calibration objects in the spatial point cloud data set and the second coordinates of the center points of the corresponding calibration objects in the robotic arm coordinate system.
3. The method according to claim 1, characterized in that Obtain the spatial point cloud dataset of the workbench and the workpiece to be welded on the workbench captured by the 3D industrial camera, including: Acquire an initial spatial point cloud data set of a workbench and a workpiece to be welded on the workbench that are photographed vertically multiple times by a 3D industrial camera above the workbench; the workbench surface is rectangular; Multiple initial spatial point cloud data sets are superimposed to obtain a spatial point cloud data set.
4. The method according to claim 2, characterized in that The target space point cloud data set is obtained after screening the space point cloud data set, and includes: Eliminating the spatial point cloud data outside the workbench from the target spatial point cloud data set; Obtain a target distance from the top plane of the calibration object to the upper surface of the workbench; eliminate spatial point cloud data whose elevation difference with the top plane is greater than the target distance, and obtain a target spatial point cloud data set of the workpiece to be welded on the workbench.
5. The method according to claim 3, characterized in that Slice the target space point cloud dataset to obtain multiple ordered sub-point cloud datasets, including: Taking the vertical plane where the short side of the workbench table is located as the starting plane, the target space point cloud data set is sliced according to the configured first preset distance to obtain a plurality of orderly arranged sub-point cloud data sets.
6. The method according to claim 5, characterized in that For any sub-point cloud data set, vertical mapping processing is performed on the sub-point cloud data set to determine a sub-plane point cloud data set, including: For any sub-point cloud data set, the sub-point cloud data set within a second preset distance is vertically mapped to the target vertical plane to determine the sub-plane point cloud data set; wherein the second preset distance is half of the first preset distance.
7. The method according to claim 1, characterized in that Fit multiple ordered sub-plane point cloud data sets to determine the weld point cloud trajectory, including: For any sub-plane point cloud data set, a visual algorithm is used to screen the sub-plane point cloud data set to determine the welding point cloud data; Based on the arrangement order of each sub-plane point cloud data set and the corresponding welding point point cloud data of each sub-plane point cloud data, the weld point cloud trajectory is fitted.
8. A welding device based on three-dimensional point cloud, characterized in that: The device comprises: An acquisition unit, used for acquiring a spatial point cloud data set of a workbench and a workpiece to be welded on the workbench photographed by a 3D industrial camera; A slicing unit, used for slicing a target spatial point cloud data set to obtain a plurality of orderly arranged sub-point cloud data sets; the target spatial point cloud data set is obtained after screening the spatial point cloud data set; A mapping unit, for performing vertical mapping processing on any sub-point cloud data set to obtain a sub-plane point cloud data set; A fitting unit, used for performing point cloud fitting on a plurality of orderly arranged sub-plane point cloud data sets to determine a weld point cloud trajectory; A conversion unit is used to determine a weld trajectory based on the weld point cloud trajectory and the coordinate system conversion relationship, so that the robotic arm welds the workpiece to be welded according to the weld trajectory; wherein the coordinate system conversion relationship represents the conversion relationship between the 3D industrial camera coordinate system and the robotic arm coordinate system.
9. An electronic device, characterized in that: The electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Robot operation program generation method, processing device and processing system
CN119369415A
Method for generating robot operation program, processing device and processing system
CN119369415B
Welding robot trajectory planning method based on point cloud slicing
CN121589794A
