An automatic positioning welding control method, apparatus, equipment and medium
By setting reflective marker balls on the base of the workpiece and using an optical positioning system to obtain coordinates, the welding robot can automatically seek and weld, solving the problems of long editing time and low efficiency of welding teaching programs, and improving the intelligence and efficiency of welding.
Patent Information
- Application Number
- CN202410424975.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2044-04-10
AI Technical Summary
Existing welding robot welding teaching programs have long editing times, low welding efficiency, and low intelligence, and cannot make real-time feedback adjustments based on changes in the type, size, and position of the workpiece being welded.
By setting reflective marker balls on the base of the workpiece, the optical positioning system is used to obtain the marker coordinates and welding coordinates, thereby realizing welding control, guiding the robotic arm to automatically seek and weld, avoiding deviations caused by workpiece movement, and improving the level of intelligence and the reusability of the teaching program.
It improves welding efficiency and intelligence, reduces welding deviations, and enhances the reusability of welding teaching programs.
Smart Images

Figure CN118305508B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of robotic welding technology, specifically relating to an automatic positioning welding control method, device, equipment, and medium. Background Technology
[0002] With the continuous development of the materials processing industry, welding robots have been widely used in various industries, such as aerospace, transportation, machinery, electronics and energy chemical industries. In order to improve the welding level and realize the intelligence and automation of welding, the welding control of robots has become very important.
[0003] In related technologies, welding robots primarily operate through a teach-and-playback method. To enable the robot to complete the prescribed welding task, before welding begins, a human operator must pre-teach the robot welding information—including the welding sequence, welding trajectory, and the angle of the welding tool—by dragging the robotic arm. The robot stores this teaching content in its control system. Programmers then create a robot control program based on this teaching content, which is executed by the control system to achieve automated welding.
[0004] However, different welding tasks require different welding information. When receiving a new welding task, existing technologies require programmers to rewrite the robot control program, resulting in long welding teaching program editing times and consequently low welding efficiency. Furthermore, existing welding robots cannot make real-time adjustments based on changes in the type, size, and position of the workpiece, leading to a low level of robot welding intelligence. Summary of the Invention
[0005] The purpose of this application is to provide an automatic positioning welding control method, device, equipment, and medium, which solves the problems of long welding teaching program editing time, low welding efficiency, and low welding intelligence in the prior art. By fixing the workpiece to the workpiece base and setting a reflective marker ball on the workpiece base, when the workpiece base is in the current position, the marker coordinates of the reflective marker ball in the optical positioning system and the welding coordinates and welding postures of each point to be welded between the workpieces in the coordinate system of the workpiece base are obtained. The coordinate transformation results and posture transformation results of the points to be welded in the optical positioning system are determined. Welding control is performed based on the coordinate transformation results and posture transformation results of the points to be welded in the optical positioning system. This achieves the purpose of automatically positioning and welding the robotic arm through the optical positioning system, avoiding the welding deviation caused by the movement of the workpiece, improving the welding intelligence, and at the same time, the robotic arm can be controlled to perform all welding tasks only according to the welding posture, improving the reusability of the welding teaching program, and thus improving the welding efficiency.
[0006] In a first aspect, embodiments of this application provide an automatic positioning welding control method, wherein the workpiece is fixed to a workpiece base, and the workpiece base is provided with at least three first reflective marker balls, the method comprising:
[0007] When the weldment base is in its current position, the first marker coordinates of the first reflective marker ball in the optical positioning system are obtained; and the welding coordinates and welding posture of each weld point between the weldments in the weldment base coordinate system are obtained in a pre-recorded manner.
[0008] Based on the first mark coordinates, the welding coordinates and welding posture of the point to be welded in the coordinate system of the workpiece base, the coordinate transformation result and posture transformation result of the point to be welded in the optical positioning system are determined.
[0009] Welding control is performed based on the coordinate transformation and attitude transformation results of the point to be welded in the optical positioning system.
[0010] Furthermore, the welding coordinates and welding postures of each weld point in the weld base coordinate system are recorded based on a welding teaching tool; the welding teaching tool is equipped with at least three second reflective marker balls;
[0011] Accordingly, before obtaining the first marker coordinates of the first reflective marker ball in the optical positioning system, the method further includes:
[0012] When the weldment base is in the recording position, the second marker coordinates of the first reflective marker ball in the optical positioning system are obtained, and the third marker coordinates of the second reflective marker ball in the optical positioning system are obtained;
[0013] Based on the third marker coordinates and the placement of the second reflective marker ball on the welding teaching tool, the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system are determined.
[0014] The welding coordinates and welding posture of the point to be welded in the coordinate system of the workpiece base are determined and stored based on the second mark coordinates, the contact point coordinates, and the center position coordinates.
[0015] Furthermore, determining the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system based on the third marker coordinates and the placement position of the second reflective marker ball on the welding teaching tool includes:
[0016] Obtain the fourth mark coordinates of the second reflective marker ball in the welding teaching tool coordinate system, and obtain the coordinates of the contact point position and center position of the welding teaching tool in the welding teaching tool coordinate system;
[0017] The first transformation relationship between the welding teaching tool coordinate system and the optical positioning system is determined based on the fourth marker coordinates and the third marker coordinates.
[0018] Based on the first transformation relationship and the coordinates of the contact point and center position of the welding teaching tool in the coordinate system of the welding teaching tool, the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system are determined.
[0019] Furthermore, the step of performing welding control based on the coordinate transformation results and attitude transformation results of the point to be welded in the optical positioning system includes:
[0020] Obtain the second transformation relationship between the robotic arm base coordinate system and the optical positioning system;
[0021] Based on the second transformation relationship, the welding coordinates and welding posture of each welding point in the optical positioning system, the welding control coordinates and posture vector of the welding execution tool in the coordinate system of the robotic arm base are determined;
[0022] The robotic arm is controlled to perform welding based on the welding control coordinates and the attitude vector.
[0023] Furthermore, the welding control of the robotic arm based on the welding control coordinates and the attitude vector includes:
[0024] The robotic arm is controlled to adjust the real-time coordinates and real-time pose of the welding tool so that the real-time coordinates and real-time pose of the welding tool coincide with the welding control coordinates and the attitude vector.
[0025] The robotic arm is controlled to traverse the welding control coordinates and the attitude vector in the order of the points to be welded.
[0026] Furthermore, after performing welding control based on the coordinate transformation results and attitude transformation results of the point to be welded in the optical positioning system, the method further includes:
[0027] When the position of the weldment base moves, the change in the coordinates of the first mark is identified, and the welding coordinates of the point to be welded in the optical positioning system are updated according to the change.
[0028] Based on the pre-recorded welding coordinates and welding posture of the points to be welded in the coordinate system of the workpiece base, the updated welding posture of each point to be welded in the optical positioning system is determined.
[0029] The welding control is updated based on the updated welding coordinates and welding posture of the point to be welded in the optical positioning system.
[0030] Furthermore, determining the coordinate transformation result and attitude transformation result of the point to be welded in the optical positioning system based on the first marker coordinates, the welding coordinates of the point to be welded in the coordinate system of the workpiece base, and the welding attitude includes:
[0031] A third transformation relationship between the coordinate system of the weldment base and the optical positioning system is determined based on the coordinates of the first mark and the coordinates of the first reflective mark ball in the coordinate system of the weldment base.
[0032] Based on the third transformation relationship, the welding coordinates and welding posture of the point to be welded in the coordinate system of the workpiece base, the coordinate transformation result and posture transformation result of the point to be welded in the optical positioning system are determined.
[0033] Secondly, embodiments of this application provide an automatic positioning welding control device, wherein the workpiece is fixed to a workpiece base, and at least three first reflective marker balls are provided on the workpiece base. The device includes:
[0034] The coordinate acquisition module is used to acquire the first marker coordinates of the first reflective marker ball in the optical positioning system when the weldment base is in the current position; and to acquire the welding coordinates and welding posture of each weld point between weldments in the weldment base coordinate system, which are pre-recorded.
[0035] The coordinate transformation module is used to determine the coordinate transformation result and attitude transformation result of the point to be welded in the optical positioning system based on the first mark coordinates, the welding coordinates of the point to be welded in the coordinate system of the weldment base and the welding attitude.
[0036] The welding control module is used to perform welding control based on the coordinate transformation results and attitude transformation results of the point to be welded in the optical positioning system.
[0037] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0038] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0039] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0040] In this embodiment of the application, when the weldment base is in its current position, the first marker coordinates of the first reflective marker ball in the optical positioning system are obtained; and the welding coordinates and welding postures of each weld point between the weldments in the weldment base coordinate system are obtained from pre-recorded data; based on the first marker coordinates, the welding coordinates and welding postures of the weld points in the weldment base coordinate system, the coordinate transformation results and posture transformation results of the weld points in the optical positioning system are determined; and welding control is performed based on the coordinate transformation results and posture transformation results of the weld points in the optical positioning system. The above-described automatic positioning welding control method solves the problems of long welding teaching program editing time, low welding efficiency, and low welding intelligence in existing technologies. By fixing the workpiece to the workpiece base and setting a reflective marker ball on the workpiece base, when the workpiece base is in its current position, the marking coordinates of the reflective marker ball in the optical positioning system and the welding coordinates and welding postures of each point to be welded between the workpieces in the workpiece base coordinate system are obtained. The coordinate transformation results and posture transformation results of the points to be welded in the optical positioning system are determined. Welding control is performed based on the coordinate transformation results and posture transformation results of the points to be welded in the optical positioning system. This achieves the purpose of automatically positioning and welding the robotic arm through the optical positioning system, avoiding the welding deviation caused by workpiece movement, improving the welding intelligence. At the same time, the robotic arm can be controlled to perform all welding tasks only based on the welding posture, improving the reusability of the welding teaching program and thus improving welding efficiency. Attached Figure Description
[0041] Figure 1 This is a schematic flowchart of the welding control method for automatic positioning provided in the embodiments of this application;
[0042] Figure 2 This is a schematic diagram of the welding base provided in an embodiment of this application;
[0043] Figure 3 This is a schematic diagram of the welding recording process provided in the embodiments of this application;
[0044] Figure 4 This is a schematic diagram of the welding recording provided in this application;
[0045] Figure 5 This is a schematic diagram of the welding control update process provided in an embodiment of this application;
[0046] Figure 6 This is a schematic diagram of the automatic positioning welding control device provided in the embodiments of this application;
[0047] Figure 7 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0049] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0050] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0051] The automatic positioning welding control method, apparatus, equipment, and medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0052] Figure 1 This is a flowchart illustrating the automatic positioning welding control method provided in an embodiment of this application. The workpiece is fixed to a workpiece base, and the workpiece base is provided with at least three first reflective marker balls. Figure 1 As shown, the specific steps include the following:
[0053] S101, when the weldment base is in the current position, obtain the first mark coordinates of the first reflective marker ball in the optical positioning system; and obtain the welding coordinates and welding posture of each weld point between weldments in the weldment base coordinate system, which were recorded in advance.
[0054] First, this solution can be used in scenarios where welding is performed using robotic arms or welding robots, especially in scenarios where robotic arms or welding robots are controlled to perform automatic positioning welding.
[0055] Based on the above usage scenarios, it is understandable that the subject of this solution can be an electronic device with positioning, data processing and control functions, such as a mobile phone, tablet computer and desktop computer and other smart terminals, without further restrictions.
[0056] The weldment can be at least two parts or components to be welded together. The weldment is generally made of metal. The weldment base is a base used to place and fix the weldment. After the weldment is fixed to the weldment base, the relative positional relationship between the weldment and the weldment base is fixed and will not change due to subsequent welding. The current position can be the position of the weldment base on the welding platform. The welding platform can be a welding workbench. The first reflective marker ball can be a marker ball capable of reflecting infrared light for identification by an optical positioning system. The first reflective marker ball is fixed to the welding base; therefore, the relative positional relationship between the first reflective marker ball and the weldment will not change after the weldment is fixed. The first marker coordinates can be the coordinates of the first reflective marker ball under the optical positioning system. The weld point can be a point where at least two weldments can be welded together. The weld point is located at the weld seam between at least two weldments. The weld seam can be the gap between the weldments after at least two weldments are joined together. The weld point can be obtained by sampling the welding trajectory at a preset frequency. The welding trajectory can be the path traced by the tip of the welding teaching pen on the surface of the workpiece during the welding teaching phase. The welding trajectory coincides with the weld seam. The welding coordinates can be the coordinates of each point to be welded in the coordinate system of the workpiece base, i.e., the coordinates of the tip of the welding teaching pen at each point to be welded. The welding posture can be the posture of the welding teaching pen at each point to be welded during the welding teaching phase. For example, the angle and direction of the welding teaching pen. The welding posture can be represented by a vector from the tip coordinates to the center coordinates of the welding teaching pen.
[0057] Figure 2 This is a schematic diagram of the welding base provided in an embodiment of this application. Figure 2As shown, the weldment is fixed to a weldment base, and the weldment base is provided with at least three first reflective marker balls, preferably four. By providing at least three first reflective marker balls on the weldment base, the position of the weldment base can be located using an optical positioning system. By fixing the weldment to the weldment base, and then determining the position of the weldment in the optical positioning system based on the fixing relationship between the weldment base and the weldment, the purpose of automatic positioning of the weldment is achieved. Since welding the weldment involves welding the seam between at least two weldments, the automatic positioning of the weldment can achieve the purpose of automatic positioning of the welding trajectory.
[0058] In one embodiment, when the workpiece base is in its current position, a positioning command is sent to the optical positioning system to obtain the first marker coordinates of the at least three first reflective marker balls in the optical positioning system. Before controlling the robotic arm for welding, the user needs to use a welding teaching pen to teach the welding process and record and store the welding teaching data. By reading the welding teaching data stored in memory, the pre-recorded welding coordinates and welding postures of each welding point between the workpieces in the workpiece base coordinate system are obtained. Since the shapes of the workpieces and surrounding objects are not perfectly regular during the welding process, in order to avoid collisions between the welding teaching pen and the workpieces or surrounding objects, and for the needs of the welding process, the position coordinates of the welding teaching pen at each welding point also need to be recorded while recording the welding trajectory. The vector formed by the welding coordinates of the welding point to the position coordinates of the pen can be used as the orientation of the welding teaching pen in space, thereby determining the welding posture of the welding teaching pen at each welding point.
[0059] In one embodiment, welding videos of the welding teaching pen during the welding teaching process can be acquired in advance via a camera. Image recognition of each frame in the welding video is used to determine the welding trajectory and posture of the pen tip between the workpieces. Based on the welding trajectory, the welding coordinates of each point to be welded in the workpiece base coordinate system are determined. Alternatively, reflective marker balls can be pre-set on the welding teaching pen. An optical positioning system is used to acquire the welding trajectory and posture of the pen tip between the workpieces. Based on the welding trajectory, the welding coordinates of each point to be welded in the workpiece base coordinate system are determined. The acquired welding coordinates and postures of each point to be welded in the workpiece base coordinate system are recorded to obtain welding teaching data. The specific method for pre-recording the welding teaching data is not limited here.
[0060] S102, based on the first mark coordinates, the welding coordinates of the point to be welded in the coordinate system of the workpiece base and the welding posture, determine the coordinate transformation result and posture transformation result of the point to be welded in the optical positioning system;
[0061] Specifically, the coordinate transformation result of the point to be welded in the optical positioning system can be the transformation of the welding coordinates of the point to be welded from the welding base coordinate system to the coordinates of the optical positioning system. The attitude transformation result can be the transformation of the welding attitude at each point to be welded from the welding base coordinate system to the attitude of the optical positioning system.
[0062] In one embodiment, the coordinates of the first reflective marker ball in the coordinate system of the weldment base can be obtained by establishing a coordinate system of the weldment base. Based on the coordinates of the first marker ball and the coordinates of the first reflective marker ball in the coordinate system of the weldment base, the transformation relationship between the optical positioning system and the coordinate system of the weldment base is calculated using the Singular Value Decomposition (SVD) algorithm. Based on the transformation relationship, the welding coordinates and welding posture of the point to be welded in the coordinate system of the weldment base, the coordinate transformation result and posture transformation result of the point to be welded in the optical positioning system are determined. The SVD algorithm is prior art and will not be described in detail here.
[0063] In one embodiment, optionally, determining the coordinate transformation result and attitude transformation result of the point to be welded in the optical positioning system based on the first marker coordinates, the welding coordinates of the point to be welded in the coordinate system of the workpiece base, and the welding attitude includes:
[0064] A third transformation relationship between the coordinate system of the weldment base and the optical positioning system is determined based on the coordinates of the first mark and the coordinates of the first reflective mark ball in the coordinate system of the weldment base.
[0065] Based on the third transformation relationship, the welding coordinates and welding posture of the point to be welded in the coordinate system of the workpiece base, the coordinate transformation result and posture transformation result of the point to be welded in the optical positioning system are determined.
[0066] The third transformation relationship can be the coordinate system transformation relationship between the coordinate system of the weldment base and the optical positioning system, including rotation and translation relationships.
[0067] In one embodiment, a third transformation relationship between the weldment base coordinate system and the optical positioning system is determined based on the first mark coordinates and the coordinates of the first reflective mark ball in the weldment base coordinate system;
[0068] Based on the third transformation relationship, the welding coordinates and welding posture of the point to be welded in the coordinate system of the workpiece base, the coordinate transformation result and posture transformation result of the point to be welded in the optical positioning system are determined.
[0069] In one embodiment, a first reflective marker ball fixed to the weldment base can be registered to obtain the position coordinates of at least three first reflective marker balls fixed to the weldment base in the weldment base coordinate system. Simultaneously, the coordinates of at least three first reflective marker balls in the optical positioning system coordinate system are obtained through an optical positioning system. The number of first reflective marker balls is at least three, preferably four. Based on the position coordinates of the first reflective marker balls in the weldment base coordinate system and their coordinates in the optical positioning system coordinate system, a third transformation relationship between the weldment base coordinate system and the optical positioning system is obtained using the SVD algorithm. The third transformation relationship includes a rotation matrix and a translation matrix. Based on the third transformation relationship, the welding coordinates and welding posture of the point to be welded in the weldment base coordinate system, the welding coordinates and welding posture of the point to be welded are transformed to the optical positioning system coordinate system to obtain the coordinate transformation result and posture transformation result of the point to be welded in the optical positioning system.
[0070] Since the first reflective marker ball is fixed to the weldment base, the coordinates of the first reflective marker ball in the weldment base coordinate system do not change with the movement of the weldment and the weldment base, thus enabling automatic positioning for the welding trajectory.
[0071] This solution determines the third transformation relationship between the coordinate system of the weldment base and the optical positioning system based on the coordinates of the first marker and the coordinates of the first reflective marker ball in the coordinate system of the weldment base. Based on the third transformation relationship, the welding coordinates and welding posture of the point to be welded in the coordinate system of the weldment base, the coordinate transformation result and posture transformation result of the point to be welded in the optical positioning system are determined, which can improve the efficiency of coordinate transformation and posture transformation of the point to be welded.
[0072] S103, Welding control is performed based on the coordinate transformation results and attitude transformation results of the point to be welded in the optical positioning system.
[0073] Welding control can include controlling the welding trajectory of a welding robot or robotic arm and controlling the posture of the welding execution tool.
[0074] In one embodiment, the welding robot or robotic arm is controlled for welding trajectory and welding tool posture based on the coordinate transformation and attitude transformation results of the point to be welded in the optical positioning system.
[0075] In one embodiment, optionally, the step of performing welding control based on the coordinate transformation result and attitude transformation result of the point to be welded in the optical positioning system includes:
[0076] Obtain the second transformation relationship between the robotic arm base coordinate system and the optical positioning system;
[0077] Based on the second transformation relationship, the welding coordinates and welding posture of each welding point in the optical positioning system, the welding control coordinates and posture vector of the welding execution tool in the coordinate system of the robotic arm base are determined;
[0078] The robotic arm is controlled to perform welding based on the welding control coordinates and the attitude vector.
[0079] The robotic arm base coordinate system can be the coordinate system of the base used to fix and support the welding robotic arm. The welding robotic arm can automatically acquire the transformation relationship between the robotic arm base coordinate system and the robotic arm end effector coordinate system. The end effector of the welding robotic arm is used to mount the welding execution tool. The welding execution tool can be a welding torch. The second transformation relationship can be the transformation relationship between the robotic arm base coordinate system and the optical positioning system, including rotation and translation relationships. The welding control coordinates can be the coordinates of the tip of the welding execution tool in the robotic arm base coordinate system. The attitude vector can be the angle and direction of the welding execution tool in the robotic arm base coordinate system.
[0080] In one embodiment, a second transformation relationship between the optical positioning system coordinate system and the robotic arm base coordinate system can be obtained through hand-eye calibration. Based on this second transformation relationship, the welding coordinates and welding postures of each weld point in the optical positioning system are transformed to the robotic arm base coordinate system. The robotic arm automatically acquires the transformation relationship between the robotic arm base coordinate system and the robotic arm end effector coordinate system, thereby determining the welding control coordinates and posture vectors of the welding execution tool in the robotic arm base coordinate system. The posture of the robotic arm is adjusted so that the tip of the welding execution tool mounted at the end effector reaches the welding control coordinates, and the angle and direction of the robotic arm are controlled to align with the posture vectors at each welding control coordinate, thereby enabling the welding execution tool to accurately reach the welding position and angle, completing the welding.
[0081] For different weldments in the same batch, even if deviations occur during the handling and placement of the weldment base after welding, no welding errors will occur. This is because the taught welding trajectory is recorded in the coordinate system of the weldment base and does not change with the position of the weldment base. Therefore, when reading the welding trajectory and performing coordinate transformation, the optical positioning system can track and update the position changes of the weldment base in real time, thereby guiding the robotic arm to correct the weld seam in a timely manner and achieving automatic positioning for the welding trajectory.
[0082] This solution, by taking the second transformation relationship between the robotic arm base coordinate system and the optical positioning system, and based on the second transformation relationship, the welding coordinates and welding posture of each welding point in the optical positioning system, determines the welding control coordinates and posture vector of the welding execution tool in the robotic arm base coordinate system. Based on the welding control coordinates and the posture vector, the robotic arm is welded, which can achieve the purpose of automatically finding the welding points through the optical positioning system and welding according to the welding teaching posture, thereby improving the accuracy of welding control and the reusability of the control program.
[0083] In one embodiment, optionally, the welding control of the robotic arm based on the welding control coordinates and the attitude vector includes:
[0084] The robotic arm is controlled to adjust the real-time coordinates and real-time pose of the welding tool so that the real-time coordinates and real-time pose of the welding tool coincide with the welding control coordinates and the attitude vector.
[0085] The robotic arm is controlled to traverse the welding control coordinates and the attitude vector in the order of the points to be welded.
[0086] The order of the points to be soldered can be the welding sequence of the points to be soldered. The order of the points to be soldered can be determined based on the sampling sequence of each point in the welding trajectory.
[0087] In one embodiment, the robotic arm can be controlled to adjust the real-time coordinates and real-time pose of the tip of the welding execution tool according to the welding control coordinates and the attitude vector, so that the real-time coordinates of the tip of the welding execution tool coincide with the welding control coordinates, and the real-time pose of the welding execution tool coincides with the attitude vector at each of the welding control coordinates, and the robotic arm can be controlled to traverse all the welding control coordinates and attitude vectors in the order of the points to be welded.
[0088] This solution controls the robotic arm to adjust the real-time coordinates and pose of the welding tool so that the real-time coordinates and pose of the welding tool coincide with the welding control coordinates and the attitude vector. By controlling the robotic arm to traverse the welding control coordinates and the attitude vector in the order of the points to be welded, the solution can achieve the goal of controlling the robotic arm to perform welding according to the welding teaching process, thereby improving the accuracy of welding control and the success rate of welding results.
[0089] The technical solution provided in this application embodiment obtains the first marker coordinates of the first reflective marker ball in the optical positioning system when the weldment base is in the current position; and obtains the pre-recorded welding coordinates and welding postures of each weld point between weldments in the weldment base coordinate system; determines the coordinate transformation result and posture transformation result of the weld point in the optical positioning system based on the first marker coordinates, the welding coordinates and welding posture of the weld point in the weldment base coordinate system; and performs welding control based on the coordinate transformation result and posture transformation result of the weld point in the optical positioning system. The above-described automatic positioning welding control method solves the problems of long welding teaching program editing time, low welding efficiency, and low welding intelligence in existing technologies. By fixing the workpiece to the workpiece base and setting a reflective marker ball on the workpiece base, when the workpiece base is in its current position, the marking coordinates of the reflective marker ball in the optical positioning system and the welding coordinates and welding postures of each point to be welded between the workpieces in the workpiece base coordinate system are obtained. The coordinate transformation results and posture transformation results of the points to be welded in the optical positioning system are determined. Welding control is performed based on the coordinate transformation results and posture transformation results of the points to be welded in the optical positioning system. This achieves the purpose of automatically positioning and welding the robotic arm through the optical positioning system, avoiding the welding deviation caused by workpiece movement, improving the welding intelligence. At the same time, the robotic arm can be controlled to perform all welding tasks only based on the welding posture, improving the reusability of the welding teaching program and thus improving welding efficiency.
[0090] Figure 3 This is a schematic diagram of the welding recording process provided in the embodiments of this application. The welding coordinates and welding postures of each point to be welded between the workpieces in the workpiece base coordinate system are recorded based on a welding teaching tool. The welding teaching tool is equipped with at least three second reflective marker balls, such as... Figure 3 As shown, the specific steps include the following:
[0091] S301, when the weldment base is in the recording position, obtain the second marker coordinates of the first reflective marker ball in the optical positioning system, and obtain the third marker coordinates of the second reflective marker ball in the optical positioning system;
[0092] The welding teaching tool can be a tool used by the user to teach welding techniques. For example, a welding teaching pen. The second reflective marker ball can be a marker ball that can be identified by the optical positioning system and is used to mark the position of the welding teaching tool in the optical positioning system. The number of the second reflective marker balls is at least three, preferably four. The recording position can be the position of the welding base during the welding teaching stage. The current position can be the same as or different from the recording position. The third marker coordinates can be the coordinates of the second reflective marker balls in the optical positioning system.
[0093] In one embodiment, the welding coordinates and welding postures of each weldment point in the weldment base coordinate system are recorded based on a welding teaching tool, which is equipped with at least three second reflective marker balls. When the weldment base is in the recording position, the second marker coordinates of the first reflective marker ball in the optical positioning system and the third marker coordinates of the second reflective marker ball in the optical positioning system can be obtained through an optical positioning system.
[0094] S302, based on the third marker coordinates and the setting position of the second reflective marker ball on the welding teaching tool, determine the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system;
[0095] The contact point coordinates can be the coordinates of the pen tip of the welding teaching tool in the optical positioning system when it contacts the workpiece. The center position coordinates can be the position coordinates of the pen of the welding teaching tool in the optical positioning system at each contact point coordinate.
[0096] In one embodiment, a welding teaching tool coordinate system can be constructed, and the coordinates of the second reflective marker ball in the welding teaching tool coordinate system can be obtained. The transformation relationship between the welding teaching tool coordinate system and the optical positioning system is calculated based on the coordinates of the third marker ball and the coordinates of the second reflective marker ball in the welding teaching tool coordinate system. The pen tip coordinates and pen center coordinates of the welding teaching tool in the welding teaching tool coordinate system are determined based on the placement position of the second reflective marker ball on the welding teaching tool. Based on the transformation relationship and the pen tip and pen center coordinates of the welding teaching tool in the welding teaching tool coordinate system, the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system are determined.
[0097] S303, determine and store the welding coordinates and welding posture of the point to be welded in the coordinate system of the workpiece base based on the second mark coordinates, the contact point coordinates and the center position coordinates.
[0098] Wherein, the welding coordinates can be the coordinates of the point to be welded in the coordinate system of the workpiece base. The welding posture can be the posture of the welding execution tool corresponding to each of the points to be welded in the coordinate system of the workpiece base. The posture of the welding execution tool should be consistent with the posture of the welding teaching tool during the welding teaching phase, and can be represented by the direction and angle of the welding execution tool, or by the coordinates of the tool's midpoint.
[0099] In one embodiment, the coordinates of the first reflective marker ball in the welding base coordinate system can be obtained. Based on the coordinates of the first reflective marker ball in the welding base coordinate system and the coordinates of the second marker, the transformation relationship between the welding base coordinate system and the optical positioning system during the welding teaching stage is determined. According to the transformation relationship between the welding base coordinate system and the optical positioning system, the contact point coordinates and the center position coordinates are transformed to the workpiece base coordinate system, and the welding coordinates and welding posture are obtained and stored.
[0100] Figure 4 This is a schematic diagram of the welding recording provided in this application.
[0101] like Figure 4 As shown, the welding recording process is divided into a welding teaching stage and a welding recording stage. Before drawing the welding trajectory using the welding teaching pen, the pen needs to be registered to obtain the position coordinates of the four reflective markers fixed on the pen in the welding teaching pen coordinate system St, as well as the position coordinates of the pen tip and any point along the pen shaft (referred to as the pen center). These two points are used to determine the orientation of the welding teaching pen in space. Due to the presence of the second reflective markers, the optical positioning system can capture the welding teaching pen and obtain the coordinates of the four reflective markers in the optical positioning system coordinate system So. Based on the SVD algorithm, the rotation matrix Rto and translation matrix Tto between St and So can be obtained from the coordinates of the four reflective markers in St and So, and then the coordinates of the pen tip and pen center can be transformed from the St coordinate system to the So coordinate system.
[0102] When an operator holds a welding teaching pen and uses the pen tip to simulate a welding point, drawing a desired welding trajectory on the surface of the workpiece, the welding trajectory can be discretized at a frequency of 60Hz (the sampling frequency of the optical positioning system), resulting in a set of points to be welded, Pt. Simultaneously, to avoid collisions between the welding torch and the workpiece during welding, and for welding process requirements, the position coordinates on the pen also need to be recorded, denoted as a set of positioning points, P't. The points to be welded are used to determine the position of the welding point. The vector formed by the points to be welded and the positioning points can be used to determine the orientation of the welding torch in space, thereby determining the welding angle. The optical positioning system can record this trajectory as a set of discrete points, called the set of points to be welded, Po, and the set of positioning points, P'o. These points are located in the optical positioning system's coordinate system, So.
[0103] Tool registration can be performed on the first reflective marker ball fixed to the welding base. The position coordinates of the four reflective marker balls fixed to the welding base in the welding base coordinate system Sw are obtained. Simultaneously, the optical positioning system can also capture the coordinates of these four reflective marker balls in the optical positioning system coordinate system So. Using the SVD algorithm, the rotation matrix Row and translation matrix Tow between Sw and So can be obtained from the coordinates of the four reflective marker balls in Sw and So. Therefore, the set of points Po to be welded and the set of points P'o in the optical positioning system coordinate system So can be transformed to the welding base coordinate system Sw, denoted as Pw and P'w.
[0104] Since these points are recorded in the coordinate system of the weldment base and do not change with the movement of the weldment and the weldment base, automatic positioning for the welding trajectory can be achieved.
[0105] In one embodiment, optionally, determining the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system based on the third marker coordinates and the placement position of the second reflective marker ball on the welding teaching tool includes:
[0106] Obtain the fourth mark coordinates of the second reflective marker ball in the welding teaching tool coordinate system, and obtain the coordinates of the contact point position and center position of the welding teaching tool in the welding teaching tool coordinate system;
[0107] The first transformation relationship between the welding teaching tool coordinate system and the optical positioning system is determined based on the fourth marker coordinates and the third marker coordinates.
[0108] Based on the first transformation relationship and the coordinates of the contact point and center position of the welding teaching tool in the coordinate system of the welding teaching tool, the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system are determined.
[0109] In one embodiment, the second reflective marker ball can be registered to obtain the fourth marker coordinates of the second reflective marker ball in the welding teaching tool coordinate system. Based on the parameters of the welding teaching tool and the fourth marker coordinates, the coordinates of the contact point position and center position of the welding teaching tool in the welding teaching tool coordinate system are determined. Based on the fourth marker coordinates and the third marker coordinates, a first transformation relationship between the welding teaching tool coordinate system and the optical positioning system is calculated using the SVD algorithm. Based on the first transformation relationship and the coordinates of the contact point position and center position of the welding teaching tool in the welding teaching tool coordinate system, the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system are determined.
[0110] The technical solution provided in this application embodiment, when the welding base is in the recording position, obtains the second marker coordinates of the first reflective marker ball in the optical positioning system and the third marker coordinates of the second reflective marker ball in the optical positioning system. Based on the third marker coordinates and the setting position of the second reflective marker ball on the welding teaching tool, the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system are determined. Based on the second marker coordinates, the contact point coordinates, and the center position coordinates, the welding coordinates and welding posture of the point to be welded in the welding base coordinate system are determined and stored. This achieves the purpose of recording and storing the welding teaching process in the welding base coordinate system, improving the accuracy of subsequent welding control.
[0111] Figure 5 This is a schematic diagram of the welding control update process provided in an embodiment of this application. Figure 5 As shown, the specific steps include the following:
[0112] S501, when the position of the weldment base moves, identify the change in the coordinates of the first mark, and update the welding coordinates of the weld point in the optical positioning system according to the change;
[0113] In one embodiment, the coordinates of the first marker ball in the optical positioning system can be obtained in real time, and the position of the welding base can be determined based on whether the coordinates of the first marker ball in the optical positioning system change. When the position of the welding base moves, the change in the coordinates of the first marker ball is identified, the optical positioning system and the coordinate system of the welding base are recalibrated, and the welding coordinates of the point to be welded in the optical positioning system are updated based on the recalibration results.
[0114] S502, Based on the pre-recorded welding coordinates and welding posture of the points to be welded in the coordinate system of the workpiece base, determine the updated welding posture of each point to be welded in the optical positioning system.
[0115] In one embodiment, the updated welding posture of each weld point in the optical positioning system is determined based on the pre-recorded welding coordinates and welding posture of the weld point in the coordinate system of the weldment base, as well as the recalibrated calibration results.
[0116] S503, based on the welding coordinate update results and welding posture update results of the point to be welded in the optical positioning system, update the welding control.
[0117] In one embodiment, the welding control is updated according to the welding coordinate update result and welding posture update result of the point to be welded in the optical positioning system.
[0118] The technical solution provided in this application embodiment identifies changes in the coordinates of the first marker when the weldment base moves, updates the welding coordinates of the weld point in the optical positioning system based on these changes, and determines the updated welding posture of each weld point in the optical positioning system based on the pre-recorded welding coordinates and welding posture of the weld point in the weldment base coordinate system. Based on the updated welding coordinates and welding posture of the weld point in the optical positioning system, the welding control is updated. This achieves real-time adjustment of welding control during the welding process, avoiding welding failures caused by changes in the weldment base position during welding, and further improving the accuracy of the welding results.
[0119] Figure 6 This is a schematic diagram of the automatic positioning welding control device provided in an embodiment of this application. The workpiece is fixed to a workpiece base, and at least three first reflective marker balls are provided on the workpiece base. Figure 6 As shown, it specifically includes the following:
[0120] The coordinate acquisition module 601 is used to acquire the first marker coordinates of the first reflective marker ball in the optical positioning system when the weldment base is in the current position; and to acquire the welding coordinates and welding posture of each weld point between the weldment in the weldment base coordinate system, which are pre-recorded.
[0121] The coordinate transformation module 602 is used to determine the coordinate transformation result and attitude transformation result of the point to be welded in the optical positioning system based on the first mark coordinates, the welding coordinates of the point to be welded in the coordinate system of the weldment base and the welding attitude.
[0122] The welding control module 603 is used to perform welding control based on the coordinate transformation results and attitude transformation results of the point to be welded in the optical positioning system.
[0123] Furthermore, the welding coordinates and welding postures of each weld point in the weld base coordinate system are recorded based on a welding teaching tool; the welding teaching tool is equipped with at least three second reflective marker balls;
[0124] Accordingly, the coordinate acquisition module 601 is also used for:
[0125] When the weldment base is in the recording position, the second marker coordinates of the first reflective marker ball in the optical positioning system are obtained, and the third marker coordinates of the second reflective marker ball in the optical positioning system are obtained;
[0126] Based on the third marker coordinates and the placement of the second reflective marker ball on the welding teaching tool, the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system are determined.
[0127] The welding coordinates and welding posture of the point to be welded in the coordinate system of the workpiece base are determined and stored based on the second mark coordinates, the contact point coordinates, and the center position coordinates.
[0128] Furthermore, the coordinate acquisition module 601 is specifically used for:
[0129] Obtain the fourth mark coordinates of the second reflective marker ball in the welding teaching tool coordinate system, and obtain the coordinates of the contact point position and center position of the welding teaching tool in the welding teaching tool coordinate system;
[0130] The first transformation relationship between the welding teaching tool coordinate system and the optical positioning system is determined based on the fourth marker coordinates and the third marker coordinates.
[0131] Based on the first transformation relationship and the coordinates of the contact point and center position of the welding teaching tool in the coordinate system of the welding teaching tool, the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system are determined.
[0132] Furthermore, the welding control module 603 is specifically used for:
[0133] Obtain the second transformation relationship between the robotic arm base coordinate system and the optical positioning system;
[0134] Based on the second transformation relationship, the welding coordinates and welding posture of each welding point in the optical positioning system, the welding control coordinates and posture vector of the welding execution tool in the coordinate system of the robotic arm base are determined;
[0135] The robotic arm is controlled to perform welding based on the welding control coordinates and the attitude vector.
[0136] Furthermore, the welding control module 603 is specifically used for:
[0137] The robotic arm is controlled to adjust the real-time coordinates and real-time pose of the welding tool so that the real-time coordinates and real-time pose of the welding tool coincide with the welding control coordinates and the attitude vector.
[0138] The robotic arm is controlled to traverse the welding control coordinates and the attitude vector in the order of the points to be welded.
[0139] Furthermore, the device also includes:
[0140] The welding coordinate update module is used to identify the change in the coordinates of the first marker when the position of the workpiece base moves, and update the welding coordinates of the point to be welded in the optical positioning system according to the change.
[0141] The welding posture update module is used to determine the updated welding posture of each welding point in the optical positioning system based on the pre-recorded welding coordinates and welding posture of the welding point in the coordinate system of the workpiece base.
[0142] The welding control update module is used to update the welding control based on the welding coordinate update results and welding posture update results of the point to be welded in the optical positioning system.
[0143] Furthermore, the coordinate transformation module 602 is specifically used for:
[0144] A third transformation relationship between the coordinate system of the weldment base and the optical positioning system is determined based on the coordinates of the first mark and the coordinates of the first reflective mark ball in the coordinate system of the weldment base.
[0145] Based on the third transformation relationship, the welding coordinates and welding posture of the point to be welded in the coordinate system of the workpiece base, the coordinate transformation result and posture transformation result of the point to be welded in the optical positioning system are determined.
[0146] The technical solution provided in this application includes a coordinate acquisition module, used to acquire the first marker coordinates of the first reflective marker ball in the optical positioning system when the weldment base is in its current position; and to acquire the pre-recorded welding coordinates and welding postures of each weld point between weldments in the weldment base coordinate system; a coordinate transformation module, used to determine the coordinate transformation result and posture transformation result of the weld point in the optical positioning system based on the first marker coordinates, the welding coordinates and welding posture of the weld point in the weldment base coordinate system; and a welding control module, used to perform welding control based on the coordinate transformation result and posture transformation result of the weld point in the optical positioning system. The aforementioned automatic positioning welding control device solves the problems of long welding teaching program editing time, low welding efficiency, and low welding intelligence in existing technologies. By fixing the workpiece to the workpiece base and setting a reflective marker ball on the workpiece base, when the workpiece base is in its current position, the device acquires the marker coordinates of the reflective marker ball in the optical positioning system, as well as the pre-recorded welding coordinates and welding postures of each point to be welded between the workpieces in the workpiece base coordinate system. The device then determines the coordinate transformation results and posture transformation results of the points to be welded in the optical positioning system. Based on these results, welding control is performed, achieving the goal of automatically positioning and welding the robotic arm through the optical positioning system. This avoids welding deviations caused by workpiece movement, improves the welding intelligence, and allows the robotic arm to perform all welding tasks based solely on the welding posture, enhancing the reusability of the welding teaching program and thus improving welding efficiency.
[0147] The automatic positioning welding control device in this application embodiment can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.
[0148] The automatic positioning welding control device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0149] The automatic positioning welding control device provided in this application embodiment can realize the various processes implemented in the above method embodiments, and will not be described again here to avoid repetition.
[0150] like Figure 7 As shown, this application embodiment also provides an electronic device 700, including a processor 701, a memory 702, and a program or instructions stored in the memory 702 and executable on the processor 701. When the program or instructions are executed by the processor 701, they implement the various processes of the above-described automatic positioning welding control device embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0151] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0152] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described automatic positioning welding control device embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0153] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0154] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described automatic positioning welding control device embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0155] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0156] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0157] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0158] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0159] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.
Claims
1. An automatic positioning welding control method, characterized by, The workpiece is fixed to the workpiece base, and at least three first reflective marker balls are provided on the workpiece base. The welding coordinates and welding postures of each point to be welded between the workpieces in the coordinate system of the workpiece base are recorded based on the welding teaching tool. The welding teaching tool is equipped with at least three second reflective marker balls, and the method includes: When the workpiece base is in the recording position, the second marker coordinates of the first reflective marker ball in the optical positioning system and the third marker coordinates of the second reflective marker ball in the optical positioning system are obtained; based on the third marker coordinates and the setting position of the second reflective marker ball on the welding teaching tool, the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system are determined; the coordinates of the first reflective marker ball in the workpiece base coordinate system are obtained; based on the coordinates of the first reflective marker ball in the workpiece base coordinate system and the second marker coordinates, the transformation relationship between the workpiece base coordinate system and the optical positioning system in the welding teaching stage is determined; based on the transformation relationship between the workpiece base coordinate system and the optical positioning system in the welding teaching stage, the contact point coordinates and the center position coordinates are transformed to the workpiece base coordinate system; and the welding coordinates and welding posture of the point to be welded in the workpiece base coordinate system are obtained and stored. When the weldment base is in its current position, the first marker coordinates of the first reflective marker ball in the optical positioning system are obtained; and the welding coordinates and welding posture of each weld point between the weldments in the weldment base coordinate system are obtained in a pre-recorded manner. The third transformation relationship between the coordinate system of the weldment base and the optical positioning system is determined based on the coordinates of the first mark and the coordinates of the first reflective mark ball in the coordinate system of the weldment base; the coordinate transformation result and attitude transformation result of the point to be welded in the optical positioning system are determined based on the third transformation relationship, the welding coordinates and welding posture of the point to be welded in the coordinate system of the weldment base. Welding control is performed based on the coordinate transformation and attitude transformation results of the points to be welded in the optical positioning system. When the position of the workpiece base moves, the change of the first marker coordinates is identified, and the welding coordinates of the points to be welded in the optical positioning system are updated according to the change. Based on the pre-recorded welding coordinates and welding attitude of the points to be welded in the workpiece base coordinate system, the updated welding attitude of each point to be welded in the optical positioning system is determined. Welding control is updated based on the updated welding coordinates and welding attitude of the points to be welded in the optical positioning system.
2. The method of automatic positioning of a welding control according to claim 1, characterized in that, The step of determining the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system based on the third marker coordinates and the placement position of the second reflective marker ball on the welding teaching tool includes: Obtain the fourth mark coordinates of the second reflective marker ball in the welding teaching tool coordinate system, and obtain the coordinates of the contact point position and center position of the welding teaching tool in the welding teaching tool coordinate system; The first transformation relationship between the welding teaching tool coordinate system and the optical positioning system is determined based on the fourth marker coordinates and the third marker coordinates. Based on the first transformation relationship and the coordinates of the contact point and center position of the welding teaching tool in the coordinate system of the welding teaching tool, the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system are determined.
3. The method of automatic positioning of a welding control of claim 1, wherein, The welding control based on the coordinate transformation results and attitude transformation results of the point to be welded in the optical positioning system includes: Obtain the second transformation relationship between the robotic arm base coordinate system and the optical positioning system; Based on the second transformation relationship, the welding coordinates and welding posture of each welding point in the optical positioning system, the welding control coordinates and posture vector of the welding execution tool in the coordinate system of the robotic arm base are determined; The robotic arm is controlled to perform welding based on the welding control coordinates and the attitude vector.
4. The automatic positioning welding control method according to claim 3, characterized in that, The welding control of the robotic arm based on the welding control coordinates and the attitude vector includes: The robotic arm is controlled to adjust the real-time coordinates and real-time pose of the welding tool so that the real-time coordinates and real-time pose of the welding tool coincide with the welding control coordinates and the attitude vector. The robotic arm is controlled to traverse the welding control coordinates and the attitude vector in the order of the points to be welded.
5. An automatic positioning welding control device, characterized in that, The workpiece is fixed to the workpiece base, and at least three first reflective marker balls are provided on the workpiece base. The welding coordinates and welding postures of each point to be welded between the workpieces in the coordinate system of the workpiece base are recorded based on the welding teaching tool. The welding teaching tool is equipped with at least three second reflective marker balls, and the device includes: The coordinate acquisition module is used to acquire the second marker coordinates of the first reflective marker ball in the optical positioning system and the third marker coordinates of the second reflective marker ball in the optical positioning system when the welding base is in the recording position; determine the contact point coordinates and center position coordinates of the welding teaching tool in the optical positioning system based on the third marker coordinates and the setting position of the second reflective marker ball on the welding teaching tool; acquire the coordinates of the first reflective marker ball in the coordinate system of the welding base; determine the transformation relationship between the coordinate system of the welding base and the optical positioning system during the welding teaching stage based on the coordinates of the first reflective marker ball and the second marker coordinates; transform the contact point coordinates and the center position coordinates to the coordinate system of the welding base based on the transformation relationship between the coordinate system of the welding base and the optical positioning system during the welding teaching stage; and obtain and store the welding coordinates and welding posture of the point to be welded in the coordinate system of the welding base. The coordinate acquisition module is also used to acquire the first marker coordinates of the first reflective marker ball in the optical positioning system when the weldment base is in the current position; and to acquire the welding coordinates and welding posture of each weld point between weldments in the weldment base coordinate system, which were recorded in advance. The coordinate transformation module is used to determine a third transformation relationship between the weldment base coordinate system and the optical positioning system based on the first mark coordinates and the coordinates of the first reflective mark ball in the weldment base coordinate system; and to determine the coordinate transformation result and attitude transformation result of the weldment point in the optical positioning system based on the third transformation relationship, the welding coordinates and welding posture of the weldment point in the weldment base coordinate system. The welding control module is used to perform welding control based on the coordinate transformation results and attitude transformation results of the points to be welded in the optical positioning system. When the position of the workpiece base moves, it identifies the changes in the coordinates of the first marker, updates the welding coordinates of the points to be welded in the optical positioning system according to the changes, determines the updated welding attitude of each point to be welded in the optical positioning system based on the pre-recorded welding coordinates and welding attitude of the points to be welded in the workpiece base coordinate system, and updates the welding control based on the updated welding coordinates and welding attitude of the points to be welded in the optical positioning system.
6. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the welding control method for automatic positioning as described in any one of claims 1-4.
7. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the welding control method for automatic positioning as described in any one of claims 1-4.
Citation Information
Patent Citations
Industrial robot control system based on visual positioning and control method thereof
CN102135776A
Welding method and welding system for post terminal
CN117718593A
