Robot programming-free welding method based on handheld rigid body teaching
Through the robot programming-free welding method based on handheld rigid body teaching, a three-dimensional teaching space coordinate system is constructed and positioning parameters are obtained, which solves the problem of cumbersome operation of traditional welding robots, achieves high-precision welding of complex curved welds, and reduces the number of trials. The number of welds and the waste of manpower and material resources.
Patent Information
- Application Number
- CN202410915787.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-13
AI Technical Summary
The traditional teaching and reproduction welding robot is cumbersome to operate and cannot ensure the welding accuracy of complex curved welds, resulting in a waste of manpower and material resources.
The robot programming-free welding method based on handheld rigid body teaching is adopted. By constructing a three-dimensional teaching space coordinate system, the positioning camera coordinates are obtained, the reference points are marked, the positioning parameters are obtained in real time, the motion trajectory of the reference points is determined, and converted into welding robot coordinates. system to accurately control the welding trajectory.
Reduce the number of teaching operations, improve welding accuracy, and is suitable for the welding process of complex curved welds.
Smart Images

Figure CN118636115A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of welding robot control, and in particular to a robot programming-free welding method based on handheld rigid body teaching. Background Art
[0002] At present, most welding robots used at home and abroad are programmable teaching and reproducing robots. After being equipped with force, touch and position sensors, they have certain environmental perception capabilities, but the working method is basically teaching and reproducing. Factory operators store parameters such as working paths and postures into the robot controller through teaching methods, and then the robot repeats the teaching route to work. The teaching and reproducing working method is relatively simple and intuitive, which is convenient for staff to operate. The robot repeats welding according to the path.
[0003] In the actual working process, the teaching process of the traditional teaching method is cumbersome and complicated. The trajectory accuracy of the welding robot using the traditional teaching method can be controlled within ±0.03-0.1mm. To ensure the accuracy of robot welding, the operator must first repeat the teaching operation many times, and then conduct trial welding after each teaching. The operator fine-tunes the welding parameters according to the welding quality until the welding quality is stable. For welds with complex curves in space, the operator needs to perform long-term teaching operations and multiple trial welding operations, and then modify the welding trajectory of the welding robot to ensure the accuracy of welding, resulting in a large waste of manpower and material resources. To this end, we propose a robot programming-free welding method based on handheld rigid body teaching. Summary of the invention
[0004] The main purpose of the present invention is to provide a robot programming-free welding method based on handheld rigid body teaching, which can effectively solve the problems in the background technology.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is:
[0006] Robot programming-free welding method based on handheld rigid body teaching, including:
[0007] Construct a three-dimensional teaching space coordinate system and obtain the coordinates (x i ,y i ,z i ), where x i ,y i ,z i are respectively the coordinate values of the i-th positioning camera in the three-dimensional teaching space coordinate system;
[0008] The center position of the end of the positioning rigid body is marked, and the marked position is used as a reference point. The handheld positioning rigid body is moved along the weld trajectory of the workpiece to be welded in the constructed three-dimensional teaching space coordinate system. The moving process meets the following conditions:
[0009]
[0010] In the formula, v rpt It is expressed as the moving speed value of the positioning rigid body at time t during the moving process; v max It is expressed as the maximum moving speed of the positioning rigid body during the moving process; Δv max It is expressed as the maximum value of the difference between the moving speed of the positioning rigid body at time t+1 and time t during the movement process; d rpt It is expressed as the minimum distance between the positioning rigid body and the weld centerline of the workpiece to be welded at time t during the movement process; Δd max It is expressed as the maximum value of the minimum distance difference between the positioning rigid body and the weld center line of the workpiece to be welded at time t+1 and time t during the movement process; T is the total movement time of the positioning rigid body;
[0011] During the movement, the maximum moving speed v of the positioning rigid body max Determine according to the following formula:
[0012]
[0013] In the formula, x t ,y t ,z t are respectively the coordinate values of the motion trajectory points at time t in the three-dimensional teaching space coordinate system during the movement of the positioning rigid body;
[0014] Acquire the positioning parameters between the positioning camera and the reference point in real time, wherein the positioning parameters include a distance value and an azimuth angle;
[0015] Determine the motion trajectory of the reference point according to the obtained positioning parameters, denoted as in, are the coordinate values of the motion trajectory of the reference point in the three-dimensional teaching space coordinate system, and specifically include the following steps:
[0016] S01: Obtain the distance value d between the i-th positioning camera and the reference point at time t it and azimuth angle θ it ;
[0017] S02: According to the coordinates (x i ,y i ,z i ) and the distance value dit and azimuth angle θ obtained itBack-calculate the coordinates of the reference points to obtain the i-group back-calculated coordinates of the reference points at time t, which are recorded as:
[0018]
[0019] S03: Perform cluster analysis on the reference points obtained to obtain all reference points and the inverse coordinates of the reference points when they have the maximum density state. Among them, j∈i, the specific steps are:
[0020] S031: Calculate the distance between any two reference points at time t, and obtain the maximum distance value in the calculation result, which is recorded as
[0021] S032: Set the radius ε, where the value range of the radius ε is Taking any reference point as the center, obtain the number of reference points whose distance from the reference point is less than or equal to the radius ε;
[0022] S033: Obtaining the reference point state with the maximum number in step 2 as the maximum density state, obtaining the inverse coordinates of the reference point and all reference points whose distances from the reference point are less than or equal to the radius ε;
[0023] S04: The mean coordinates of all reference points at the time of maximum density are taken as the movement of the reference point at time t
[0024]
[0025] The motion trajectory will be obtained The coordinate values of each point on the welding robot are converted into the welding robot coordinate system to obtain the welding trajectory, which is recorded as in, are the coordinate values of the welding trajectory points in the welding robot coordinate system.
[0026] The present invention has the following beneficial effects:
[0027] Compared with the prior art, the technical solution of the present invention obtains the coordinates (x i ,y i ,z i ), where x i ,y i ,z iare the coordinate values of the ith positioning camera in the three-dimensional teaching space coordinate system, the center position of the end of the positioning rigid body is marked, and the marked position is used as a reference point. The handheld positioning rigid body is moved along the weld trajectory of the workpiece to be welded in the constructed three-dimensional teaching space coordinate system, and the positioning parameters between the positioning camera and the reference point are obtained in real time. The positioning parameters include distance value and azimuth. The motion trajectory of the reference point is determined according to the obtained positioning parameters, which is recorded as f=(x, y, z), where x, y, and z are the coordinate values of the motion trajectory of the reference point in the three-dimensional teaching space coordinate system, respectively. The coordinate values of each point on the acquired motion trajectory f=(x, y, z) are converted into the welding robot coordinate system to obtain the welding trajectory, which is recorded as f'=(x', y', z'), wherein x', y', z' are the coordinate values of the welding trajectory points in the welding robot coordinate system, respectively. By controlling the acquisition parameters in the acquisition and teaching process, the acquisition teaching process and welding parameters are made more accurate, and the number of trial welding after the teaching operation is reduced. At the same time, multiple positioning cameras are used to position the welding trajectory, which can improve the welding accuracy and is suitable for the welding process control of welds with complex curves in space. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of the overall structure of the robot programming-free welding method based on handheld rigid body teaching of the present invention;
[0029] Figure 2 This is a schematic diagram of the positioning camera distribution;
[0030] Figure 3 It is a schematic diagram of the moving route of the positioning rigid body when the weld trajectory is a straight line;
[0031] Figure 4 It is a schematic diagram of the positioning process of the welding trajectory when the welding seam trajectory is a straight line;
[0032] Figure 5 This is a schematic diagram of the positioning process of the welding trajectory when the weld trajectory is a curve. DETAILED DESCRIPTION
[0033] The present invention will be further described below in conjunction with specific implementation methods, wherein the accompanying drawings are only used for exemplary descriptions and represent only schematic diagrams rather than actual drawings, and should not be understood as limiting the present invention. In order to better illustrate the specific implementation methods of the present invention, some parts of the accompanying drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product.
[0034] Example 1
[0035] like Figure 1-3 As shown, when the weld trajectory is a straight line, the specific implementation process of the technical solution of the present invention includes the following steps:
[0036] Step 1: Build Figure 2 The three-dimensional teaching space coordinate system shown in the figure obtains the coordinates (x i ,y i ,z i ), where x i ,y i ,z i are the coordinate values of the i-th positioning camera in the three-dimensional teaching space coordinate system;
[0037] It should be noted that the number of positioning cameras is not less than three groups, and at least one group of positioning cameras is not installed on the same side of the weld track as the other positioning cameras. In this embodiment, the number of positioning cameras is four groups, and the positioning cameras are distributed in pairs on different sides of the weld track. Figure 2 As shown in the distribution diagram of the positioning camera, the coordinates of the positioning camera in the three-dimensional teaching space coordinate system are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), and (x4, y4, z4), where L is the weld trajectory of the workpiece to be welded;
[0038] Step 2: Mark the center position of the end of the positioning rigid body, use the marked position as a reference point, and move the handheld positioning rigid body along the weld trajectory of the workpiece to be welded in the constructed three-dimensional teaching space coordinate system;
[0039] It should be noted that an object with a regular shape can be selected as the positioning rigid body, and the shape of the end of the positioning rigid body is preferably a regular shape with a clear center position, such as Figure 3 As shown in the figure, when the handheld positioning rigid body moves along the weld track of the workpiece to be welded in the constructed three-dimensional teaching space coordinate system, the center position of the end of the positioning rigid body, that is, the moving speed of the reference point and the minimum distance between the reference point and the weld center line of the workpiece to be welded should meet the following conditions, specifically:
[0040]
[0041] In the formula, v rpt It is expressed as the moving speed value of the positioning rigid body at time t during the moving process; v max It is expressed as the maximum moving speed of the positioning rigid body during the moving process; Δv max It is expressed as the maximum value of the difference between the moving speed of the positioning rigid body at time t+1 and time t during the movement process; d rpt It is expressed as the minimum distance between the positioning rigid body and the weld centerline of the workpiece to be welded at time t during the movement process; Δd maxIt is expressed as the maximum value of the minimum distance difference between the positioning rigid body and the weld center line of the workpiece to be welded at time t+1 and time t during the movement process; T is the total movement time of the positioning rigid body, and the maximum movement speed v of the positioning rigid body during the movement process max Determine according to the following formula:
[0042]
[0043] In the formula, They are the coordinate values of the motion trajectory points at time t in the three-dimensional teaching space coordinate system during the movement of the positioning rigid body. Figure 3 When the straight line is shown, the coordinate z values of each point on its trajectory are equal, so the above formula can be:
[0044]
[0045] Step 3: Obtain the positioning parameters between the positioning camera and the reference point in real time, the positioning parameters including the distance value and the azimuth angle;
[0046] It should be noted that if Figure 4 As shown, when the handheld positioning rigid body moves along the weld trajectory of the workpiece to be welded in the constructed three-dimensional teaching space coordinate system, a set of positioning parameters is obtained between a set of positioning cameras and a reference point at time t, and a coordinate of a reference point can be calculated using any set of positioning parameters;
[0047] Step 4: Determine the motion trajectory of the reference point based on the obtained positioning parameters, denoted as in, are the coordinate values of the motion trajectory of the reference point in the three-dimensional teaching space coordinate system, and specifically include the following steps:
[0048] S01: Obtain the distance value d between the i-th positioning camera and the reference point at time t it and azimuth angle θ it ;
[0049] S02: According to the coordinates (x i ,y i ,z i ) and the distance value dit and azimuth angle θ obtained it Back-calculate the coordinates of the reference points to obtain the i-group back-calculated coordinates of the reference points at time t, which are recorded as:
[0050]
[0051] S03: Perform cluster analysis on the reference points obtained to obtain all reference points and the inverse coordinates of the reference points when they have the maximum density state. Among them, j∈i, the specific steps are:
[0052] S031: Calculate the distance between any two reference points at time t, and obtain the maximum distance value in the calculation result, which is recorded as
[0053] S032: Set the radius ε, where the value range of the radius ε is: Taking any reference point as the center, obtain the number of reference points whose distance from the reference point is less than or equal to the radius ε;
[0054] S033: Obtaining the reference point state with the maximum number in step 2 as the maximum density state, obtaining the inverse coordinates of the reference point and all reference points whose distances from the reference point are less than or equal to the radius ε;
[0055] S04: The mean coordinates of all reference points at the time of maximum density are taken as the coordinates of the motion trajectory point of the reference point at time t in,
[0056] Step 5: Get the motion trajectory The coordinate values of each point on the welding robot are converted into the welding robot coordinate system to obtain the welding trajectory, which is recorded as in, are the coordinate values of the welding trajectory points in the welding robot coordinate system.
[0057] Example 2
[0058] like Figure 1-2 , Figure 5 As shown, when the weld trajectory is a curve, the specific implementation process of the technical solution of the present invention includes the following steps:
[0059] Step 1: Build Figure 2 The three-dimensional teaching space coordinate system shown in the figure obtains the coordinates (x i ,y i ,z i ), where x i ,y i ,z i are the coordinate values of the i-th positioning camera in the three-dimensional teaching space coordinate system;
[0060] It should be noted that the number of positioning cameras is not less than three groups, and at least one group of positioning cameras is not installed on the same side of the weld track as the other positioning cameras. In this embodiment, the number of positioning cameras is four groups, and the positioning cameras are distributed in pairs on different sides of the weld track. Figure 5As shown in the distribution diagram of the positioning camera, the coordinates of the positioning camera in the three-dimensional teaching space coordinate system are (x1, y1, z1), (x2, y2, z2), (x3, y3, z3), and (x4, y4, z4), where L is the weld trajectory of the workpiece to be welded;
[0061] Step 2: Mark the center position of the end of the positioning rigid body, use the marked position as a reference point, and move the handheld positioning rigid body along the weld trajectory of the workpiece to be welded in the constructed three-dimensional teaching space coordinate system;
[0062] It should be noted that an object with a regular shape can be selected as the positioning rigid body, and the shape of the end of the positioning rigid body is preferably a regular shape with a clear center position, such as Figure 5 As shown in the figure, when the handheld positioning rigid body moves along the weld track of the workpiece to be welded in the constructed three-dimensional teaching space coordinate system, the center position of the end of the positioning rigid body, that is, the moving speed of the reference point and the minimum distance between the reference point and the weld center line of the workpiece to be welded should meet the following conditions, specifically:
[0063]
[0064] In the formula, v rpt It is expressed as the moving speed value of the positioning rigid body at time t during the moving process; v max It is expressed as the maximum moving speed of the positioning rigid body during the moving process; Δv max It is expressed as the maximum value of the difference between the moving speed of the positioning rigid body at time t+1 and time t during the movement process; d rpt It is expressed as the minimum distance between the positioning rigid body and the weld centerline of the workpiece to be welded at time t during the movement process; Δd max It is expressed as the maximum value of the minimum distance difference between the positioning rigid body and the weld center line of the workpiece to be welded at time t+1 and time t during the movement process; T is the total movement time of the positioning rigid body, and the maximum movement speed v of the positioning rigid body during the movement process max Determine according to the following formula:
[0065]
[0066] In the formula, They are the coordinate values of the motion trajectory points at time t in the three-dimensional teaching space coordinate system during the movement of the positioning rigid body;
[0067] Step 3: Obtain the positioning parameters between the positioning camera and the reference point in real time, the positioning parameters including the distance value and the azimuth angle;
[0068] It should be noted that if Figure 5As shown, when the handheld positioning rigid body moves along the weld trajectory of the workpiece to be welded in the constructed three-dimensional teaching space coordinate system, a set of positioning parameters is obtained between a set of positioning cameras and a reference point at time t, and a coordinate of a reference point can be calculated using any set of positioning parameters;
[0069] Step 4: Determine the motion trajectory of the reference point based on the obtained positioning parameters, denoted as Among them, x, y, and z are the coordinate values of the motion trajectory of the reference point in the three-dimensional teaching space coordinate system, which specifically includes the following steps:
[0070] S01: Obtain the distance value d between the i-th positioning camera and the reference point at time t it and azimuth angle θ it ;
[0071] S02: According to the coordinates (x i ,y i ,z i ) and the distance value dit and azimuth angle θ obtained it Back-calculate the coordinates of the reference points to obtain the i-group back-calculated coordinates of the reference points at time t, which are recorded as:
[0072]
[0073] S03: Perform cluster analysis on the reference points obtained to obtain all reference points and the inverse coordinates of the reference points when they have the maximum density state. Among them, j∈i, the specific steps are:
[0074] S031: Calculate the distance between any two reference points at time t, and obtain the maximum distance value in the calculation result, which is recorded as
[0075] S032: Set the radius ε, where the value range of the radius ε is: Taking any reference point as the center, obtain the number of reference points whose distance from the reference point is less than or equal to the radius ε;
[0076] S033: Obtaining the reference point state with the maximum number in step 2 as the maximum density state, obtaining the inverse coordinates of the reference point and all reference points whose distances from the reference point are less than or equal to the radius ε;
[0077] S04: The mean coordinates of all reference points at the time of maximum density are taken as the coordinates of the motion trajectory point of the reference point at time t in,
[0078] Step 5: Get the motion trajectory The coordinate values of each point on the welding robot are converted into the welding robot coordinate system to obtain the welding trajectory, which is recorded as in, are the coordinate values of the welding trajectory points in the welding robot coordinate system.
[0079] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A robot programming-free welding method based on handheld rigid body teaching, characterized in that: include: Construct a three-dimensional teaching space coordinate system and obtain the coordinates (x i ,y i ,z i ), where x i ,y i ,z i are respectively the coordinate values of the i-th positioning camera in the three-dimensional teaching space coordinate system; The center position of the end of the positioning rigid body is marked, and the marked position is used as a reference point. The handheld positioning rigid body is moved along the weld trajectory of the workpiece to be welded in the constructed three-dimensional teaching space coordinate system; Acquire the positioning parameters between the positioning camera and the reference point in real time, wherein the positioning parameters include a distance value and an azimuth angle; Determine the motion trajectory of the reference point according to the obtained positioning parameters, denoted as in, are the coordinate values of the motion trajectory of the reference point in the three-dimensional teaching space coordinate system; The acquired motion trajectory The coordinate values of each point on the welding robot are converted into the welding robot coordinate system to obtain the welding trajectory, which is recorded as in, are the coordinate values of the welding trajectory points in the welding robot coordinate system.
2. The robot programming-free welding method based on handheld rigid body teaching according to claim 1 is characterized in that: When the handheld positioning rigid body moves in the constructed three-dimensional teaching space coordinate system, the following conditions are met: In the formula, v rpt It is expressed as the moving speed value of the positioning rigid body at time t during the moving process; v max It is expressed as the maximum moving speed of the positioning rigid body during the moving process; Δv max It is expressed as the maximum value of the difference between the moving speed of the positioning rigid body at time t+1 and time t during the movement process; d rpt It is expressed as the minimum distance between the positioning rigid body and the weld centerline of the workpiece to be welded at time t during the movement process; Δd max It is expressed as the maximum value of the minimum distance difference between the positioning rigid body and the weld center line of the workpiece to be welded at time t+1 and time t during the movement process; T is the total movement time of the positioning rigid body.
3. The robot programming-free welding method based on handheld rigid body teaching according to claim 2 is characterized in that: During the movement, the maximum moving speed v of the positioning rigid body max Determine according to the following formula: In the formula, are respectively the coordinate values of the motion trajectory points at time t in the three-dimensional teaching space coordinate system during the movement of the positioning rigid body.
4. The robot programming-free welding method based on handheld rigid body teaching according to claim 1 is characterized in that: The method for obtaining the motion trajectory of the reference point includes the following steps: S01: Obtain the distance value d between the i-th positioning camera and the reference point at time t it and azimuth angle θ it ; S02: According to the coordinates (x i ,y i ,z i ) and the distance value dit and azimuth angle θ obtained it Back-calculate the coordinates of the reference points to obtain the i-group back-calculated coordinates of the reference points at time t, which are recorded as: S03: Perform cluster analysis on the reference points obtained to obtain all reference points and the inverse coordinates of the reference points when they have the maximum density state. Among them, j∈i; S04: The mean coordinates of all reference points at the time of maximum density are taken as the coordinates of the motion trajectory point of the reference point at time t in, 5. The robot programming-free welding method based on handheld rigid body teaching according to claim 4 is characterized in that: The specific steps of S03 are: S031: Calculate the distance between any two reference points at time t, and obtain the maximum distance value in the calculation result, which is recorded as S032: Set the radius ε, take any reference point as the center, and obtain the number of reference points whose distance from the reference point is less than or equal to the radius ε; S033: Obtain the reference point state with the maximum number in step 2 as the maximum density state, and obtain the inverse coordinates of the reference point and all reference points whose distances from the reference point are less than or equal to the radius ε.
6. The robot programming-free welding method based on handheld rigid body teaching according to claim 5 is characterized in that: The value range of radius ε is:
7. The robot programming-free welding method based on handheld rigid body teaching according to claim 1 is characterized in that: The number of the positioning cameras is no less than three groups, and at least one group of positioning cameras is not arranged on the same side of the weld track as the other positioning cameras.
