A control method of N-link manipulator based on stochastic model predictive control

By adopting the stochastic model predictive control method in the manipulator control, converting hard constraints into probabilistic constraints and optimizing control inputs, the overshoot and insufficient robustness of traditional methods in nonlinear scenarios are solved, and smaller tracking errors and Better steady motion control effect.

CN117283548BActive Publication Date: 2024-08-27SICHUAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311244631.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2024-08-27
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

Existing manipulator control methods have problems such as overshoot and jitter in nonlinear scenarios, and traditional model predictive control has poor robustness when dealing with system uncertainty and cannot meet the precision requirements in the aerospace field and general conditions. Unsure of system control requirements.

Method used

The N-link manipulator control method based on stochastic model predictive control is adopted. By establishing a discrete linearized state space model system, a nominal system is constructed and state feedback is added, and hard constraints are transformed into probabilistic constraints, using the Chebyshev-Cantelli inequality. Probabilistic constraints are converted into deterministic constraints to form a quadratic optimization problem model to optimize control inputs.

Benefits of technology

It achieves smaller tracking error under the condition of satisfying probability constraints, avoids the problems of difficult adjustment of PID process parameters and poor robustness of traditional MPC in dealing with unknown disturbances, and significantly improves the steady motion control effect of the robotic arm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117283548B
    Figure CN117283548B
Patent Text Reader

Abstract

The present invention discloses a control method for an N-link manipulator based on random model predictive control, comprising the following steps: S1, establishing a discrete linearized state space model system of the manipulator; S2, constructing a nominal system of the manipulator and designing a state feedback of the control input; S3, obtaining a cost function predicted by the random model according to a cost function predicted by the model; S4, establishing a probability constraint and converting the probability constraint into a deterministic constraint to obtain a deterministic linear constraint predicted by the random model; S5, optimizing the state space model system in step S1 to obtain a quadratic optimization problem model; S6, combining the quadratic optimization problem model to realize the control of the N-link manipulator system. The present invention reaches the desired position and achieves a smaller tracking error under the condition of satisfying the probability constraint conditions. It avoids the problems of difficult adjustment of PID process parameters, excessive overshoot and unsatisfactory constraints, and avoids the problem of poor robustness of traditional MPC when dealing with unknown disturbances.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of space manipulator control, and in particular, relates to an N-link manipulator control method based on random model predictive control. Background Art

[0002] The robotic arm is a multi-input and multi-output system with undesirable characteristics such as high nonlinearity, strong dynamic coupling, parameter perturbation and unknown interference. At present, many robotic arm control systems use PID (Proportion-Integral-Differential) control method. The design of PID mainly uses some measurable intermediate states or outputs of the system as feedback, and adjusts the input through the pre-calculated PID parameters to achieve output tracking. However, it has problems such as overshoot and jitter in nonlinear scenarios, so it cannot be used in many aerospace fields that require high precision.

[0003] Model Predictive Control is a relatively advanced control method in the field of industrial robotic arms in recent years. Its core idea is to predict the future state by establishing a dynamic system model and optimize the control input according to the prediction results to achieve control of the system. However, the uncertainty of the model sometimes causes the controlled system to be sluggish or even unstable. Although it has been verified that the rolling time domain method makes MPC have a certain degree of robustness, traditional MPC is not designed to deal with system uncertainty. The realization of its robust stability requires that the external noise is small enough or the state constraint does not exist, so it still cannot meet the needs of uncertain system control under general circumstances. Summary of the invention

[0004] The purpose of the present invention is to provide an N-link robot arm control method based on stochastic model predictive control, mainly to solve the problem that the existing control method cannot meet the demand of uncertain system control under general circumstances.

[0005] To achieve the above purpose, the technical solution adopted by the present invention is as follows:

[0006] A control method for an N-link robotic arm based on stochastic model predictive control comprises the following steps:

[0007] S1, establish a discrete linearized state space model system of the robot arm considering the existence of external unknown disturbances;

[0008] S2, construct the nominal system of the robot arm, obtain the error between the state space model system and the nominal system, and use the error to add state feedback to the control input of the state space model system;

[0009] S3, obtaining the cost function predicted by the random model according to the cost function predicted by the model;

[0010] S4, transform the hard constraints existing in the state space model system into soft constraints of probability constraints, and transform the probability constraints into deterministic constraints according to the Chebyshev-Cantelli inequality to obtain the deterministic linear constraints predicted by the random model;

[0011] S5, optimizing the state space model system in step S1 according to the deterministic linear constraints predicted by the random model to obtain a quadratic optimization problem model;

[0012] S6, combined with the quadratic optimization problem model, realizes the control of the N-link robotic arm system.

[0013] Furthermore, in step S1, the state space model system established is:

[0014]

[0015] Among them, x(k) represents the system state, u(k) represents the system input, c(k) is the linearized constant, ω(k) is the zero-mean Gaussian white noise with variance W, y(k) is the system output, A d , B d , C d is the state space system matrix, and F is the disturbance coefficient matrix.

[0016] Furthermore, in step S2, the nominal system of the robot arm is represented as follows:

[0017]

[0018] Then, the control input model with state feedback is:

[0019]

[0020] in, It is obtained by solving the perturbation-free optimization problem; represents the nominal value of the state quantity x at time k; K is the state feedback gain obtained through the optimization process at time k.

[0021] Furthermore, in step S3, the cost function of model prediction is:

[0022]

[0023] Among them, Q, R are self-defined positive definite matrices, i is the time pointer, t is the current time, and N is the prediction time domain length; is the expected operation symbol;

[0024] Define the unknown additive disturbance to have a mean of 0 and a variance of W, then:

[0025]

[0026] according to

[0027]

[0028] The cost function for random model prediction is:

[0029] J=J m +J v

[0030]

[0031]

[0032] Among them, J m is the cost function for predicting the nominal value part of the random model, J v Cost function for the prediction variance portion of a random model.

[0033] Furthermore, in step S4, the probability constraint is obtained by adding constraints to the state variables and input variables of the state space model system in a probability sense, that is, the probability constraint is:

[0034]

[0035]

[0036] in, represents the probability function, b, c are constant vectors, x max ,u max For the given state variables and input variables, p x , p u Design parameters for custom probabilities;

[0037] The steps to convert a probabilistic constraint into a deterministic constraint are as follows:

[0038] S41, according to the Chebyshev-Cantelli inequality:

[0039]

[0040] Among them, ζ is the mean A random variable with variance Z; then, the deterministic constraints are as follows:

[0041]

[0042] S42, based on the fact that the deterministic constraint is hampered by the nonlinear dependence on Z, the deterministic constraint can be refactored to:

[0043]

[0044] Among them, α is a custom design parameter with a value range of [0, 1];

[0045] S43, the probability constraint is reformulated as follows:

[0046]

[0047]

[0048] in, To control the variance of the variables, this reformulated constraint is a linear constraint on the determinism of the stochastic model predictions.

[0049] Furthermore, in step S5, the obtained quadratic optimization problem model is:

[0050]

[0051] Furthermore, in step S6, the specific control steps of the N-link robotic arm system are as follows:

[0052] S61, calculate the state variables according to the quadratic optimization problem model Control Input and state feedback gain K;

[0053] S62, the real state x at this time is measured by the state observer k ,pass Get u(k), and apply the first control vector to the state space model system:

[0054]

[0055] Get the next measurement value x(k+1);

[0056] S63, let k = k + 1, at the operating equilibrium point x p =x d At (k), a prediction matrix is ​​generated and the process returns to step S61.

[0057] Compared with the prior art, the present invention has the following beneficial effects:

[0058] Compared with the traditional model predictive control, the random model predictive control of the present invention can better control the steady motion of the two-link manipulator, reach the desired position and achieve a smaller tracking error under the condition of satisfying the probability constraint conditions. Compared with the existing manipulator operation, it avoids the problems of difficult adjustment of PID process parameters, excessive overshoot and unsatisfactory constraints, and avoids the problem of poor robustness of traditional MPC when dealing with unknown disturbances. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 It is a schematic diagram of the process of the present invention.

[0060] Figure 2 Schematic diagram of a two-link mechanical arm in an embodiment of the present invention.

[0061] Figure 3 Schematic diagram of angle tracking error results in an embodiment of the present invention.

[0062] Figure 4 Schematic diagram of joint input torque results in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The present invention is further described below in conjunction with the accompanying drawings and embodiments. The embodiments of the present invention include but are not limited to the following embodiments.

[0064] Example

[0065] like Figure 1 As shown, the present invention discloses a control method for an N-link manipulator based on random model predictive control. First, it is assumed that the system of the manipulator has unknown additive disturbances at the state end after linearization and discretization, and there are no clear upper and lower bounds of the disturbances. Only the mean and variance information are known. The following discrete linearized state space model system of the manipulator is established:

[0066] x(k+1)=A d x(k)+B d u(k)+c(k)+Fω(k)

[0067] y(k)=C d x(k)

[0068] Among them, x(k) represents the system state, u(k) represents the system input, c(k) is the linearized constant, ω(k) is the zero-mean Gaussian white noise with variance W, y(k) is the system output, A d , B d , C d is the state space system matrix, and F is the disturbance coefficient matrix.

[0069] Due to the influence of unknown disturbances, it is necessary to add a state feedback link to the control input of the system. That is:

[0070]

[0071] in, By solving the undisturbed optimization problem, we can obtain It represents the nominal value of the state quantity x at time k. This nominal value is not affected by the disturbance. When the disturbance is zero mean disturbance, it is usually K is the state feedback gain obtained through the optimization process at time k.

[0072] The nominal system of the robot arm can be expressed as follows:

[0073]

[0074] In actual operation, the error between the actual state and the nominal state of the robot arm is defined as δ(k), then:

[0075]

[0076] Among them, the error variable has zero mean and variance is X(k). Since the state quantity has an iterative process of forward prediction, the error variable also has a corresponding iterative expression:

[0077] δ(k+1)=(A d +B d K)δ(k)+Fω(k)

[0078] Then the iterative expression of the variance of the error variable is derived:

[0079]

[0080] The cost function predicted by the model:

[0081]

[0082] Among them, Q and R are self-defined positive definite matrices, which are used to describe the influence of state quantity and control quantity on the optimization target respectively. i is the time pointer, t is the current time, and N is the length of the prediction time domain; is the expected operation symbol;

[0083] Since it is assumed that the unknown additive disturbance has a mean of 0 and a variance of W, we have:

[0084]

[0085] According to

[0086]

[0087] Then the cost function of stochastic model predictive control (SMPC) can be defined as consisting of two parts: nominal value and variance, namely:

[0088] J=J m +J v

[0089]

[0090]

[0091] Among them, J m is the cost function for predicting the nominal value part of the random model, J v Cost function for the prediction variance portion of a random model.

[0092] Among them, J v It can be further simplified to:

[0093]

[0094] Due to the assumption Then we have:

[0095]

[0096] In the control system of an n-link rigid manipulator, there are sometimes various constraints, such as motor rated torque and joint angular velocity constraints. Exceeding the constraints for a long time may damage the corresponding mechanical components. Due to the unbounded nature of process disturbances, the system cannot always guarantee that various constraints are met, so it is proposed to convert hard constraints into soft constraints. The advantage of converting to soft constraints is that some constraints themselves can be violated, but the frequency of violation should not be too high and should be within the risk parameter range.

[0097] Based on this, constraints are added to the state variables and input variables in the discrete linear state space model system in a probabilistic sense, and we have:

[0098]

[0099]

[0100] in, represents the probability function, b, c are constant vectors, x max ,u max For the given state variables and input variables, p x , p u Design parameters for custom probabilities.

[0101] According to the Chebyshev-Cantelli inequality:

[0102]

[0103] Among them, ζ is the mean A random variable with variance Z; then, the deterministic constraints are as follows:

[0104]

[0105] However, practical application of the deterministic constraint is still hampered by its nonlinear dependence on Z, so a further linearization step is required to finally derive a linear constraint that can be included in the MPC optimization problem. At the expense of an additional slightly tighter constraint, the constraint is reformulated as:

[0106]

[0107] Among them, α is a custom design parameter, and its value range is [0, 1].

[0108] Therefore, the probability constraint can be reformulated as follows:

[0109]

[0110]

[0111] in, is the variance of the control variable, thus obtaining a linear constraint on the certainty of the random model prediction.

[0112] Then the stochastic model predictive control problem of the N-link manipulator can be reformulated as the following quadratic optimization problem:

[0113]

[0114] Finally, the N-link robotic arm system control is realized. The specific operation steps are:

[0115] (1) Calculate state variables based on the quadratic optimization problem model Control Input and state feedback gain K;

[0116] (2) The actual state x at this time is measured by the state observer k ,pass Get u(k), and apply the first control vector to the state space model system:

[0117]

[0118] Get the next measurement value x(k+1);

[0119] (3), let k = k + 1, at the operating equilibrium point x p =xd At (k), generate the prediction matrix and return to step (1).

[0120] In order to verify the feasibility and control effect of the control method, Figure 2 As shown in the figure, a two-link rigid manipulator is used as the control object, and numerical simulation and verification are carried out in MATLAB. According to the definition of Euclidean space, it can only move in a two-dimensional plane, and the end of the manipulator only has position information.

[0121] The robot arm parameter settings are shown in Table 1 and Table 2.

[0122] Table 1: Robot model parameters

[0123] symbol value symbol value <![CDATA[m1]]> 2kg <![CDATA[m2]]> 2kg <![CDATA[l1]]> 0.5m <![CDATA[l2]]> 0.5m <![CDATA[I1]]> <![CDATA[0.125kg·m 2 ]]> <![CDATA[I2]]> <![CDATA[0.125kg·m 2 ]]>

[0124] Where m is the mass of the connecting rod, l is the length of the connecting rod, and I is the moment of inertia of the connecting rod.

[0125] Table 2: Robot model constraints

[0126]

[0127] Among them, τ is the input torque of the joint motor, q is the joint angle, is the joint angular velocity.

[0128] Assume that the state weight matrix Q of the QP problem in the quadratic optimization problem model is Q=200I, the input weight matrix R=0.01I2 (I is the unit matrix), the gravity coefficient is g=9.8N / kg, and the tracking is performed when the end position of the robot arm is a preset constant. Assume that the reference trajectory is a fixed position with a two-link joint angle of [1,1], the actual initial joint angle of the robot arm is [0,0], and the joint angular velocity is also [0,0]. In the simulation case where the disturbance is unknown, the external torque disturbance is set to a Gaussian distribution noise with a mean of 0 and a variance of 0.05. When the sampling interval T is 0.01s and the prediction time domain Np is 20 steps, the tracking control effect of 200 Monte Carlo simulations using MPC and SMPC is shown as follows Figures 3-4 shown.

[0129] As can be seen from the figure, under the influence of external additive disturbances, the joint angles and angular velocities of the robot arm links 1 and 2 can converge to the vicinity of the reference state quantity, the motor input torque u also gradually tends to be stable, and the state error does not show divergent results. At the same time, in the entire tracking process, MPC meets the preset constraints, and SMPC meets the preset probability constraints. However, a horizontal comparison shows that compared with the MPC method, SMPC can better handle the influence of disturbances by designing a state feedback controller, and at the same time, appropriately relax the constraints through probability conversion, which can achieve faster convergence.

[0130] Through the above design, this embodiment is based on the dynamic equation of a two-degree-of-freedom manipulator. Since the manipulator in the actual scene has multiple state constraints and the influence of external unknown disturbances, it is considered to use the random model predictive control method to design the input quantity of the state space, use the mean and variance of the state to solve the problem of uncertainty of the future state under unknown disturbances in the cost function, and use the Chebyshev-Cantelli inequality approximation to convert the probability constraint into a deterministic constraint, and finally convert the design of the control quantity in the linear discrete system into an optimization solution of the convex problem. The Monte Carlo simulation results show that in the case of unknown external disturbances, SMPC can better control the steady motion of the two-link manipulator than the traditional MPC, reach the desired position and achieve a smaller tracking error under the condition of satisfying the probability constraint conditions. Compared with the existing manipulator work, it avoids the problems of difficult adjustment of PID process parameters, excessive overshoot and unsatisfactory constraints, and avoids the problem of poor robustness of traditional MPC when dealing with unknown disturbances.

[0131] The above embodiment is only one of the preferred implementation modes of the present invention and should not be used to limit the protection scope of the present invention. Any changes or modifications that are made to the main design concept and spirit of the present invention and have no substantive significance, and the technical problems they solve are still consistent with the present invention, should be included in the protection scope of the present invention.

Claims

1. A control method for an N-link robotic arm based on stochastic model predictive control, characterized in that: The following steps are involved: S1, establish a discrete linearized state space model system of the manipulator considering the existence of external unknown disturbances; that is: in, Represents the system state quantity, represents the system input, is the constant after linearization, The variance is Zero-mean Gaussian white noise, is the system output, is the state-space system matrix, is the perturbation coefficient matrix; S2, construct the nominal system of the robot arm, obtain the error between the state space model system and the nominal system, and use the error to add state feedback to the control input of the state space model system; the nominal system of the robot arm is expressed as follows: Then, the control input model with state feedback is: in, It is obtained by solving the perturbation-free optimization problem; Indicates the state exist Nominal value of the moment; for The state feedback gain obtained at all times through the optimization process; S3, obtaining the cost function predicted by the random model according to the cost function predicted by the model; S4, transform the hard constraints existing in the state space model system into soft constraints of probability constraints, and transform the probability constraints into deterministic constraints according to the Chebyshev-Cantelli inequality, and obtain the deterministic linear constraints of the random model prediction; among them, the probability constraints are obtained by adding constraints to the state variables and input variables of the state space model system in a probabilistic sense, that is, the probability constraints are: in, represents the probability function, is a constant vector, For given bounds on state variables and input variables, Design parameters for custom probabilities; The steps to convert a probabilistic constraint into a deterministic constraint are as follows: S41, according to the Chebyshev-Cantelli inequality: in, The mean is , the variance is A random variable; then, the deterministic constraints are as follows: S42, according to the deterministic constraints To overcome the nonlinear dependencies of , at the expense of slightly tightening the constraints, the deterministic constraints are reformulated as: in, It is a custom design parameter with a value range of [0,1]; S43, the probability constraint is reformulated as follows: in, To control the variance of the variables, this reformulated constraint is a linear constraint on the certainty of the stochastic model predictions; S5, optimizing the state space model system in step S1 according to the deterministic linear constraints predicted by the random model to obtain a quadratic optimization problem model; wherein the obtained quadratic optimization problem model is: S6, combined with the quadratic optimization problem model, realizes the control of the N-link robotic arm system.

2. The N-link robot arm control method based on stochastic model predictive control according to claim 1, characterized in that: In step S3, the cost function of model prediction is: in, is a user-defined positive definite matrix, For the time pointer, For the current moment, To predict the time domain length; is the expected operation symbol; Define the unknown additive disturbance to have a mean of 0 and a variance of , then: according to The cost function for random model prediction is: in, The cost function for predicting the nominal value part of the random model, Cost function for the prediction variance portion of a random model.

3. The N-link robot arm control method based on stochastic model predictive control according to claim 2, characterized in that: In step S6, the specific control steps of the N-link robotic arm system are as follows: S61, calculate the state variables according to the quadratic optimization problem model , control input and the state feedback gain ; S62, the real state at this time is measured by the state observer ,pass get , and apply the first control vector to the state space model system: Get the next measurement value ; S63, then , at the operating equilibrium point At, generate a prediction matrix and return to step S61.