Six-axis robot seam tracking method based on linear time-varying model predictive control

By using a predictive control method based on a linear time-varying model, combined with visual sensors and robot kinematics models, the problems of high precision and stability in robot tracking of weld seams in complex spaces were solved, and the robot end effector achieved high responsiveness and smooth motion.

CN123149667APending Publication Date: 2026-11-24NORTHEASTERN UNIV AT QINHUANGDAO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611376597.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-07
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies struggle to achieve high-precision continuous tracking of complex spatial welds while meeting robot motion constraints. This is especially true when weld shape changes or model errors exist during robot motion, making high-precision tracking difficult. Furthermore, end effector motion is prone to accumulating tracking errors, posture deviations, and discontinuous joint movements.

Method used

A linear time-varying model-based predictive control method is adopted. The spatial feature information of the weld seam is obtained through a visual sensor, a local weld seam dataset is established, the target pose sequence of the robot end effector is generated, and a six-dimensional pose error state model is constructed in combination with the robot kinematic model. A discrete linear time-varying predictive model is established to perform incremental control of the robot joints and realize weld seam tracking control.

Benefits of technology

It improves the tracking accuracy and stability of complex spatial curve welds, reduces tracking deviation caused by robot response lag, ensures the continuity and smoothness of robot motion, and enhances the robot's ability to coordinate position and attitude control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123149667A_ABST
    Figure CN123149667A_ABST
Patent Text Reader

Abstract

This invention discloses a six-axis robot weld seam tracking method based on linear time-varying model predictive control, belonging to the field of intelligent welding robot control technology. The method utilizes a vision sensor to collect weld seam feature information and perform 3D reconstruction to obtain the spatial weld seam trajectory; it generates a robot end-effector target pose sequence based on the weld seam geometric features, and calculates the reference trajectory and Jacobian matrix using the robot's kinematic model; it establishes a linear time-varying predictive model based on the six-dimensional pose error of the end-effector, using joint increments as control inputs and introducing a reference velocity compensation term to construct a state-space model; and it uses a model predictive controller to perform rolling optimization of the end-effector error in the prediction time domain to obtain the optimal joint increment that satisfies joint constraints, thereby achieving weld seam tracking control. This invention solves the problems of difficult coordinated control of end-effector position and attitude and insufficient trajectory change compensation capability in complex spatial weld seam tracking, improving the stability and tracking accuracy in intelligent welding operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application designs a welding robot tracking control method, specifically a six-axis robot weld seam tracking control method based on linear time-varying model predictive control. Background Technology

[0002] With the rapid development of intelligent manufacturing, intelligent welding technology is widely used in aerospace, automotive, shipbuilding, and power electronics industries. In actual welding processes, weld seams typically exhibit spatial curve characteristics, and welding quality is influenced by the welding torch position, orientation, and motion continuity. Therefore, achieving high-precision and stable tracking of complex spatial weld seam trajectories by the robot's end effector is one of the key technologies for realizing automated operations in intelligent welding systems.

[0003] For the problem of robot weld seam tracking, existing research mainly employs trajectory correction methods based on visual feedback, error compensation control methods, and model-based robot motion control methods. Some of these methods rely on pre-planned fixed trajectories, making it difficult to adjust the end effector's motion state in a timely manner when the weld seam shape changes or model errors occur during robot movement, leading to decreased tracking accuracy. Some error feedback-based control methods primarily use current-moment error information for compensation, but their adaptability to complex spatial weld seam issues such as trajectory curvature changes, motion lag, and pose-attitude coupling remains insufficient.

[0004] Furthermore, when a six-axis robot performs spatial curve welding tasks, the end effector needs to simultaneously satisfy position and orientation constraints. Its motion is limited by factors such as joint angle range, joint motion speed, and rate of change of control input. Existing methods often struggle to balance the accuracy of six-dimensional pose tracking and the smoothness of robot motion during complex trajectory tracking. When the weld trajectory has significant curvature changes or dynamic disturbances, problems such as tracking error accumulation, orientation deviation, and discontinuous joint motion can easily arise.

[0005] Therefore, how to achieve high-precision continuous tracking of complex spatial welds while satisfying robot motion constraints is an urgent problem to be solved in the field of intelligent welding robots. Summary of the Invention

[0006] To address the shortcomings of existing technologies, the present invention aims to propose a six-axis robot weld seam tracking method based on linear time-varying model predictive control, comprising:

[0007] During the robot welding process, a vision sensor installed at the front end of the welding torch is used to acquire the spatial feature information of the weld seam within a preset distance range in front. Based on the feature extraction results, a continuously updated local weld seam dataset is established, and the space of the currently available weld seam area is reconstructed to obtain the local weld seam trajectory in the robot's workspace.

[0008] The tangential direction and attitude reference direction of the weld are calculated using the spatial geometric features of the local weld trajectory, generating the target pose sequence of the robot end effector, and the corresponding joint reference trajectory is obtained by combining the robot kinematic model.

[0009] A six-dimensional pose error model is established by combining the current actual pose of the robot end effector with the target pose sequence, and the position error and attitude error are described in a unified manner to construct a robot weld seam tracking error state model.

[0010] A discrete linear time-varying prediction model is established based on the robot Jacobian matrix. The robot joint increment is used as the control input, and a compensation term for the change rate of the reference trajectory is introduced to construct a state-space model for predicting the change of end-effector error.

[0011] A model is established based on the reference pose information in the prediction time domain to predict the control optimization problem. The optimal joint increment is solved by combining the robot joint motion constraints, and the end effector of the six-axis robot is driven to move along the spatial weld seam trajectory to achieve weld seam tracking control.

[0012] Optionally, methods for obtaining spatial weld trajectories include:

[0013] Images of the weld area are acquired using a vision sensor installed in front of the robot's end effector. After the weld feature points are extracted using a deep learning algorithm, the weld feature points located in front of the robot's direction of motion at the time of acquisition are transformed into the robot's workspace coordinate system using the spatial positional relationship between the vision sensor and the robot's end effector.

[0014] Based on the robot's current motion state and welding speed, the continuously acquired 3D feature points are spatially sorted and parameterized by arc length. Combining the current control cycle and prediction time length, a correspondence between weld arc length and time is established, and an arc length-time joint reference queue for robot predictive control is constructed. ; in, Indicates the first The weld parameter queue corresponding to each control cycle Corresponding arc length parameter The corresponding spatial weld location, Indicates the prediction time length of the model predictive control;

[0015] The arc length-time joint reference queue is updated in real time as the robot welds, to ensure that the prediction time domain includes weld trajectory information corresponding to the future movement of the robot end effector.

[0016] Optionally, methods for generating the robot end-effector pose based on the arc-time joint reference queue include:

[0017] Based on the spatial weld seam trajectory information in the reference trajectory queue, calculate the attitude constraint relationship of the robot end effector along the weld seam movement direction and establish the robot end tool coordinate system;

[0018] By combining the welding torch length parameter and the tool coordinate system direction, offset compensation is performed on the welding torch TCP position: ; in, This indicates the compensated target position of the robot's end effector. Indicates the target position of the weld trajectory. This indicates the length parameter of the welding torch tool. Represents the unit vector along the axis of the tool coordinate system;

[0019] Generate the robot target pose matrix based on the compensated TCP position and end-effector attitude information: ; in, This indicates the target pose of the robot's end effector. This represents the robot's end-effector pose matrix.

[0020] Optionally, methods for obtaining the corresponding joint reference trajectories by combining the robot's kinematic model include:

[0021] Establish the kinematic mapping relationship between the robot's end-effector pose and joint variables: ; in, This represents the homogeneous transformation matrix from the robot's base coordinate system to the end effector's coordinate system. Indicates the first The coordinate transformation matrix corresponding to each joint Indicates the first One robot joint variable;

[0022] Based on the target pose matrix Solve for the robot joint variables that satisfy the end-effector position and orientation constraints: ; in, Indicates the first The robot joint reference state corresponding to each weld trajectory point This represents the solution of the robot's inverse kinematics;

[0023] To ensure the continuity of robot motion during continuous welding, the joint state at the previous sampling moment is used as the initial value for solving the inverse kinematics of the current trajectory point;

[0024] The robot joint reference trajectory corresponding to each weld trajectory point in the prediction queue is obtained using the above method: .

[0025] Optionally, methods for establishing the six-dimensional pose error state of the robot's end effector include:

[0026] Based on the current joint state of the robot, the actual pose of the end effector is obtained through the robot's forward kinematics model: ; in, Indicates the first The actual pose matrix of the robot's end effector at each sampling time. This represents the rotation matrix of the robot's end effector. This represents the actual position vector of the robot's end effector.

[0027] Calculate the robot end-effector position error based on the target pose matrix: ; in, Indicates the end position error. Indicates the target location corresponding to the reference trajectory;

[0028] Calculate the end-effector attitude error based on the rotation relationship between the actual attitude matrix and the target attitude matrix: ; in, This represents the rotation error matrix between the actual attitude and the target attitude. Represents the target attitude rotation matrix;

[0029] The attitude error vector is obtained from the rotation error matrix: ; in, This represents the end-effector attitude error vector. Represents a logarithmic mapping of rotation matrices;

[0030] By combining position error and attitude error, a six-dimensional pose error state is established during the robot's weld seam tracking process: .

[0031] Optional methods for establishing linear time-varying prediction models include:

[0032] Based on the mapping relationship between the robot's end effector velocity and joint velocities, a kinematic model of the robot's end effector is established: ; in, This indicates the six-dimensional velocity of the robot's end effector. The Jacobian matrix represents the six-DOF robotic arm. Indicates the speed of the robot's joints;

[0033] Based on the robot joint reference states in the prediction queue, calculate the Jacobian matrix sequence at the corresponding time points: ; in, This represents the set of robot Jacobian matrices within the prediction window during weld seam tracking, which is used to subsequently establish a linear time-varying prediction model based on the end-effector pose error.

[0034] use Joint increments are used as control inputs for model prediction.

[0035] Based on the Jacobian matrix of the robot's current motion state, the six-dimensional pose error state is discretized, and a linear time-varying state space model is established: , ; in, This represents the state matrix that changes with the robot's motion state. Represents the control input matrix. This represents the compensation term introduced by the velocity of the reference trajectory. Represents a six-dimensional identity matrix. Indicates the first Robot joint state at each sampling time point This represents the desired end velocity corresponding to the target weld trajectory.

[0036] Optionally, methods for constructing the prediction matrix based on a linear time-varying model include:

[0037] In the prediction time domain Within this model, the established discrete linear time-varying state-space model is recursively expanded to obtain the error prediction model for multiple future sampling periods: ; in, This represents the sequence of six-dimensional pose errors of the robot's end effector in the time domain. This represents the incremental control sequence of robot joints in the predictive control time domain. This represents the sequence of reference velocity compensation terms in the prediction time domain. The state prediction matrix is ​​used to describe the impact of the current robot end-effector error state on future prediction errors. The control input matrix is ​​used to describe the effect of robot joint increments on future end-effector pose error. The reference compensation matrix is ​​used to describe the impact of changes in weld trajectory motion on robot tracking error.

[0038] Optionally, the model predictive control optimization problem includes prediction error cost, control input cost, and control rate of change constraint, and its objective function is expressed as: ; in, This represents the objective function for predictive control optimization of the model. This indicates the change in control increment between adjacent control cycles. The prediction error weight matrix is ​​used to constrain the accuracy of robot end-effector position and attitude tracking. This indicates that the control input weight matrix is ​​used to limit the amplitude of robot joint motion. The control rate of change weight matrix is ​​used to improve the smoothness of robot motion; The model predictive control optimization process satisfies robot motion constraints, including: (1) Joint Increment Constraints: ,in This indicates the maximum allowable change in joint angles within a single control cycle of the robot. This indicates the minimum allowable change in joint angles within a single control cycle of the robot; (2) Joint position constraints: ,in Indicates the current position of the robot's joints. These represent the minimum and maximum allowable positions for each joint of the robot; (3) Controlling the rate of change constraint: ,in This represents the rate of change of joint increment within adjacent control cycles. This indicates the maximum rate of change in control that the robot is allowed to undergo.

[0039] Optionally, model predictive control uses a rolling optimization approach to solve for the robot joint control variables, specifically including:

[0040] Based on the robot's six-dimensional positional error state obtained in the current sampling period, the reference pose sequence in the prediction time domain, and the robot's motion constraints, the model predictive control optimization problem is solved to obtain the optimal joint incremental control sequence in the prediction time domain. ; in, This represents the optimal joint incremental control sequence that satisfies the constraints within the prediction time domain;

[0041] Select the first set of control variables corresponding to the current control cycle from the optimal joint incremental control sequence: ; in, This represents the optimal incremental control value for the six joints of the robot within the current sampling period;

[0042] Update the robot joint state based on the joint increment control value: ;

[0043] Based on the updated robot joint states, the actual pose of the robot end effector is calculated using forward kinematics, and the six-dimensional pose error of the end effector is recalculated. At the same time, the arc length-time joint reference queue is updated based on the weld feature information updated by the vision sensor, and the prediction model and optimization problem for the next sampling period are reconstructed.

[0044] The beneficial effects of adopting the above technical solution are as follows: (1) This invention utilizes the spatial trajectory information of the weld seam to establish the reference motion trajectory of the robot end effector, and combines the robot kinematic model to construct a six-dimensional pose error state. By establishing a linear time-varying prediction model to describe the change law of the robot motion state, the controller can adjust the robot motion state in advance according to the trajectory change trend in the future prediction time domain, reduce the tracking deviation caused by the robot response lag, and improve the tracking accuracy of complex spatial curve weld seams. (2) The present invention adopts a rolling optimization method based on model predictive control, which integrates the end position and attitude error, reference speed compensation term and robot joint motion constraints into the control optimization process. By solving the optimal joint increment, the robot end motion control is realized, which improves the robot's position and attitude coordinated control capability while ensuring trajectory tracking accuracy. (3) Furthermore, by setting joint increment constraints, joint position constraints and control change rate constraints, the present invention limits the range of joint changes during robot movement, avoids robot movement instability caused by sudden changes in control input, enables the machine to maintain a continuous and smooth movement state, and improves the stability of the welding process. Attached Figure Description

[0045] Figure 1 This is a flowchart illustrating the six-axis robot weld seam tracking method based on linear time-varying model predictive control in an embodiment of the present invention. Figure 1 ;

[0046] Figure 2 This is a simulation result diagram of the robot end effector tracking the S-shaped weld in an embodiment of the present invention;

[0047] Figure 3 This invention relates to the position error of the robotic arm's end effector tracking the weld seam trajectory in an embodiment of the invention, where (a) is a position tracking error diagram, and (b) is... Error diagram of direction;

[0048] Figure 4 This is a diagram showing the attitude tracking error of the robotic arm's end effector tracking the weld seam trajectory in an embodiment of the present invention, wherein (a) is the attitude tracking error diagram and (b) is... Error diagram of direction;

[0049] Figure 5 The figures represent the joint motion states in this embodiment of the invention, where (a) is the curve of the incremental change of the robotic arm joint, and (b) is the curve of the change of the robotic arm joint velocity. Detailed Implementation

[0050] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and examples. Obviously, the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort should fall within the scope of protection of the present invention.

[0051] To address the problems existing in the prior art, this invention provides a six-axis robot weld seam tracking method based on linear time-varying model predictive control. This method combines visually acquired weld seam spatial information, robot end-effector pose planning, and linear time-varying model predictive control to achieve high responsiveness and tracking stability of the intelligent robot in response to complex spatial weld seam trajectory changes.

[0052] Specifically, in combination Figure 1 The six-axis robot weld seam tracking method based on linear time-varying model predictive control provided by the present invention may include the following steps:

[0053] Step 1: During the robot welding process, the vision sensor installed at the front end of the welding torch is used to obtain the spatial feature information of the weld seam within a preset distance range in front. Based on the feature extraction results, a continuously updated local weld seam dataset is established, and the space of the currently available weld seam area is reconstructed to obtain the local weld seam trajectory in the robot's workspace.

[0054] Step 1.1: Use a structured light vision sensor installed in front of the robot's end effector to acquire images of the weld area, and use a deep learning algorithm to extract weld feature points;

[0055] Step 1.2: Based on the spatial relationship between the vision sensor and the robot's end effector, the weld feature points located in front of the robot at the time of acquisition are transformed into the robot's workspace coordinate system to obtain the three-dimensional weld feature points;

[0056] Step 1.3: Based on the robot's current motion state and welding speed, sort the continuously sampled 3D weld feature points according to the spatial arc length parameter to form the preliminary weld trajectory data:

[0057] ; in, Indicates the first The position vector of each weld feature point in the robot's workspace coordinate system. They represent the first The coordinates of a feature point in three directions of the robot's base coordinate system;

[0058] Step 1.4: Calculate the weld arc length parameters based on the spatial distance between adjacent weld feature points: ; in, Indicates the first The cumulative arc length corresponding to each feature point Indicates Euclidean distance calculation;

[0059] Step 1.5: Establish the correspondence between weld arc length and time based on welding speed and control cycle, and construct an arc length-time joint reference queue for robot predictive control: ; in, Indicates the first The weld parameter queue corresponding to each control cycle Corresponding arc length parameter The corresponding spatial weld location, Indicates the prediction time length of the model predictive control;

[0060] The arc length-time joint reference queue is updated in real time as the robot welds, to ensure that the prediction time domain includes weld trajectory information corresponding to the future movement of the robot end effector.

[0061] Step 2: Calculate the tangential direction and attitude reference direction of the weld seam using the spatial geometric features of the local weld seam trajectory, generate the target pose sequence of the robot end effector, and obtain the corresponding joint reference trajectory by combining the robot kinematic model;

[0062] Step 2.1: Calculate the motion direction of the robot's end effector based on the spatial weld feature points in the reference queue: ; in, Indicates the first The unit tangent vector at each weld trajectory point These represent the spatial trajectory points of two adjacent weld seams;

[0063] Step 2.2: Calculate the tool's attitude reference direction based on the local spatial changes of the weld trajectory, and establish the robot end effector's attitude rotation matrix: ; in, Indicates the first The robot end effector posture matrix corresponding to each trajectory point These represent the unit vectors in the three directions of the end-tool coordinate system, respectively.

[0064] Step 2.3: Combine the welding torch length parameters and the tool coordinate system direction to perform offset compensation on the welding torch TCP position: ; in, This indicates the compensated target position of the robot's end effector. Indicates the target position of the weld trajectory. This indicates the length parameter of the welding torch tool. Represents the unit vector along the axis of the tool coordinate system;

[0065] Step 2.4: Generate the robot target pose matrix based on the compensated TCP position and end-effector pose information: ; in, This indicates the target pose of the robot's end effector. This represents the robot's end-effector pose matrix.

[0066] Step 2.5: Establish the kinematic mapping relationship between the robot's end-effector pose and joint variables: ; in, This represents the homogeneous transformation matrix from the robot's base coordinate system to the end effector's coordinate system. Indicates the first The coordinate transformation matrix corresponding to each joint Indicates the first One robot joint variable;

[0067] Based on the target pose matrix Solve for the robot joint variables that satisfy the end-effector position and orientation constraints: ; in, Indicates the first The robot joint reference state corresponding to each weld trajectory point This represents the solution of the robot's inverse kinematics;

[0068] To ensure the continuity of robot motion during continuous welding, the joint state at the previous sampling moment is used as the initial value for solving the inverse kinematics of the current trajectory point; The robot joint reference trajectory corresponding to each weld trajectory point in the prediction queue is obtained using the above method: ;

[0069] Step 3: Establish a six-dimensional pose error model by combining the current actual pose of the robot end effector with the target pose sequence, and describe the position error and attitude error in a unified manner to construct a robot weld seam tracking error state model;

[0070] Step 3.1: Based on the current joint state of the robot, obtain the actual pose of the end effector using the robot's forward kinematics model: ; in, Indicates the first The actual pose matrix of the robot's end effector at each sampling time. This represents the rotation matrix of the robot's end effector. This represents the actual position vector of the robot's end effector.

[0071] Step 3.2: Calculate the robot end-effector position error based on the target pose matrix: ; in, Indicates the end position error. Indicates the target location corresponding to the reference trajectory;

[0072] Step 3.3: Calculate the end-effector attitude error based on the rotation relationship between the actual attitude matrix and the target attitude matrix: ; in, This represents the rotation error matrix between the actual attitude and the target attitude. This represents the target attitude rotation matrix.

[0073] The attitude error vector is obtained from the rotation error matrix: ; in, This represents the end-effector attitude error vector. This represents a logarithmic mapping of a rotation matrix.

[0074] Step 3.4: Combine the position error and attitude error to establish a six-dimensional pose error state during the robot weld seam tracking process: ; in, This indicates the six-dimensional pose error state of the robot's end effector. These represent the positional errors of the robot's end effector in three spatial directions. These represent the attitude errors in the three axes of the robot's end effector coordinate system.

[0075] Step 4: Establish a discrete linear time-varying prediction model based on the robot Jacobian matrix, using the robot joint increment as the control input, and introduce a compensation term for the change rate of the reference trajectory to construct a state-space model for predicting the change of end-effector error.

[0076] Step 4.1: Calculate the corresponding Jacobian matrix based on the robot reference trajectory to establish the mapping relationship between the robot's end effector velocity and joint velocities:

[0077] Based on the current joint status of the robot Calculate the speed of the robot's end effector:

[0078] in, This indicates the six-dimensional velocity of the robot's end effector. The Jacobian matrix represents the current joint state of the robot; Indicates the speed of the robot's joints;

[0079] Step 4.2: Calculate the Jacobian matrix sequence at the corresponding time step based on the robot joint reference states in the prediction queue: ; in, This represents the set of robot Jacobian matrices within the prediction window during weld seam tracking, which is used to subsequently establish a linear time-varying prediction model based on the end-effector pose error.

[0080] Step 4.3: Use joint increments as the model predictive control input: ; in, Indicates the first Control input for each control cycle, Indicates the increment of the robot's joint angle. This represents the robot's joint variables at the current moment;

[0081] Based on the Jacobian matrix of the robot's current motion state, during the sampling period The six-dimensional pose error state is discretized to obtain: ; in, This represents the expected velocity of the end effector corresponding to the reference trajectory, used to describe the position and attitude change trend of the weld trajectory within the current sampling period;

[0082] Step 4.4: Rearrange the above error update model into a linear time-varying state-space form: , ; in, This represents the state matrix that changes with the robot's motion state. Represents the control input matrix. This represents the compensation term introduced by the velocity of the reference trajectory. This represents a six-dimensional identity matrix.

[0083] Step 5: Based on the reference pose information in the prediction time domain, establish a model predictive control optimization problem, solve the optimal joint increment by combining robot joint motion constraints, and drive the six-axis robot end effector to move along the spatial weld seam trajectory to achieve weld seam tracking control.

[0084] Step 5.1: In the prediction time domain Within this model, the established discrete linear time-varying state-space model is recursively expanded to obtain the error prediction model for multiple future sampling periods: ; in, This represents the sequence of six-dimensional pose errors of the robot's end effector in the time domain. This represents the incremental control sequence of robot joints in the predictive control time domain. This represents the sequence of reference velocity compensation terms in the prediction time domain. The state prediction matrix is ​​used to describe the impact of the current robot end-effector error state on future prediction errors. The control input matrix is ​​used to describe the effect of robot joint increments on future end-effector pose error. The reference compensation matrix is ​​used to describe the impact of changes in weld trajectory motion on robot tracking error.

[0085] Step 5.2: Based on the prediction error cost, control input cost, and control rate of change constraint, construct the following optimization objective function: ; in, This represents the objective function for predictive control optimization of the model. The prediction error weight matrix is ​​used to constrain the accuracy of robot end-effector position and attitude tracking. This indicates that the control input weight matrix is ​​used to limit the amplitude of robot joint motion. The control rate of change weight matrix is ​​used to improve the smoothness of robot motion. This indicates the change in control increment between adjacent control cycles; The prediction error weight matrix and the control input weight matrix are respectively expressed as: ; in, This represents the identity matrix corresponding to the prediction time domain. This represents the identity matrix corresponding to the control time domain. Represents the Kronecker product. This represents the end-effector pose error weight matrix within a single sampling period. This represents the joint increment weight matrix within a single sampling period.

[0086] Step 5.3: Constrain the optimization variables according to the motion constraints of the six-axis robot;

[0087] Considering the robot's shutdown motion range and motion continuity requirements during actual welding, joint increment constraints are set for the control input: ; in, This indicates the maximum allowable change in joint angles within a single control cycle of the robot.

[0088] At the same time, joint position constraints are set according to the actual range of motion of each joint of the robot: ; in, These represent the minimum and maximum allowable positions for each joint of the robot;

[0089] Furthermore, to avoid abrupt changes in the control input, constraints are imposed on the rate of change of control:

[0090] in, This represents the rate of change of joint increment within adjacent control cycles. This indicates the maximum rate of change in control that the robot is allowed to undergo.

[0091] Step 5.4: Based on the above objective function and constraints, solve for the optimal joint increment control quantity within the current sampling period using a rolling optimization method to obtain the optimal joint increment control sequence in the prediction time domain: ; in, This represents the optimal joint incremental control sequence that satisfies the constraints within the prediction time domain;

[0092] Select the first set of control variables corresponding to the current control cycle from the optimal joint incremental control sequence: ; in, This represents the optimal incremental control value for the six joints of the robot within the current sampling period;

[0093] Update the robot joint state based on the joint increment control value:

[0094] Step 5.5: Recalculate the actual pose of the robot end effector based on the updated robot joint state, compare it with the expected pose in the reference trajectory queue, and update the end effector pose error state.

[0095] To verify the effectiveness of the six-axis robot weld seam tracking method based on linear time-varying model predictive control proposed in this invention, a motion model of the six-axis robot was established using the MATLAB simulation environment, and the spatial weld seam trajectory tracking process was simulated and analyzed.

[0096] The simulation uses a UR5 six-axis robot model as the control object. The actual pose of the end effector is calculated through the robot's forward kinematics model, the robot joint reference trajectory is obtained through inverse kinematics solution, and the mapping relationship between the robot's end effector velocity and joint velocity is established using the Jacobian matrix.

[0097] During the simulation, the robot control cycle Set to 0.02s, predict time domain Set to 19 to control the time domain. Set to 8. By adjusting the prediction error weight matrix, control input weight matrix, and control rate of change weight matrix, the controller meets the requirements for robot end-effector trajectory tracking accuracy and motion smoothness. At this point, the pose error weight matrix... Joint Increment Weight Matrix Controlling the rate of change weight matrix .

[0098] A tracking experiment was conducted using an S-shaped weld, and the control law designed in step 5 was executed iteratively. The simulation results are as follows: Figure 2-5 As shown. Among them, Figure 2 In the diagram, Reference represents the desired trajectory of the robotic arm's end effector, and Actual represents the actual trajectory. Since the weld seam trajectory is primarily distributed in the XY plane, Figure 2The XY plane projection method is used for visualization, and it can be seen that the actual TCP motion trajectory of the robot's end effector can follow the expected weld seam trajectory change trend well, maintaining high consistency even in complex spatial curve regions. To evaluate the robot's end effector position tracking accuracy, [further details are needed]. The position errors in three directions are analyzed, given the RMSE: ; in, Indicates the first Position error of each sampling point; Figure 3 (a) shows that the average position tracking error is 0.065 mm, with a maximum of 0.25 mm; Figure 4 The posture tracking error diagram shows that the maximum posture error of the robot end effector is 0.81°, indicating that the control method can effectively achieve continuous adjustment of the welding gun posture. Figure 5 (a) and (b) respectively demonstrate the joint increment and velocity changes. The maximum joint increment is approximately 0.8°, and the maximum joint velocity is approximately 110° per second, both of which meet the constraint requirements. All simulation results show that the proposed method can effectively reduce the position and attitude tracking error of the robot's end effector and improve the stability and trajectory following ability of the welding robot during motion.

[0099] Although this application has described the proposed method in detail through preferred embodiments, the above methods are only used to illustrate the technical solution of this application and are not intended to limit the scope of protection of this application. Those skilled in the art can modify, substitute, or transform the specific forms of the above embodiments without departing from the technical concept and scope of protection of this application. Other embodiments formed by the technical features involved in the technical solution of this application and their equivalent substitutions should all be included within the scope of protection of this application. The scope of protection claimed in this application is determined by the content defined in the claims.

Claims

1. A six-axis robot seam tracking method based on linear time-varying model predictive control, characterized by, include: During the robot welding process, a vision sensor installed at the front end of the welding torch is used to acquire the spatial feature information of the weld seam within a preset distance range in front. Based on the feature extraction results, a continuously updated local weld seam dataset is established, and the space of the currently available weld seam area is reconstructed to obtain the local weld seam trajectory in the robot's workspace. The tangential direction and attitude reference direction of the weld are calculated using the spatial geometric features of the local weld trajectory, generating the target pose sequence of the robot end effector, and the corresponding joint reference trajectory is obtained by combining the robot kinematic model. A six-dimensional pose error model is established by combining the current actual pose of the robot end effector with the target pose sequence, and the position error and attitude error are described in a unified manner to construct a robot weld seam tracking error state model. A discrete linear time-varying prediction model is established based on the robot Jacobian matrix. The robot joint increment is used as the control input, and a compensation term for the change rate of the reference trajectory is introduced to construct a state-space model for predicting the change of end-effector error. A model is established based on the reference pose information in the prediction time domain to predict the control optimization problem. The optimal joint increment is solved by combining the robot joint motion constraints, and the end effector of the six-axis robot is driven to move along the spatial weld seam trajectory to achieve weld seam tracking control.

2. The six-axis robot weld seam tracking method based on linear time-varying model predictive control according to claim 1, characterized in that, Methods for obtaining spatial weld trajectories include: Images of the weld area are acquired using a vision sensor installed in front of the robot's end effector. After the weld feature points are extracted using a deep learning algorithm, the weld feature points located in front of the robot's direction of motion at the time of acquisition are transformed into the robot's workspace coordinate system using the spatial positional relationship between the vision sensor and the robot's end effector. Based on the robot's current motion state and welding speed, the continuously acquired 3D feature points are spatially sorted and parameterized by arc length. Combining the current control cycle and prediction time length, a correspondence between weld arc length and time is established, and an arc length-time joint reference queue for robot predictive control is constructed. ; in, Indicates the first The weld parameter queue corresponding to each control cycle Corresponding arc length parameter The corresponding spatial weld location, Indicates the prediction time length of the model predictive control; The arc length-time joint reference queue is updated in real time as the robot welds, to ensure that the prediction time domain includes weld trajectory information corresponding to the future movement of the robot end effector.

3. The six-axis robot weld seam tracking method based on linear time-varying model predictive control according to claim 2, characterized in that, The method for generating the robot end-effector pose based on the arc-time joint reference queue includes: Based on the spatial weld seam trajectory information in the reference trajectory queue, calculate the attitude constraint relationship of the robot end effector along the weld seam movement direction and establish the robot end tool coordinate system; By combining the welding torch length parameter and the tool coordinate system direction, offset compensation is performed on the welding torch TCP position: ; in This indicates the compensated target position of the robot's end effector. Indicates the target position of the weld trajectory. This indicates the length parameter of the welding torch tool. Represents the unit vector along the axis of the tool coordinate system; Generate the robot target pose matrix based on the compensated TCP position and end-effector attitude information: ; in This indicates the target pose of the robot's end effector. This represents the robot's end-effector pose matrix.

4. The six-axis robot weld seam tracking method based on linear time-varying model predictive control according to claim 3, characterized in that, The method for obtaining the corresponding joint reference trajectory by combining the robot's kinematic model includes: Establish the kinematic mapping relationship between the robot's end-effector pose and joint variables: ; in, This represents the homogeneous transformation matrix from the robot's base coordinate system to the end effector's coordinate system. Indicates the first The coordinate transformation matrix corresponding to each joint Indicates the first One robot joint variable; Based on the target pose matrix Solve for the robot joint variables that satisfy the end-effector position and orientation constraints: ; in, Indicates the first The robot joint reference state corresponding to each weld trajectory point This represents the solution of the robot's inverse kinematics; To ensure the continuity of robot motion during continuous welding, the joint state at the previous sampling moment is used as the initial value for solving the inverse kinematics of the current trajectory point; The robot joint reference trajectory corresponding to each weld trajectory point in the prediction queue is obtained using the above method: 。 5. A six-axis robot weld seam tracking method based on linear time-varying model predictive control according to claim 4, characterized in that, The method for establishing the six-dimensional pose error state of the robot's end effector includes: Based on the current joint state of the robot, the actual pose of the end effector is obtained through the robot's forward kinematics model: ; in, Indicates the first The actual pose matrix of the robot's end effector at each sampling time. This represents the actual rotation matrix of the robot's end effector. This represents the actual position vector of the robot's end effector. Based on the target pose matrix obtained in claim 3, calculate the robot end-effector position error: ; in, Indicates the end position error. Indicates the target location corresponding to the reference trajectory; Calculate the end-effector attitude error based on the rotation relationship between the actual attitude matrix and the target attitude matrix: ; in, This represents the rotation error matrix between the actual attitude and the target attitude. Represents the target attitude rotation matrix; The attitude error vector is obtained from the rotation error matrix: ; in, This represents the end-effector attitude error vector. Represents a logarithmic mapping of rotation matrices; By combining position error and attitude error, a six-dimensional pose error state is established during the robot's weld seam tracking process: 。 6. The six-axis robot weld seam tracking method based on linear time-varying model predictive control according to claim 1, characterized in that, The method for establishing the linear time-varying prediction model includes: Based on the mapping relationship between the robot's end effector velocity and joint velocities, a kinematic model of the robot's end effector is established: ; in, This indicates the six-dimensional velocity of the robot's end effector. The Jacobian matrix represents the six-DOF robotic arm. Indicates the speed of the robot's joints; Based on the robot joint reference states in the prediction queue, calculate the Jacobian matrix sequence at the corresponding time points: ; in, This represents the set of robot Jacobian matrices within the prediction window during weld seam tracking, which is used to subsequently establish a linear time-varying prediction model based on the end-effector pose error. use Joint increments are used as control inputs for model prediction. Based on the Jacobian matrix of the robot's current motion state, the six-dimensional pose error state is discretized, and a linear time-varying state space model is established: , ; in, This represents the state matrix that changes with the robot's motion state. Represents the control input matrix. This represents the compensation term introduced by the velocity of the reference trajectory. Represents a six-dimensional identity matrix. Indicates the first Robot joint state at each sampling time point This represents the desired end velocity corresponding to the target weld trajectory. Indicates the sampling period.

7. A method for six-axis robot weld seam tracking based on linear time-varying model predictive control according to claim 6, characterized in that, The method for constructing the prediction matrix based on the linear time-varying model includes: In the prediction time domain Within this model, the established discrete linear time-varying state-space model is recursively expanded to obtain the error prediction model for multiple future sampling periods: ; in, This represents the six-dimensional pose error sequence of the robot's end effector in the time domain. This represents the incremental control sequence of robot joints in the predictive control time domain. This represents the sequence of reference velocity compensation terms in the prediction time domain. The state prediction matrix is ​​used to describe the impact of the current robot end-effector error state on future prediction errors. The control input matrix is ​​used to describe the effect of robot joint increments on future end-effector pose error. The reference compensation matrix is ​​used to describe the impact of changes in weld seam trajectory motion on robot tracking error.

8. A six-axis robot weld seam tracking method based on linear time-varying model predictive control according to claim 7, characterized in that, The model predictive control optimization problem includes prediction error cost, control input cost, and control rate of change constraint, and its objective function is expressed as: ; in, This represents the objective function for predictive control optimization of the model. This indicates the change in control increment between adjacent control cycles. The prediction error weight matrix is ​​used to constrain the accuracy of robot end-effector position and attitude tracking. This indicates that the control input weight matrix is ​​used to limit the amplitude of robot joint motion. The control rate of change weight matrix is ​​used to improve the smoothness of robot motion; The model predictive control optimization process satisfies robot motion constraints, including: (1) Joint increment constraint: ,in This indicates the maximum allowable change in joint angles within a single control cycle of the robot. This indicates the minimum allowable change in joint angles within a single control cycle of the robot; (2) Joint position constraints: ,in Indicates the current position of the robot's joints. These represent the minimum and maximum allowable positions for each joint of the robot; (3) Controlling the rate of change constraint: ,in This represents the rate of change of joint increment within adjacent control cycles. This indicates the maximum rate of change in control that the robot is allowed to undergo.

9. A six-axis robot weld seam tracking method based on linear time-varying model predictive control according to claim 8, characterized in that, The model predictive control uses a rolling optimization method to solve for the robot joint control variables, specifically including: Based on the robot's six-dimensional positional error state obtained in the current sampling period, the reference pose sequence in the prediction time domain, and the robot's motion constraints, the model predictive control optimization problem is solved to obtain the optimal joint incremental control sequence in the prediction time domain. ; in, This represents the optimal joint incremental control sequence that satisfies the constraints within the prediction time domain; Select the first set of control variables corresponding to the current control cycle from the optimal joint incremental control sequence: ; in, This represents the optimal incremental control value for the six joints of the robot within the current sampling period; Update the robot joint state based on the joint increment control value: ; Based on the updated robot joint states, the actual pose of the robot end effector is calculated using forward kinematics, and the six-dimensional pose error of the end effector is recalculated. At the same time, the arc length-time joint reference queue is updated based on the weld feature information updated by the vision sensor, and the prediction model and optimization problem for the next sampling period are reconstructed.