A path tracking control method for grinding robot based on model predictive control

Through the method based on model predictive control, the kinematics and discrete time model of the grinding robot are established, and the Legendre orthogonal polynomial approximation method is used to solve the control input, which solves the problem of large path tracking error of the grinding robot and improves the robustness and Computational efficiency.

CN114879508BInactive Publication Date: 2024-09-10TIANJIN UNIVERSITY OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210609000.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The path tracking error of the grinding robot is large, which leads to problems of insufficient control complexity and robustness.

Method used

Using a model-based predictive control method, a kinematic model and a discrete-time prediction model of the grinding robot are established, the optimization objective function is designed, the optimal control input is solved through the Legendre orthogonal polynomial approximation method, and the constraints of the control input are processed directly online.

Benefits of technology

The path tracking error of the grinding robot is reduced, and the robustness and calculation efficiency of the algorithm are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114879508B
    Figure CN114879508B
Patent Text Reader

Abstract

The present invention proposes a grinding robot path tracking control method based on model predictive control. First, a grinding robot kinematic model and a grinding robot discrete time prediction model are established. Then, a desired path is defined, and MPC tracks points on the desired path. In order to quickly and accurately track the desired path, the present invention designs an optimized objective function, sets constraints, and uses Legendre orthogonal polynomial approximation to gradually approximate the error, and finally achieves a convergence effect. The method can efficiently control the grinding robot tracking path online, and can handle the constraints of the control input, thereby improving the robustness of the grinding robot model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of grinding robot tracking control, and in particular relates to a grinding robot path tracking control method based on model predictive control. Background Art

[0002] Grinding Robot (GR) is a multi-axis industrial grinding robot with the advantages of large working space and high flexibility. It can realize automatic control, multi-degree of freedom, multi-purpose, programmable and other functions. With the continuous development of intelligent manufacturing and Industry 4.0, more and more robots are being applied to actual production and business. In order to cope with the complex grinding working environment, grinding robots with strong operability can be relied on to replace human grinding work. For grinding robots, improving the convergence of their path tracking errors and ensuring their motion controllability are basic functional requirements. The dynamics and kinematics models of grinding robots are complex, and the model parameters are fuzzy. Complex models will also make the control of grinding robots complicated. With the continuous work of grinding robots, people have put forward higher requirements for the accuracy and stability of their motion control. Therefore, solving the large path tracking error of grinding robots and improving the robustness of grinding robots have become key research.

[0003] In recent years, many scholars have studied the path tracking control problem of robots. For the nonlinear model of grinding robots, the main control methods include sliding mode control method, back-stepping control method, intelligent control method, etc.

[0004] The sliding mode control method is a special variable structure control, which is essentially a nonlinear control, that is, the control structure changes with time. It has the advantages of fast response, simple design, variable parameters, and stable robustness.

[0005] The back-stepping control method is a nonlinear system control design method based on the Lyapunov method. The design idea is to design the correct system control rate based on the Lyapunov function, decompose the high-order system into multiple first-order systems, and when the lower-order system converges stably, the entire high-order system also reaches a stable state.

[0006] Intelligent control methods do not have strict requirements on the system model and do not rely on the system model to solve the system control problem. Intelligent control refers to the design of a controller or system that can learn, abstract, reason, make decisions and respond adaptively to environmental information to complete tasks that are performed by humans. There are four common intelligent control methods: expert control, fuzzy control, neural network, and genetic algorithm.

[0007] Model Predictive Control (MPC) is a model-based control algorithm, which is essentially an online rolling optimization. Commonly used MPC algorithms include: Model Algorithm Control (MAC), Dynamic Matrix Control (DMC), and Generalized Predictive Control (GPC). At each sampling moment, the MPC algorithm obtains the control input sequence by solving a finite time domain open-loop optimal control problem online. The optimal control sequence obtained only implements the first control action. This is the biggest difference between it and the traditional algorithm that pre-calculates the control law.

[0008] MPC has three basic features: prediction model, rolling optimization, and feedback correction. There are three main advantages to using the framework of model predictive control to solve the path point tracking control problem of the grinding robot. First, model predictive control can explicitly control the constraints on the input and narrow the optimization range. Second, model predictive control can optimize the system output for a period of time in the future, that is, a future motion trajectory, so it is suitable for the rolling optimization process of path point tracking. Third, model predictive control can correct the actual input of the system according to the actual output of the system object, so that the actual output of the system is close to the expected output.

[0009] Model predictive control does not require high accuracy of the model, and has the advantages of convenient modeling, rolling optimization, good robustness, and good stability, but it has many iterative steps, complex calculations, and takes a long time. Therefore, it is necessary to study the feasibility of the MPC algorithm and improve the operating efficiency of the MPC algorithm. Summary of the invention

[0010] The purpose of the present invention is to provide a grinding robot path tracking control method based on model predictive control to address the problem that the existing grinding robot model has fuzzy parameters, which leads to large path tracking errors of the grinding robot.

[0011] The technical solution adopted to achieve the purpose of the present invention is:

[0012] A grinding robot path tracking control method based on model predictive control, the method comprising the following steps:

[0013] Step 1: Establish the kinematic model of the grinding robot;

[0014] Step 2: Establish a discrete time prediction model for the grinding robot;

[0015] Step 3: Define the expected path: P = {X r (k)∈R n |X r (k) = p(θ r (k))},

[0016] Among them, P is the expected path of the defined parameters, Xr (k) is the reference position of the robot at time k, p(θ r (k)) is the path at time k, θ r (k) is the path parameter at time k, θ r The predicted expected path at time k+1 is:

[0017]

[0018] Among them, w p (k) is the expected path angular velocity at time k, is the linear expression of robot control input deviation at time k;

[0019] Step 4: Design optimization objective function:

[0020]

[0021] Among them, J is the cost function, Q and R are weight matrices, ρ is the weight coefficient, ε is the relaxation factor, N is the prediction time domain of the state error, and N c is the prediction time domain of the control input deviation, θ ref is the expected trajectory; the system prediction error is:

[0022] e(k+1)=X(k+1)-X r (k+1|k),

[0023] Among them, X(k+1) is the actual position of the robot at the next moment, X r (k+1|k) is the predicted position of the robot at the next moment;

[0024] Step 5: Set constraints;

[0025] Set the control quantity constraints as:

[0026] u min (k+t)≤u(k+t)≤u max (k+t), k=0, 1…N c -1,

[0027] Set the control increment constraint as:

[0028] Δu min (k+t)≤Δu(k+t)≤Δu max (k+t), k=0, 1…N c -1,

[0029] Finally, the constraints are transformed into:

[0030]

[0031] Step 6: Use the orthogonal polynomial approximation method to solve the optimal control. The specific process is as follows:

[0032] Dingwen Then f(x) and g(x) are said to be orthogonal on the interval [a, b], denoted as:

[0033]

[0034] definition Then f(x) and g(x) are said to be orthogonal with weight p(x) on the interval [a, b], and a k-degree polynomial sequence is defined So that the sequence satisfies:

[0035]

[0036] Using Legendre orthogonal polynomials, we define an orthogonal polynomial P with weight P(x) = 1 on the interval [-1, 1] n (x):

[0037]

[0038] The derivation formula is defined as:

[0039]

[0040] From the kinematic model of the robot, we know that:

[0041]

[0042]

[0043] Formula Separating the variables and simplifying it, we get the Legendre equation:

[0044]

[0045] The optimal solution of the parameters at each moment is obtained from the solution of the Legendre equation.

[0046] In the above technical solution, in step 1, define X = [x, y, θ] T is the actual posture of the robot, (x, y) is the actual position of the robot, and θ is the actual angle of the robot; define X r =[x r ,y r ,θ r ] T is the robot reference pose, (x r ,y r ) is the robot reference position, θ r is the robot reference angle, and the robot's kinematic model is:

[0047]

[0048]

[0049] Define u = [v, w] T is the actual input of the system, u r =[v r , w r ] T is the reference input of the system, where υ is the actual linear velocity of the robot, w is the actual angular velocity of the robot, and v r is the robot reference linear velocity, w r is the robot reference angular velocity, and the robot tracking error model is:

[0050]

[0051] Among them, [x e ,y e ,θ e ] is the error vector, (x e ,y e ) is the deviation between the actual position and the reference position, θ e is the angle deviation.

[0052] In the above technical solution, in step 2:

[0053] The state and control quantities of the robot at each moment satisfy:

[0054] Performing Taylor expansion at any time, keeping only the first-order terms and ignoring the higher-order terms, we get:

[0055]

[0056]

[0057] The equilibrium state space equation is obtained as:

[0058] in, is the state error vector, is the robot control input deviation vector; discretize equation (7) using the forward Euler method to obtain:

[0059]

[0060] Where k is the sampling time, is the robot state error vector at time k, is the robot control input deviation vector at time k, T is the sampling time.

[0061] The characteristics and beneficial effects of the present invention are:

[0062] The present invention proposes a grinding robot path tracking control method based on model predictive control, which realizes online executable nonlinear model predictive control on the grinding robot kinematic model for the first time, and can directly process the constraints of the control input online. The present invention establishes a GR kinematic model, establishes a discrete time prediction model, defines the expected path, designs the optimization objective function, sets the constraint conditions, and uses the Legendre orthogonal polynomial approximation method to solve the optimal control input. The problem of large GR path tracking error is solved, and the robustness and computational efficiency of the algorithm are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is a flow chart of the path tracking of the grinding robot based on model predictive control of the present invention.

[0064] Figure 2 This is the path tracing effect diagram.

[0065] Figure 3 It is the diagram of the change of model control quantity.

[0066] Figure 4 is the path-tracing position map.

[0067] Figure 5 is the path tracking error map.

[0068] Figure 6 It is the graph of a third-order Legendre orthogonal polynomial function on the interval [-1, 1].

[0069] For ordinary technicians in this field, other relevant drawings can be obtained based on the above drawings without any creative work. DETAILED DESCRIPTION

[0070] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0071] The present invention proposes a grinding robot path tracking control method based on model predictive control, the method comprising the following steps:

[0072] Step 1: Establish the kinematic model of the grinding robot; the specific process is as follows:

[0073] Define X = [x, y, θ] T is the actual posture of the robot, (x, y) is the actual position of the robot, and θ is the actual angle of the robot; define X r =[xr ,y r ,θ r ] T is the robot reference pose, (x r ,y r ) is the robot reference position, θ r is the robot reference angle, then the robot's kinematic model is:

[0074]

[0075]

[0076] Define u = [υ, w] T is the actual input of the system, u r =[v r , w r ] T is the reference input of the system, where υ is the actual linear velocity of the robot, w is the actual angular velocity of the robot, and v r is the robot reference linear velocity, w r is the reference angular velocity of the robot, then the robot tracking error model is:

[0077]

[0078] Among them, [x e ,y e ,θ e ] is the error vector, (x e ,y e ) is the deviation between the actual position and the reference position, θ e is the angle deviation.

[0079] Step 2: Establish a discrete time prediction model for the grinding robot;

[0080] Assuming that the robot has completely passed along the expected path, the state and control quantity at each moment on the path are obtained. The state and control quantity of the robot at each moment satisfy:

[0081] Performing Taylor expansion at any time, keeping only the first-order terms and ignoring the higher-order terms, we get:

[0082]

[0083] (5)-(4) gives:

[0084]

[0085] In summary, the equilibrium state space equation is obtained as follows:

[0086]

[0087] in, is the state error vector, is the robot control input deviation vector; discretize equation (7) using the forward Euler method to obtain:

[0088]

[0089] Where k is the sampling time, is the robot state error vector at time k, is the robot control input deviation vector at time k, T is the sampling time.

[0090] Step 3: Define the expected path: P = {X r (k)∈R n |X r (k) = p(θ r (k))} (9)

[0091] Among them, P is the expected path of the defined parameters, X r (k) is the reference position of the robot at time k, p(θ r (k)) is the path at time k, θ r (k) is the path parameter at time k, θ r The predicted expected path at time k+1 is:

[0092]

[0093] Among them, w p (k) is the expected path angular velocity at time k, The linear expression of robot control input deviation at time k is as follows:

[0094] Among them, λ is the gain coefficient and C is the gain matrix.

[0095] Step 4: Design optimization objective function;

[0096] In order to make the robot track the desired path quickly and accurately, the objective function is designed as:

[0097]

[0098] Optimize the objective function of formula (12) and add soft constraints:

[0099]

[0100] Among them, J is the cost function, Q and R are weight matrices, ρ is the weight coefficient, ε is the relaxation factor (ε is introduced to avoid iterations caused by the calculation process), N is the prediction time domain of the state error, N c is the prediction time domain of the control input deviation, θ ref is the expected trajectory. The system prediction error is:

[0101] e(k+1)=X(k+1)X r (k+1|k) (14)

[0102] Among them, X(k+1) is the actual position of the robot at the next moment, X r (k+1|k) is the predicted position of the robot at the next moment.

[0103] Step 5: Set constraints;

[0104] The control quantity constraints are:

[0105] u min (k+t)≤u(k+t)≤u max (k+t), k=0, 1…N c -1 (15)

[0106] The control increment constraint is:

[0107] Δu min (k+t)≤Δu(k+t)≤Δu max (k+t), k=0, 1…N c -1 (16)

[0108] Finally, the constraints are transformed into:

[0109]

[0110] Step 6: Use the orthogonal polynomial approximation method to solve the optimal control. The specific process is as follows:

[0111] definition Then f(x) and g(x) are said to be orthogonal on the interval [a, b], denoted as:

[0112]

[0113] definition Then f(x) and g(x) are said to be orthogonal with weight p(x) on the interval [a, b]. Define a k-degree polynomial sequence So that the sequence satisfies:

[0114]

[0115] Commonly used orthogonal polynomials include Jacobi polynomials, Chebyshev polynomials, Legendre polynomials, Laguerre polynomials, and Hermite polynomials. The present invention adopts Legendre orthogonal polynomials and defines a polynomial P with weight P(x)=1 orthogonal on the interval [-1, 1]. n (x):

[0116]

[0117] The derivation formula is defined as:

[0118]

[0119] From formula (1), we know that:

[0120]

[0121]

[0122] Separate the variables in equation (23) and simplify it to obtain the Legendre equation:

[0123]

[0124] In summary, the optimal solution of the parameters at each moment can be obtained from the solution of the Legendre equation. The present invention uses Legendre orthogonal polynomials to gradually approximate the error and finally achieve a convergence effect.

[0125] See attached Figure 2-6 , is a data graph obtained by verifying the grinding robot path tracking control method based on model predictive control of the present invention through matlab. It can be seen that the method of the present invention has good technical effect.

[0126] The above is only a preferred embodiment of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A grinding robot path tracking control method based on model predictive control, characterized in that: The following steps are involved: Step 1: Establish the kinematic model of the grinding robot; Step 2: Establish a discrete time prediction model for the grinding robot; Step 3: Define the expected path: P = {X r (k)∈R n |x r (k) = p(θ r (k))}, Among them, P is the expected path of the defined parameters, X r (k) is the reference position of the robot at time k, p(θ r (k)) is the path at time k, θ r (k) is the path parameter at time k, θ r The predicted expected path at time k+1 is: Among them, w p (k) is the expected path angular velocity at time k, is the linear expression of robot control input deviation at time k; Step 4: Design optimization objective function: Among them, J is the cost function, Q and R are weight matrices, ρ is the weight coefficient, ε is the relaxation factor, N is the prediction time domain of the state error, and N c is the prediction time domain of the control input deviation, θ ref is the expected trajectory; the system prediction error is: e(k+1)=X(k+1)-X r (k+1|k), Among them, X(k+1) is the actual position of the robot at the next moment, X r (k+1|k) is the predicted position of the robot at the next moment; Step 5: Set constraints; Set the control quantity constraints as: u min (k+t)≤u(k+t)≤u max (k+t),k=0,1…N c -1, Set the control increment constraint as: Δu min (k+t)≤Δu(k+t)≤Δu max (k+t),k=0,1…N c -1, Finally, the constraints are transformed into: Step 6: Use the orthogonal polynomial approximation method to solve the optimal control. The specific process is as follows: Definition ∫ a b f(x)g(x)=0, then f(x) and g(x) are said to be orthogonal on the interval [a, b], denoted as: (f,g)=∫ a b f(x)g(x)=0; Definition ∫ a b p(x)f(x)g(x)=0, then f(x) and g(x) are said to be orthogonal with weight p(x) on the interval [a, b], and define a k-degree polynomial sequence So that the sequence satisfies: Using Legendre orthogonal polynomials, we define an orthogonal polynomial P with weight P(x) = 1 on the interval [-1, 1] n (x): The derivation formula is defined as: From the robot's kinematic model, we know that: Formula Separating the variables and simplifying it, we get the Legendre equation: The optimal solution of the parameters at each moment is obtained from the solution of the Legendre equation.

2. The grinding robot path tracking control method based on model predictive control according to claim 1, characterized in that: In step 1, define X = [x, y, θ] T is the actual posture of the robot, (x, y) is the actual position of the robot, and θ is the actual angle of the robot; define X r =[x r ,y r ,θ r ] T is the robot reference pose, (x r ,y r ) is the robot reference position, θ r is the robot reference angle, and the robot's kinematic model is: Define u = [υ, w] T is the actual input of the system, u r =[υ r , w r ]T is the reference input of the system, where υ is the actual linear velocity of the robot, w is the actual angular velocity of the robot, and υ r is the robot reference linear velocity, w r is the robot reference angular velocity, and the robot tracking error model is: Among them, [x e ,y e ,θ e ] is the error vector, (x e ,y e ) is the deviation between the actual position and the reference position, θ e is the angle deviation.

3. The grinding robot path tracking control method based on model predictive control according to claim 2 is characterized in that: In step 2: The state and control quantities of the robot at each moment satisfy: Performing Taylor expansion at any time, keeping only the first-order terms and ignoring the higher-order terms, we get: The equilibrium state space equation is obtained as: in, is the state error vector, is the robot control input deviation vector; discretize equation (7) using the forward Euler method to obtain: Where k is the sampling time, is the robot state error vector at time k, is the robot control input deviation vector at time k, T is the sampling time.