A robust control method for approximate constraints of SCARA robots based on deep reinforcement learning

Optimizing SCARA robot control parameters through deep reinforcement learning solves the problems of SCARA robot system uncertainty and trajectory tracking stability, and achieves stable trajectory tracking performance in complex environments.

CN118034061BActive Publication Date: 2024-09-20HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410371217.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2024-09-20
Estimated Expiration
2044-03-29

AI Technical Summary

Technical Problem

Due to the complex time-varying and strongly coupled dynamic characteristics of the SCARA robot system, internal parameter deviations and unknown disturbances lead to control system uncertainty. Traditional controllers require manual parameter adjustment and cannot dynamically adjust control parameters according to different environments, making it difficult to achieve a stable trajectory. track.

Method used

The approximate constrained robust control method based on deep reinforcement learning is used to construct the SCARA robot dynamics model, determine the ideal constraint conditions, design the approximate constrained robust controller, and use the DDPG algorithm to optimize the control parameters to adjust the robust control system in real time. parameters to reduce the impact of uncertainty.

Benefits of technology

The stability of the SCARA robot's trajectory tracking performance is achieved, and the stability of the control system can be maintained under structural parameter perturbations and external interference, and the trajectory tracking performance can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118034061B
    Figure CN118034061B
Patent Text Reader

Abstract

A SCARA robot approximate constraint robust control method based on deep reinforcement learning, a SCARA robot dynamics model is established based on the Lagrange equation, an ideal constraint in the robot system is established based on the U-K equation, a robust approximate constraint following controller of the SCARA robot is designed according to the dynamics model and the ideal constraint, a deep deterministic policy gradient algorithm is established, a state space, an action space, and a reward function are designed, and the control parameters of the robust controller are adjusted in real time according to the trajectory tracking state of the SCARA robot, and finally the optimal robust control parameters are learned. The present invention uses the DDPG algorithm to collect the working state of the SCARA robot, and adjusts the parameters of the robust control system in real time, so that the system always maintains stable trajectory tracking performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of SCARA robot control, and in particular to a SCARA robot approximate constraint robust control method based on deep reinforcement learning. Background Art

[0002] The trajectory tracking control of the SCARA robot is mainly to enable each joint or end effector to track the desired trajectory quickly and stably. However, the SCARA robot system is a complex control system with multiple inputs and outputs, and has time-varying and strongly coupled dynamic characteristics. In addition, internal parameter deviations and unknown disturbances lead to uncertainty in the system. Traditional controllers require manual and continuous parameter adjustment to achieve better control effects, but they rely on a specific environment in advance and cannot dynamically adjust control parameters according to different environments and different work tasks. Summary of the invention

[0003] The present invention discloses an approximate constraint robust control method for a SCARA robot based on deep reinforcement learning. The SCARA robot includes four degrees of freedom, the first degree of freedom is overall lifting, the second degree of freedom is arm rotation, the third degree of freedom is arm rotation, and the fourth degree of freedom is end rotation. For the second degree of freedom and the third degree of freedom, an approximate constraint robust control method is constructed, and the specific method is as follows:

[0004] Construct the SCARA robot dynamics model;

[0005] Determine ideal constraints;

[0006] Design approximate constrained robust controllers;

[0007] The control parameters of the approximate constrained robust controller are optimized using the DDPG algorithm;

[0008] The SCARA robot is controlled by the optimized approximate constrained robust controller.

[0009] Furthermore, the SCARA robot dynamics model is constructed as follows:

[0010]

[0011] Where q is the rotation angle, is the rotation speed, is the rotational acceleration, σ is the uncertain disturbance, M is the inertia moment, C is the Coriolis and centrifugal moment, and F is the friction moment and external disturbance moment.

[0012] Furthermore, the ideal constraints are as follows:

[0013] The equation of motion of the uncertainty-free and unconstrained system can be rewritten as

[0014]

[0015] Among them, J c ∈Σ is the constraint force;

[0016] The expression of the constraint force is:

[0017]

[0018] in, represents the nominal part of (·), Expressed as the Moore-Penrose generalized inverse.

[0019] Furthermore, an approximate constrained robust controller is designed as follows:

[0020]

[0021] in,

[0022]

[0023] Where k>0,

[0024]

[0025] in, ∈>0,

[0026] Furthermore, the DDPG algorithm is used to optimize the P, k and ∈ parameters of the approximate constrained robust controller. The specific method is as follows:

[0027] Obtain the basic dynamic parameters, Coulomb friction coefficient and viscous friction coefficient of the SCARA robot;

[0028] Initialize the initial state of the SCARA robot, the expected joint motion trajectory, the weight parameters of the main network and the target network, and introduce random noise;

[0029] Get the network input state s at time t t =(q i ,e i ,∫q i dt)

[0030] Dynamic information t Observe and select the parameter a of the robust controller according to the strategy μ t , a t=(P, k, ∈), is the action vector of the robust controller P, k, ∈ parameters. Adding noise N during action selection can prevent the agent from falling into the local optimal solution when selecting actions. The action at the tth moment is expressed as follows:

[0031]

[0032] in, represents the weight parameter of the policy network in the main network, N represents noise; μ(·) is the policy function in the main network, which outputs actions according to the input state, is used to interact with the environment, and iteratively updates the network weight function;

[0033] The state transition process (s t ,a t ,r t ,s t+1 ) is stored in the experience pool, where r t Execute action a for the robust controller t The reward obtained after t+1 is the network input state at time t+1;

[0034] Randomly select M state transition processes (s t ,a t ,r t ,s t+1 ) as a training set, and obtain the cumulative reward Q target

[0035] Q target =r j +γQ'(s j+1 ,μ'(s j+1 |θ μ' )|θ Q' )

[0036] Among them, θ μ' and θ Q' are the weight coefficients of the policy network and value network in the target network, respectively, and γ is the discount factor. Q'(·) is the value network in the target network, which is used to calculate the evaluation value of the target network based on the experience pool and provide the main network; μ'(·) is the policy network in the target network, which is used to calculate the action of the target network based on the data in the experience pool;

[0037] The current value network uses the gradient descent method to minimize the loss function and adjust the weight parameter θ in the value network. Q Update, where L(θ Q ) is the value network loss function:

[0038]

[0039] The current policy network uses a deterministic policy gradient method to adjust the weight parameter θ in the policy network by minimizing the loss function. μ Update, where is the policy network loss function:

[0040]

[0041] By minimizing the loss function L(θ Q )、J(θ μ ) Update the weight parameters θ in the value network and the policy network in the main network Q ,θ μ ;

[0042] Update the target network weight parameters θ of the value network and the policy network μ' ,θ Q' , if s j+1 If the state is the termination state, the iteration of this round ends; the target value network and the target strategy network are updated through a soft update method with an update rate of as follows:

[0043] θ j+1 Q' ←ρθ Q +(1-ρ)θ j Q'

[0044] θ j+1 μ' ←ρθ μ +(1-ρ)θ j μ' .

[0045] Furthermore, when the robust controller P, k and ∈ parameters are optimal, the following formula is satisfied:

[0046]

[0047] in, is the desired joint angle, q i is the actual joint angle, and p is the physical parameter of the SCARA robot.

[0048] Furthermore, the reward function r is designed as follows:

[0049] r=r1+r2

[0050]

[0051] Among them, ψ is the set joint angle critical value.

[0052] Due to the adoption of the above technical solution, the present invention has the following beneficial effects:

[0053] 1. The present invention uses the DDPG algorithm to collect the working status of the SCARA robot and adjusts the parameters of the robust control system in real time, so that the system always maintains stable trajectory tracking performance.

[0054] 2. The uncertainty of the nonlinear dynamic model of the SCARA robot is compensated by robust control based on the UK equation. Under the conditions of structural parameter perturbations, time-varying external disturbances, and friction resistance of the SCARA robot, the influence of the uncertainty of the dynamic model on the controller can be reduced, thereby maintaining the stability of the control system and further improving the trajectory tracking performance of the SCARA robot. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings of the present invention are as follows.

[0056] Figure 1 1 is a flow chart of the control method in the embodiment.

[0057] Figure 2 This is a schematic diagram of a SCARA robot.

[0058] Figure 3 This is a simplified model diagram of the SCARA robot.

[0059] Figure 4 This is the design diagram of the SCARA robot controller based on DDPG.

[0060] Figure 5 It is a schematic diagram of the strategy network structure.

[0061] Figure 6 It is a schematic diagram of the value network structure. DETAILED DESCRIPTION

[0062] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0063] like Figure 2 and Figure 3 As shown in the figure, the SCARA robot can be driven directly by the servo drive inside the motor and can directly complete motion control. Its controller is inside the system, with a compact structure, light weight and high rigidity. Figure 2The SCARA robot shown has four degrees of freedom, including three rotation joints and one translation joint. The first degree of freedom is the lifting motion, the next three degrees of freedom are the rotation of the upper arm and the lower arm, and the last degree of freedom is the rotation, which can drive the end effector to rotate. The lifting motion of the first degree of freedom is performed separately from the other three motions, and the rotation motion of the end does not affect the positioning accuracy of the SCARA robot. The second and third rotation joints are coupled to each other and contribute decisively to the motion accuracy of the SCARA robot. Therefore, in order to simplify the robot dynamics model, only the second and third joints are considered. Figure 3 A simplified SCARA robot model is shown. The masses of joint 1 and joint 2 are m1 and m2 respectively, m3 represents the mass of the motor in joint 2, m4 represents the total mass of the end of the robot hand and the end motor, and l1 and l2 represent the lengths of joint 1 and joint 2 respectively. lc1 and lc2 are the distances from the center of mass of each joint to the center of rotation.

[0064] A robust control method for approximate constraints of SCARA robots based on deep reinforcement learning, such as Figure 1 As shown, the specific steps are as follows:

[0065] S1. Establish the SCARA robot dynamic model.

[0066] The energy-based Lagrangian method is often used as a way to model the dynamics of mechanical systems. Its general expression is

[0067]

[0068] in, is the Lagrange multiplier, which can be expressed as

[0069]

[0070] in, is the kinetic energy of the system, V(q,t) is the potential energy of the system, q i ∈R n represents the generalized coordinates of the system, q i ∈R n represents the generalized velocity of the system, τ i ∈R n and τ fi ∈R n are the input torque and external disturbance torque of the system respectively. Since there is no potential energy difference in the simplified robot model, that is, V(q,t) is equal to zero, the dynamic model of the SCARA robot can be expressed as:

[0071]

[0072] Where M(q,t)∈R2×2 represents the moment of inertia, is expressed as Coriolis and centrifugal torque, G(q,t) is expressed as gravity vector, Expressed as friction torque and external disturbance torque.

[0073] Since the simplified model is a two-degree-of-freedom plane, the dynamic model can be expanded to:

[0074]

[0075] in,

[0076]

[0077] in,

[0078]

[0079] The SCARA robot is considered as a planar two-degree-of-freedom (2DOF) manipulator, so gravity does not affect the SCARA robot.

[0080] Appropriate friction can significantly improve the control performance. Using the Coulomb and viscous friction models, it can be expressed as

[0081]

[0082] Among them, f ci is the Coulomb friction coefficient, f vi is the viscous friction coefficient, and sign (·) represents the sign function. In order to ensure the continuity and smoothness of the friction force, the function symbol can be expressed as

[0083]

[0084] The coefficient r is set to a larger value to ensure that the tangent hyperbolic function has a larger slope near zero, thereby better reflecting the changing trend of the sign function.

[0085] In actual operation of SCARA robots, the parameters inside the system cannot be accurately obtained and are also affected by unknown interference factors. These are collectively referred to as uncertainties within the system. The robot dynamics model can be described as

[0086]

[0087] S2. Determine the ideal constraints.

[0088] σ∈R in the robot dynamics model 2 , assuming that the uncertainty of the SCARA robot system is time-varying and bounded, there exists a known set Σ that satisfies σ∈Σ∈R2 .

[0089] The constraint forces of the uncertainty-free constraint system can be obtained by the following steps:

[0090] First, according to the basic knowledge of Lagrangian mechanics, the equation of motion of an unconstrained system without uncertainty can be expressed as

[0091]

[0092] in, It is expressed as applied force, Coriolis force and centrifugal force, friction force, and gravity, that is,

[0093]

[0094] Assuming that the system is subject to h complete constraints and mh incomplete constraints, it can be described as

[0095]

[0096] Among them, m≤n represents the number of constraints of the system, and n represents the dimension of the system coordinate variable q.

[0097] Taking the derivative of the complete constraint in the above formula with respect to time t, and considering the incomplete constraint, we get

[0098]

[0099] The first-order constraint expression in the above formula is complete. If we continue to derive it, we get

[0100]

[0101] The above formula can be rewritten as

[0102]

[0103] That is, a second-order constraint equation is obtained. According to the above derivation, the final constraint equation is:

[0104]

[0105] in,

[0106]

[0107] When the uncertainty is known, the constraint force can be obtained, and the motion equation of the unconstrained system without uncertainty can be rewritten as

[0108]

[0109] Among them, J c ∈Σ is the constraint force.

[0110] Assumption 1: The second-order constraint equations are consistent, for (q, t)∈R n ×R, σ(t)∈Σ,M(q,σ,t)>0. Considering the system and constraints comprehensively, under the assumption that the constraint force is established, according to UK theory, the constraint force expression can be written as follows:

[0111]

[0112] in, represents the nominal part of (·), Expressed as the Moore-Penrose generalized inverse.

[0113] S3. Design an approximate constrained robust controller.

[0114] Due to the uncertainty of the controlled object, the rewritten system motion equation is decomposed as follows:

[0115]

[0116] in, All are nominal parts, ΔM(·)ΔJ(·)ΔJ c (·) represents the uncertain part in the constraint system.

[0117] make

[0118]

[0119] Then we get

[0120] ΔE(q,σ,t)=E(q,t)K(q,σ,t),M -1 (q,σ,t)=E(q,t)+ΔE(q,σ,t)

[0121] Assumption 2: is reversible, then for a given 0 <P∈R n×n ,have

[0122]

[0123] Assumption 3: There exists a scalar So that for all (q,t)∈R n ×R,

[0124]

[0125] Based on the above three assumptions, the SACRA robot controller can be designed into the following three parts:

[0126]

[0127] in,

[0128]

[0129] Where k>0,

[0130]

[0131] in, ∈>0,

[0132] The controller consists of three controls, is the nominal control term based on the UK equation, Can be used to solve the initial incompatible control problem, Mainly used to compensate for uncertainties in the system.

[0133] For the above controller, different control performances can be achieved by changing the P, k, ∈ terms. Specifically, P is positively correlated with the response speed of the system, but a large P will increase the control cost and needs to be selected according to the actual situation; the gain coefficient k is used to deal with different initial incompatible conditions, but a large k will reduce the tracking accuracy of the system; the size of the final bounded sphere radius can be designed according to ∈, but a radius that is too small will cause system oscillations.

[0134] Set the desired trajectory and solve the first-order and second-order constraints of the SCARA robot system

[0135]

[0136] Taking the first and second order derivatives of the above formula,

[0137]

[0138] D, b, a can be obtained through the first-order and second-order constraints of the SCARA robot system.

[0139]

[0140] The uncertainty in the SCARA robot system is simulated by the following periodic small changes,

[0141]

[0142] Δm i =0.1cos(0.1t),i=1,2,3,4

[0143] The basic dynamic parameters, Coulomb friction coefficient and viscous friction coefficient of the SCARA robot are shown in the following table.

[0144]

[0145] S4. Optimize the control parameters of the approximate constrained robust controller using the DDPG algorithm.

[0146] Deep reinforcement learning uses evaluation indicators to assess the value of the agent's decision-making behavior during the training process. In the process of the agent's decision-making, a large amount of data is generated for the agent to train, so as to achieve the set goals in a complex and uncertain environment. The deep reinforcement learning method can automatically adjust the parameters of the controller in the control system to enhance the performance of the control system.

[0147] The design of SCARA robot controller based on DDPG is as follows Figure 4 As shown:

[0148] Get the robot's motion data, using the joint angles q of the SCARA robot i 、Angle error e i , angle error product ∫q i dt, divided into state vector s t =(q i ,e i ,∫q i dt), where Construct the network state input at time t.

[0149] According to the state s at time t t Input into the deep reinforcement learning model, the action space of the robust controller can obtain the optimal action a t , where the parameter P,k,∈ of the SCARA robot robust controller is used as the action vector a t =(P, k, ∈).

[0150] Strategy network Figure 5 As shown, the input layer of the policy network is the state vector s of the SCARA robot t , the middle two hidden layers have 300 units each, and the output layer is the parameter vector a of the robust controller t ; Value network such as Figure 6 As shown, the input layer of the value network contains the state vector s t and the action vector a t , the middle hidden layers are 400 units, 300 units, and 300 units respectively, and the output layer is the Q value of the action.

[0151] The SCARA robot trajectory tracking control problem can be expressed as the following formula, the purpose of which is to make the joint angle error small enough, that is, the robust controller parameter selection is optimal.

[0152]

[0153] in, is the desired joint angle, q i is the actual joint angle, and p is the physical parameter of the SCARA robot.

[0154] In the trajectory tracking control of the SCARA robot, focusing on the tracking error and joint angle, the following reward function r can be designed:

[0155] r=r1+r2

[0156]

[0157] Among them, ψ is the set joint angle critical value.

[0158] Initialize the model parameters, including the initial state of the SCARA robot, the expected joint motion trajectory, set the main network and target network weight parameters to random numbers, and introduce random noise for the action exploration process.

[0159] Initialize the model parameters and train the DDPG deep reinforcement learning network, including the following steps:

[0160] S41. Obtaining the network input state s at time t t =(q i ,e i ,∫q i dt).

[0161] S42, dynamic information of the intelligent agent to the robot t Observe and select the parameter a of the robust controller according to the strategy μ t , adding noise N while selecting actions can prevent the agent from falling into the local optimal solution when selecting actions. The action at the tth moment is expressed as follows:

[0162]

[0163] in, represents the weight parameter of the policy network in the main network, and N represents noise. μ(·) is the policy function in the main network, which outputs actions according to the input state, is used to interact with the environment, and iteratively updates the network weight function.

[0164] S43, the state conversion process (s t ,a t ,r t ,st+1 ) is stored in the experience pool, where r t Execute action a for the robust controller t The reward obtained after t+1 is the network input state at time t+1.

[0165] In the robust controller, perform action a t Afterwards, the robust controller controls the SCARA robot to interact with the environment to obtain the reward r t , and then enter the new state s t+1 , at this time, the state transition process (s t ,a t ,r t ,s t+1 ) is stored in the experience pool.

[0166] S44, randomly select M state transition processes (s t ,a t ,r t ,s t+1 ) as a training set, and obtain the cumulative reward Q target , the value network is as follows Figure 6 Shown

[0167] Q target =r j +γQ'(s j+1 ,μ'(s j+1 |θ μ' )|θ Q' )

[0168] Among them, θ μ' and θ Q' are the weight coefficients of the policy network and value network in the target network, respectively, and γ is the discount factor. Q'(·) is the value network in the target network, which is used to calculate the evaluation value of the target network based on the experience pool and provide the main network; μ'(·) is the policy network in the target network, which is used to calculate the action of the target network based on the data in the experience pool.

[0169] S45, the current value network uses the gradient descent method to minimize the loss function and adjust the weight parameter θ in the value network. Q Update, where L(θ Q ) is the value network loss function.

[0170]

[0171] S46, the current policy network uses the deterministic policy gradient method to adjust the weight parameter θ in the policy network by minimizing the loss function. μ Update, where is the policy network loss function.

[0172]

[0173] By minimizing the loss function L(θ Q )、J(θ μ ) Update the weight parameters θ in the value network and the policy network in the main network Q ,θ μ .

[0174] S47. Update the target network weight parameters θ of the value network and the strategy network μ' ,θ Q V , If j+1 If it is in the termination state, the iteration of this round ends, otherwise go to step S42.

[0175] The target value network and the target policy network are updated by a soft update method with an update rate of ρ as follows

[0176] θ j+1 Q' ←ρθ Q +(1-ρ)θ j Q'

[0177] θ j+1 μ' ←ρθ μ +(1-ρ)θ j μ'

[0178] In step S4, the agent uses the policy function π to deal with the current state s of the SCARA robot. t =(θ i ,e i ,∫θ i dt) to make decisions and obtain the controller parameters P,k,∈ through the output behavior a. Among them, in each training time step t, the agent can observe the current state s of the SCARA robot t , and execute an action a according to the current strategy μ, and obtain an immediate reward from the environment after the action is completed.

[0179] The model training settings hyperparameters are shown in the following table:

[0180] parameter Numeric Policy network learning rate 0.0001 Value network learning rate 0.0001 Discount factor γ 0.98 Experience Pool Space RM <![CDATA[10 5 ]]> Small batch sampling 100 Maximum number of training steps 600

[0181] Among them, when the SCARA robot meets one of the following conditions: the tracking error of each joint trajectory continues to remain within the set ideal range or the error deviates seriously from the set range or the number of exploration steps during training has reached the maximum number of exploration steps, the training process of the mobile robot in this state ends. If the reward value and the reward value obtained by the robot during the training process remain stable and at a high level, that is, the trajectory tracking error remains stable or lower than the set threshold in several consecutive training cycles, the training ends.

[0182] S5. Control the SCARA robot with the optimized approximate constrained robust controller.

[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A SCARA robot approximate constraint robust control method based on deep reinforcement learning, characterized in that: The SCARA robot includes four degrees of freedom, the first degree of freedom is overall lifting, the second degree of freedom is the rotation of the upper arm, the third degree of freedom is the rotation of the lower arm, and the fourth degree of freedom is the rotation of the end. For the second and third degrees of freedom, an approximate constraint robust control method is constructed, and the specific method is as follows: Construct the SCARA robot dynamics model; Determine ideal constraints; Design approximate constrained robust controllers; The control parameters of the approximate constrained robust controller are optimized using the DDPG algorithm; Control the SCARA robot with the optimized approximate constrained robust controller; Construct the SCARA robot dynamic model as follows: Where q is the rotation angle, is the rotation speed, is the rotation acceleration, σ is the uncertain disturbance, M is the inertia moment, C is the Coriolis and centrifugal moment, and F is the friction moment and external disturbance moment; The ideal constraints are as follows: The equation of motion of the uncertainty-free and unconstrained system can be rewritten as in, Expressed as applied force, Coriolis force and centrifugal force, friction force, gravity, J c ∈∑ is the constraint force; The expression of the constraint force is: in, represents the nominal part of (·), Expressed as Moore-Penrose generalized inverse; Design an approximate constrained robust controller as follows: in, Among them, k>0, β(q, q, t)=D(q, t)qb(q, t) in, The DDPG algorithm is used to optimize the P, k and ∈ parameters of the approximate constrained robust controller. The specific method is as follows: Obtain the basic dynamic parameters, Coulomb friction coefficient and viscous friction coefficient of the SCARA robot; Initialize the initial state of the SCARA robot, the expected joint motion trajectory, the weight parameters of the main network and the target network, and introduce random noise; Get the network input state s at time t t =(q i , e i , ∫q i dt) Dynamic information t Observe and select the parameter a of the robust controller according to the strategy μ t , a t =(P, k, ∈), is the action vector of the robust controller P, k, ∈ parameters. Adding noise N during action selection can prevent the agent from falling into the local optimal solution when selecting actions. The action at the tth moment is expressed as follows: a t =μ(s t |θ t μ )+N Among them, θ t μ represents the weight parameter of the policy network in the main network, N represents noise; μ(·) is the policy function in the main network, which outputs actions according to the input state, is used to interact with the environment, and iteratively updates the network weight function; The state transition process (s t , a t , r t ,s t+1 ) is stored in the experience pool, where r t Execute action a for the robust controller t The reward obtained after t+1 is the network input state at time t+1; Randomly select M state transition processes (s t , a t , r t ,s t+1 ) as a training set, and obtain the cumulative reward Q target Q target =r j +γQ′(s j+1 ,μ′(s j+1 |θ μ )|θ Q ) Among them, θ μ′ and θ Q′ are the weight coefficients of the policy network and value network in the target network, respectively, and γ is the discount factor; Q′(·) is the value network in the target network, which is used to calculate the evaluation value of the target network based on the experience pool and provide the main network; μ′(·) is the policy network in the target network, which is used to calculate the action of the target network based on the data in the experience pool; The current value network uses the gradient descent method to minimize the loss function and adjust the weight parameter θ in the value network. Q Update, where L(θ Q ) is the value network loss function: The current policy network uses a deterministic policy gradient method to adjust the weight parameter θ in the policy network by minimizing the loss function. μ Update, where is the policy network loss function: By minimizing the loss function L(θ Q )、J(θ μ ) Update the weight parameters θ in the value network and the policy network in the main network Q ,θ μ ; Update the target network weight parameters θ of the value network and the policy network μ′ ,θ Q′ , if s j+1 If the state is terminated, the iteration of this round ends; the target value network and the target strategy network are updated by a soft update method with an update rate of ρ as follows: i j+1 Q′ ←ρθ Q +(1-p)θ j Q′ i j+1 μ′ ←ρθ μ +(1-p)θ j μ′ 。 2. The SCARA robot approximate constraint robust control method based on deep reinforcement learning as claimed in claim 1, characterized in that: When the robust controller P, k and ∈ parameters are optimal, the following formula is satisfied: in, is the desired joint angle, q i is the actual joint angle, and p is the physical parameter of the SCARA robot.

3. The SCARA robot approximate constraint robust control method based on deep reinforcement learning as claimed in claim 1, characterized in that: The formula for designing the reward function r is as follows: r=r1+r2 Among them, ψ is the set joint angle critical value.