An adaptive sliding mode control method for a manipulator based on disturbance observer compensation
Through the adaptive sliding mode control method based on disturbance observer compensation, the modeling error and chattering problems existing in the actual application of the robotic arm are solved, high-precision trajectory tracking and system stability are achieved, and the control performance of the robotic arm is improved. .
Patent Information
- Application Number
- CN202210671291.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-15
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-06-15
AI Technical Summary
In practical applications of robotic arms, there are modeling errors and uncertainty disturbances, which lead to reduced trajectory tracking accuracy. Existing sliding mode control methods have chattering phenomena, making it difficult to achieve high-precision control.
An adaptive sliding mode control method for the manipulator based on disturbance observer compensation is adopted. By establishing kinematics and dynamics models, the disturbance observer and a new control reaching law are designed, the disturbance observer gain matrix is adjusted to reduce the observation error, and the introduction The adaptive law estimates compensation for the unobservable parts.
It effectively reduces the trajectory tracking error and buffeting at the end of the robotic arm, improves the stability and tracking accuracy of the system, and ensures the asymptotic stability and high-precision control performance of the robotic arm system.
Smart Images

Figure CN114942593B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of end trajectory tracking control of a robot manipulator, and more specifically to an adaptive sliding mode control method of a manipulator based on disturbance observer compensation. Background Art
[0002] With the progress and development of science and technology, robotic arms have broad application prospects in industrial production, service robots, medical robots and other fields, many of which require high-precision trajectory tracking control. However, as a complex multi-input and multi-output system, the robotic arm has modeling errors and uncertainty disturbances in actual applications, which are uncertain factors that affect the tracking accuracy of the system. Therefore, achieving high-precision trajectory tracking control at the end of the robotic arm has become one of the hot spots in the research of cutting-edge robotics technology. As a hot spot in the study of robotic arm trajectory tracking control, sliding mode control has strong robustness for the control of robotic arms with uncertain parameters. However, sliding mode control has the phenomenon of "jittering". Therefore, how to reduce the jitter at the end is the key to the application of sliding mode on robotic arms. Research on reducing the modeling error and external disturbance of the robotic arm is also an important factor to ensure high-precision control. In recent years, many researchers at home and abroad have applied nonlinear disturbance observers and adaptive control methods to the trajectory control of the robotic arm to achieve real-time detection and processing of the robotic arm interference error, so as to reduce the influence of disturbance on the precise tracking of the robotic arm trajectory.
[0003] In response to the above-mentioned problems faced in achieving precise control of the robot arm's end trajectory, a method of dynamic modeling with delay estimation has emerged. However, since there are many uncertain factors in the actual application of the method of estimating the dynamic model, it has a certain impact on the convergence of the control method. Summary of the invention
[0004] 1. Technical issues to be solved
[0005] The present application aims to provide a method for adaptive sliding mode control of a manipulator based on disturbance observer compensation, which is advantageous over the prior art described in the background art in at least one aspect.
[0006] 2. Technical solution
[0007] The purpose of the present invention is achieved through the following technical solutions:
[0008] A method for adaptive sliding mode control of a manipulator based on disturbance observer compensation, the steps are as follows:
[0009] S1. Establish the kinematic model of the robot arm: Use the DH model to establish the coordinate system, taking the base of the robot as the reference coordinate system, and each joint and the end effector as the motion reference system;
[0010] S2. Establish the dynamic model of the robot arm: Use the Lagrangian method to model the dynamics of the robot arm;
[0011] S3, designing a disturbance observer: observing the observable part of the modeling error of the robot system in step S2 online, and adjusting the gain matrix of the disturbance observer so that the observation error decays exponentially and finally converges;
[0012] S4, sliding mode controller and new control reaching law: Based on the constant speed reaching law and exponential reaching law, a special power function reaching law is used to improve chattering, reduce convergence time and tracking error;
[0013] S5. Design of the adaptive law of the robotic arm system: estimate and compensate the unobservable part of the disturbance through adaptive law control.
[0014] The above solution solves the problem of large trajectory tracking error at the end of the robot arm, and significantly reduces the jitter of each joint movement, proving the stability of the robot arm system operation.
[0015] The optimized technical solution is detailed in the specific embodiment and will not be described again here.
[0016] 3. Beneficial effects
[0017] Compared with the prior art, the advantages of the present invention are:
[0018] (1) The adaptive sliding mode control method of the manipulator based on disturbance observer compensation of the present invention introduces a disturbance observer to observe the observable part of the modeling error of the manipulator system online. By adjusting the gain matrix of the disturbance observer, the observation error is exponentially decayed and finally converged. After adopting the disturbance observer, the influence of the disturbance on the manipulator system can be greatly improved;
[0019] (2) The design of the existing sliding mode controller can ensure that the robot system has good robustness, but the improper selection of the reaching law can easily cause large chattering of the sliding mode, resulting in reduced tracking accuracy. Based on the constant speed reaching law and the exponential reaching law, the present invention proposes a new special power function, which can effectively improve the chattering while significantly reducing the convergence time and tracking error.
[0020] (3) In the adaptive sliding mode control method of the manipulator based on disturbance observer compensation of the present invention, by deriving the model and reasonably selecting parameters, it can be ensured that The control of the robotic arm system satisfies the Lyapunov stability theory, and the joint variable tracking error is close to asymptotic stability, which can ensure the stable tracking performance of the robotic arm system. MATLAB and SIMULINK are used as simulation experimental platforms, and the Robotics System Toolbox and SimMechanics plug-ins that come with the robotic arm system are combined. The simulation results verify the correctness of the theory. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 The following are the parameters and coordinate diagram of the robot arm;
[0022] Figure 2 The change of joint angle during the movement of the robot arm;
[0023] Figure 3 is the error of the robot arm joint angle;
[0024] Figure 4 Joint control torque. DETAILED DESCRIPTION
[0025] In order to further understand the content of the present invention, the present invention is described in detail in conjunction with the accompanying drawings and embodiments.
[0026] Example
[0027] The adaptive sliding mode control method of the manipulator based on disturbance observer compensation in this embodiment is described in detail as follows:
[0028] (1) Establish the coordinate system of the robot and establish the kinematic model of the robot:
[0029] like Figure 1 As shown, the parameters of each robot arm and the improved DH coordinate method are defined as follows:
[0030] Connecting rod length a i : Refers to from z i Move to z i+1 The distance along the x direction i The axis is actually the length of the common perpendicular line;
[0031] Connecting rod rotation angle α i : Refers to from z i Rotate to z i+1 The angle of rotation in the direction of x i The positive direction of rotation of the axis is positive;
[0032] Connecting rod offset d i :Define along z i The direction of the axis, x i-1 Axis to axis x i The moving distance actually describes the moving distance between two common perpendicular lines;
[0033] Joint motion angle θ i :refers to x i-1 Rotate to x i The angle along z i Rotation in the positive direction of the axis is recorded as positive.
[0034] The steps to improve the DH coordinate system are to draw the axes of each joint:
[0035] z i Axis: axial direction along the joint axis i;
[0036] Origin: The common perpendicular line between the i+1th and ith joint axes, or the intersection of the point of intersection with the ith joint axis is the origin of the coordinate system {l}. The direction from joint axis i to joint axis i+1 is denoted as x i Axis along the common perpendicular line a i The direction of the common perpendicular line of the axis. If the two joint axes intersect, then x i The axis is perpendicular to the plane where the two axes are located, and the direction of its common perpendicular line is determined by the right-hand rule. i Direction: If the variable of the first joint is 0, the coordinate system {0} is defined to coincide with the coordinate system {l}, and other coordinate systems such as {n}, the origin and x n There is no regulation on the direction, you can choose it at will.
[0037] When using the DH model to establish a coordinate system, the base of the robot is used as the reference coordinate system, and each joint and the end effector are used as the motion reference system. Then, the position transformation relationship between all two adjacent links is calculated, and the expression is:
[0038]
[0039] The kinematic model of the tool coordinate system at the end of the robot arm relative to the base coordinate system is described as:
[0040]
[0041] where θ=[θ1,θ2] T is the joint angle matrix, R tool is the terminal posture matrix, P tool is the end position vector, are the direction cosines of the unit coordinates x, y, and z of the end effector relative to the base coordinates.
[0042] (2) Establish the dynamic model of the robotic arm:
[0043] The establishment of the dynamic model is the premise of the motion control of the robot arm. Under the premise of establishing the coordinates of the robot arm, the Lagrangian method is used to model the dynamics of the robot arm. First, the Lagrangian function is defined as:
[0044] L = KP (3);
[0045] Where L is the Lagrangian function, K is the total kinetic energy of the robotic system, and P is the total potential energy of the robotic system, so we can get
[0046]
[0047] where θ i represents a generalized coordinate in the robotic arm system, is the corresponding speed, τ i is the force or torque acting on the ith connecting rod, and n represents the number of connecting rods.
[0048]
[0049] in is the inertia matrix of the robot; represents the centrifugal force and inertial force matrix, is the gravity matrix acting on the manipulator, τ∈R 2×1 is the control torque acting on the joint, the external disturbance signal μ∈R 2×1 Including modeling errors, parameter changes and other uncertain interference factors δ, that is,
[0050]
[0051]
[0052] M 21 =M 12
[0053]
[0054]
[0055]
[0056]
[0057] C 22 =0 (6);
[0058] (3) Design of disturbance observer:
[0059] The observer predicts the estimated output by the difference between the estimated output and the actual output. This embodiment introduces a disturbance observer, which is an online observation of the observable part of the system modeling error in step (2). By adjusting the gain matrix of the disturbance observer, the observation error is exponentially decayed and finally converges. After adopting the disturbance observer, the influence of the system on the disturbance can be greatly improved.
[0060] Without prior knowledge of differentials, it is assumed that the disturbance changes slowly relative to the disturbance observer, that is:
[0061]
[0062] Defining the error of the disturbance observer
[0063] The interference observation is defined as: Combining (5)(7)(8)(9) we can get:
[0064]
[0065] The expression of the disturbance observer is:
[0066]
[0067]
[0068] in is the estimated value of the external disturbance signal μ, is the gain matrix of the nonlinear disturbance observer, and z is the defined auxiliary vector. The nonlinear function to be designed.
[0069] After using the disturbance observer, the system interference is changed from the interference signal μ to the observer error u, and the impact of the interference on the system is greatly reduced.
[0070] (4) Sliding mode controller and new control reaching law:
[0071] The design of the sliding mode controller can ensure that the system has good robustness, but improper selection of the reaching law can easily cause large chattering in the sliding mode, resulting in reduced tracking accuracy. This embodiment proposes a new special power function based on the constant speed reaching law and the exponential reaching law, which can effectively improve the chattering while significantly reducing the convergence time and tracking error.
[0072] Define joint position error: e = qq d (12), the joint velocity error is where q d is the desired joint position;
[0073] The sliding mode function is taken as Where λ is the coefficient matrix;
[0074] Take the new control reaching law as function is a new type of nonlinear function, defined as tanh(s) is the hyperbolic tangent function of the sliding mode function s, k1, k2, ε, δ, α are all constants, ε>0, 0<δ<1, α>0, k1>0, k2>0;
[0075] For the proposed new reaching law, when |s|<δ, It plays an important role, that is, when s→0, The existence of ensures that the system's approach speed will not be too small at this time, thus accelerating the approach speed; when |s|>δ, k1tanh(s)+k2s plays a leading role, and this function expression is continuous, which avoids the discontinuity of the sign function and can theoretically improve the system's chattering.
[0076] (5) Design of system control law: From formula (14), we can get:
[0077]
[0078] Let equation (16) equal to zero. In order to achieve the reaching law of the new power function designed in (4), the control law of the system is selected as:
[0079]
[0080] (6) Design of system adaptive law:
[0081] The application of the system adaptive law is proposed for the unobservable part of the disturbance signal. Based on the previous sliding mode disturbance observer, the adaptive control is introduced to estimate and compensate for the unobservable part of the disturbance.
[0082] definition is the estimated value of the unobservable part, then the estimation error is
[0083] In order to derive the adaptive law of the system, the Lyapunov function of the adaptive sliding mode control is defined as:
[0084]
[0085] make but:
[0086] The adaptive law is taken as
[0087] Where χ is a constant.
[0088] At this time, the control law of the system is:
[0089]
[0090] (7) Analysis and simulation verification of system stability
[0091] Stability is the most basic requirement of a control system. The backstepping control method is used in combination with the observer and the adaptive sliding mode controller to design a Lyapunov model to determine the stability of the entire system. Appropriate constants and constant matrices are selected to ensure that the entire system has a global asymptotic stability.
[0092] For the stability judgment of the entire closed-loop system, the Lyapunov function is taken:
[0093]
[0094] Deriving model (22), substituting equations (10), (17), (21) and (22) into the equation, we can obtain:
[0095]
[0096] By selecting appropriate parameters, V1≤0 can be ensured.
[0097] In order to verify the feasibility and effectiveness of the proposed method, MATLAB and SIMULINK are used as simulation experiment platforms, and the Robotics System Toolbox and SimMechanics plug-ins provided by the system are used as simulation platforms. The simulation experiment conditions are set as follows:
[0098] The starting joint angle of the robot arm (in radians) θ0 = [0.7, -1.1] T The total movement time T = 10.0s, the time step dt = 0.001s, and the expected trajectory is θ d =[0.1*sin(t),0.1*sin(t)], the constants are set to: α=0.25,δ=0.05,
[0099] The simulation results of the adaptive sliding mode control method for the manipulator based on disturbance observer compensation proposed in this embodiment are as follows: Figure 2-4 shown. Figure 2 The changes in joint angles during the movement of the robot arm are shown. The simulation results verify the correctness of the theory, and the joint angles converge quickly and can quickly track the desired trajectory.
[0100] Figure 3 The error of the robot arm joint angle is shown. The accuracy of trajectory tracking is further demonstrated. The tracking error of joints 1 and 2 of the robot arm is within 10-4 Rad level, improving the tracking performance of the robotic arm.
[0101] Figure 4 The control torque of the robot arm is shown in the figure. The control torque curve is continuous and smooth, which greatly reduces the chattering of the sliding mode control.
[0102] In summary, the adaptive sliding mode control method for the manipulator based on disturbance observer compensation designed in the present invention can not only accurately track the trajectory, but also better cope with the influence of disturbances caused by external interference and changes in the internal parameters of the manipulator on the system performance.
[0103] The present invention and its embodiments are described schematically above, and the description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. Therefore, if a person skilled in the art is inspired by it and designs a structural method and an embodiment similar to the technical solution without creativity without departing from the purpose of the invention, they shall all fall within the protection scope of the present invention.
Claims
1. A method for adaptive sliding mode control of a manipulator based on disturbance observer compensation, characterized in that: The steps are: S1. Establish the kinematic model of the robot arm: Use the DH model to establish the coordinate system, taking the robot base as the reference coordinate system, and each joint and the end effector as the motion reference system; S2. Establish the dynamic model of the robotic arm: Use the Lagrangian method to model the dynamics of the robotic arm; S3. Design a disturbance observer: observe the observable part of the system modeling error in step S2 online, and adjust the gain matrix of the disturbance observer so that the observation error decays exponentially and eventually converges. S4, sliding mode controller and new control reaching law: Based on the constant velocity reaching law and the exponential reaching law, a special power function reaching law is used to improve chattering, reduce convergence time and tracking error; S5. Design of the adaptive law for the manipulator system: Estimation and compensation of the unobservable part of the disturbance through adaptive law control; In step S4, the joint position error is defined as: (12), then the joint velocity error is (13); in is the desired joint position; Take the sliding mode function as (14); in is the coefficient matrix; The new control reaching law is taken as: (15); function is a new type of nonlinear function, defined as , For the sliding mode function The hyperbolic tangent function of are all constants, ; For the reaching law, when hour, Play an important role, that is, when , The existence of ensures that the approach speed of the robotic arm system will not be too slow at this time, thus speeding up the approach speed; when hour, Plays a leading role, and this function expression is continuous, which avoids the discontinuity of the sign function and improves the chattering of the sliding mode controller.
2. The method for adaptive sliding mode control of a manipulator based on disturbance observer compensation according to claim 1, wherein: In the step S1: S1-1. Define the parameters of each robot arm and the improved DH coordinate method as follows: Connecting rod length :refers to Move to The distance, direction along The axis is actually the length of the common perpendicular; Connecting rod rotation angle :refers to Rotate to The angle of rotation in the direction of The positive direction of rotation of the axis is positive; Connecting rod offset :Define along The direction of the axis, Axis to Axis The moving distance actually describes the moving distance between two common perpendicular lines; Joint motion angle :refers to Rotate to angle, along Rotation in the positive direction of the axis is recorded as positive; S1-2. Improve the steps of establishing the DH coordinate system by drawing the axes of each joint: Axis: Along the joint axis Axial direction; Origin: No. and The common perpendicular line of the two joint axes, or the intersection point with the The intersection of the joint axes is the coordinate system origin; Joint axis Pointing joint axis The direction of Axis along the common vertical line The common perpendicular direction of the axis, if the two joint axes intersect, then The axis is perpendicular to the plane where the two axes are located, and its common perpendicular direction is determined by the right-hand rule. Directions: If the variable of the first joint is 0, the coordinate system is defined and coordinate system Coincidentally, other coordinate systems , origin and The direction is not specified.
3. The method for adaptive sliding mode control of a manipulator based on disturbance observer compensation according to claim 2, wherein: The posture transformation relationship between all two adjacent links in step S1 is calculated in the form of expression, and the expression is: (1) The kinematic model of the tool coordinate system at the end of the robot arm relative to the base coordinate system is described as: (2) in is the joint angle matrix, is the terminal posture matrix, is the end position vector, are the unit coordinates of the end effector Direction cosines relative to the base coordinates.
4. The method for adaptive sliding mode control of a manipulator based on disturbance observer compensation according to claim 3, wherein: In step S2, the Lagrangian function is first defined as: (3); In the formula is the Lagrangian function, is the total kinetic energy of the robotic arm system, is the total potential energy of the robotic arm system, so we can get , , (4); in represents the generalized coordinates in the robotic arm system, is the corresponding speed, For the The force or torque acting on the connecting rod is Represents the number of connecting rods; The dynamic model of the robotic arm is: ,(5); in is the inertia matrix of the robotic arm; represents the centrifugal force and inertial force matrix, is the gravity matrix acting on the robotic arm, is the control torque acting on the joint, External disturbance signal Including modeling errors, parameter changes and other uncertain interference factors ,Right now ; (6)。 5. The method for adaptive sliding mode control of a manipulator based on disturbance observer compensation according to claim 4, wherein: In step S3, without prior knowledge of differential equations, it is assumed that the disturbance changes slowly relative to the disturbance observer, that is: (7); Define the error of the disturbance observer (8); The interference observation is defined as: (9) Combining equations (5), (7), (8), and (9), we can obtain: (10); The expression of the disturbance observer is: (11); in External disturbance signal The estimated value of is the gain matrix of the nonlinear disturbance observer, is the auxiliary vector defined; The nonlinear function to be designed.
6. The method for adaptive sliding mode control of a manipulator based on disturbance observer compensation according to claim 5, wherein: In step S4, the control law of the manipulator system is designed: Based on formula (14), it can be obtained: (16); Let equation (16) be equal to zero. In order to achieve the reaching law that is the special power reaching law designed in step S4, the control law of the designed manipulator system is: (17)。 7. The method for adaptive sliding mode control of a manipulator based on disturbance observer compensation according to claim 6, wherein: In step S5, it is defined is the estimated value of the unobservable part, then the estimation error is (18); In order to derive the adaptive law of the manipulator system, the Lyapunov function of the adaptive sliding mode control is defined as: (19); make (20), then: The adaptive law is taken as (21), where is a constant; At this time, the control law of the robotic arm system is: (22)。 8. The method for adaptive sliding mode control of a manipulator based on disturbance observer compensation according to claim 7, wherein: It also includes step S6, simulation verification and result analysis: using the inverse control method, combined with the observer and the adaptive sliding mode controller, designing a Lyapunov model to determine the stability of the entire robotic arm system, selecting appropriate constants and constant matrices, and ensuring that the entire robotic arm system has global asymptotic stability.
