A robot dynamic motion control method and device based on dual neural network
Robot dynamic motion control is realized through dual neural network models, which solves the problems of spatial inconsistency and nonlinear strong coupling, provides an efficient control method that does not require accurate models, is suitable for robot trajectory tracking control, and is efficient and robust.
Patent Information
- Application Number
- CN202110126443.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-01-29
AI Technical Summary
There are spatial inconsistencies and strong coupling of system nonlinearities in robot dynamic motion control. Traditional methods rely on accurate models and are difficult to achieve high-precision tracking control.
Using a control method based on dual neural networks, by establishing a mathematical model of the robot, two neural network models are designed to output joint angular velocity instructions and joint control torques in real time, achieving efficient control without the need for accurate models.
This method does not require an accurate robot model, has high efficiency and good adaptability, can effectively reduce the amount of calculation, and is robust to uncertain disturbances.
Smart Images

Figure CN112894819B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot control technology, and in particular to a robot dynamics motion control method and device based on dual neural networks. Background Art
[0002] Robot motion control can achieve high-precision tracking of given trajectory tasks by robots, and is the basis for robots to complete all tasks. At present, the motion of robots can be divided into two categories: kinematic control and dynamic control. Kinematic control aims to solve the instructions at the motion level to achieve the purpose of controlling the robot, such as joint angle instructions, joint angular velocity instructions, etc.; dynamic control considers the dynamic characteristics of the robot, and the control quantity of the robot is generally the control torque. With the increasing application of robots, in tasks such as human-computer interaction and multi-machine collaboration, the control method of pure motion instructions may cause the robot to have excessive stiffness, which in turn leads to personal injury or mission failure. Relatively speaking, the dynamic control method directly provides the torque of the robot joint and has natural flexibility. Therefore, dynamics-based robot motion control is an important direction of current robot motion control.
[0003] There are currently several challenges in the motion control of robots: on the one hand, the motion control problem of robots usually focuses on the motion tasks of the robot's end effector, and the control quantity of the robot is applied to each joint. It is necessary to overcome this spatial inconsistency in order to obtain the joint motion instructions corresponding to the end effector; on the other hand, due to the high nonlinearity and strong coupling of the robot's dynamic model, how to solve the robot's control torque to achieve high-precision tracking of the robot's joint motion is also a challenging problem. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art. The present invention provides a robot dynamic motion control method and device based on dual neural networks to solve the problems of spatial inconsistency, system nonlinear strong coupling, and traditional methods relying on precise models in robot dynamic motion control.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a robot dynamic motion control method based on a dual neural network, the method comprising:
[0006] Establishing a mathematical model of the robot, and performing speed correction of the end effector of the robot based on the mathematical model of the robot and the expected position to obtain a corrected speed;
[0007] Designing a first neural network model, and outputting a joint angular velocity instruction of the current robot in real time in the first neural network model based on the joint angular velocity of the robot and the terminal velocity of the robot;
[0008] Calculating a reference joint angular velocity instruction of the robot online based on the correction velocity and the joint angular velocity of the robot;
[0009] Obtaining a tracking error command based on the joint angular velocity command and the reference joint angular velocity command;
[0010] A second neural network model is designed, and the joint control torque of the robot is output in real time in the second neural network model based on the tracking error instruction.
[0011] Optionally, the robot mathematical model is as follows:
[0012] x=f(θ) (1);
[0013]
[0014] Among them, θ represents the joint angle of the robot; represents the joint angular velocity of the robot; x represents the end position of the robot; represents the terminal velocity of the robot; f(θ) represents the mapping from the robot joint space to the terminal task space; J(θ) represents the Jacobian matrix related to the joint angle of the robot.
[0015] The optional calculation formula for performing speed correction of the robot end effector based on the robot mathematical model and the expected position is as follows:
[0016]
[0017] in, Indicates the correction speed performed by the robot end; represents the desired speed of the robot end; x d represents the desired position of the robot end; x represents the end position of the robot; k>0, represents the control constant.
[0018] Optionally, the first neural network model includes an input layer, a fuzzy membership calculation layer, a normalization operation layer and an output layer in sequence;
[0019] The number of neurons in the output layer is the dimension of the difference between the corrected speed and the actual terminal speed of the robot; the number of neurons in the fuzzy membership calculation layer is n1; and the number of neurons in the normalization operation layer is n2.
[0020] Optionally, the output of the j-th neuron in the normalization operation layer is as follows:
[0021]
[0022] Among them, l jrepresents the output of the jth neuron in the normalized operation layer; n1 represents the number of neurons in the fuzzy membership calculation layer; n2 represents the number of neurons in the normalized operation layer; represents the center of the fuzzy odd function; represents the width of the fuzzy odd function; are all fixed values; and i=1,…,n1; j=1,…,n2; x i represents the input of the ith neuron.
[0023] Optionally, the output layer is expressed as:
[0024]
[0025] When formula (5) is described in matrix form, it is:
[0026] Y=W FNN1 L FNN1 (6)
[0027] The online update rate of the first neural network model is:
[0028]
[0029] Among them, y i Represents the output result of the i-th neuron in the output layer; l j represents the output of the jth neuron in the normalized operation layer; n2 represents the number of neurons in the normalized operation layer; represents weights; i = 1,…,n1; j = 1,…,n2; Y = [y1; y2; ...; y i ] is the output vector of the first neural network model; W FNN1 Represents the weight matrix of the first neural network model; L FNN1 =[l1,...,l n2 ], represents the output basis vector of the first neural network; represents the transpose of the output basis vector of the first neural network model; represents the first-order derivative of the weight matrix of a neural network model; s represents the difference between the corrected velocity and the actual terminal velocity of the robot; Γ1 represents a positive definite diagonal matrix.
[0030] Optionally, online calculating a reference joint angular velocity instruction of the robot based on the correction velocity and the joint angular velocity of the robot comprises:
[0031] A first identical neural network model identical to the first neural network model is set, and the joint angular velocity instruction and the correction speed are input into the first identical neural network model for online calculation, and a reference joint angular velocity instruction of the robot is output.
[0032] Optionally, the outputting the current robot's joint angular velocity instruction in real time in the first neural network model based on the robot's joint angular velocity and the robot's terminal velocity includes:
[0033] The joint angular velocity of the robot and the terminal velocity of the robot are input into the first neural network model, and the joint angular velocity instructions of the current robot are output in the first neural network model based on the joint angular velocity of the robot and the terminal velocity of the robot.
[0034] Optionally, the real-time output of the joint control torque of the robot in the second neural network model based on the tracking error instruction is as follows:
[0035]
[0036] Where ε represents the tracking error command; τ represents the joint control torque of the robot; L FNN2 represents the output basis vector of the second neural network model; represents the weight matrix of the second neural network model; K, K r All represent positive control parameters; sgn(ε) represents the sign function of ε; represents the transpose of the output basis vector of the second neural network model; represents the first-order derivative of the weight matrix of the two neural network models; Γ represents a positive definite diagonal matrix.
[0037] In addition, an embodiment of the present invention further provides a robot dynamic motion control device based on a dual neural network, the device comprising:
[0038] Speed correction module: used to establish a robot mathematical model, and perform speed correction of the robot end effector based on the robot mathematical model and the expected position to obtain a corrected speed;
[0039] A first output module: used to design a first neural network model, and output the joint angular velocity instruction of the current robot in real time in the first neural network model based on the joint angular velocity of the robot and the terminal velocity of the robot;
[0040] An online calculation module: used for online calculating a reference joint angular velocity instruction of the robot based on the correction velocity and the joint angular velocity of the robot;
[0041] A tracking error obtaining module: used for obtaining a tracking error instruction based on the joint angular velocity instruction and the reference joint angular velocity instruction;
[0042] The second output module is used to design a second neural network model and output the joint control torque of the robot in real time in the second neural network model based on the tracking error instruction.
[0043] In the embodiment of the present invention, the problems of spatial inconsistency, strong coupling of system nonlinearity, and dependence of traditional methods on precise models in robot dynamic motion control are solved; it is a control method that does not require a model, does not require a precise robot model, and has the advantages of high efficiency and good adaptability; two neural networks are used to solve the robot's trajectory tracking control problem. This method does not require a precise robot kinematic and dynamic model and has good adaptability; two completely identical neural networks FNN1 are used, and through online training (input: joint angle, real-time terminal angular velocity of the robot, training output joint angular velocity, and driving error is the difference between the output angle and the actual joint angular velocity), the neural network is used to calculate the robot's corrected angular velocity instruction online (input: joint angle, corrected velocity of the robot terminal, output robot's corrected joint angular velocity), this method can effectively reduce the amount of calculation; the dynamic control algorithm based on FNN2 not only does not rely on the robot's dynamic model, but also has a certain robustness to the uncertain disturbances received by the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 is a schematic flow chart of a robot dynamic motion control method based on dual neural networks in an embodiment of the present invention;
[0046] Figure 2 It is a schematic diagram of the structural composition of a robot dynamic motion control device based on dual neural networks in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] Example
[0049] See also Figure 1 , Figure 1 It is a flow chart of a robot dynamic motion control method based on dual neural networks in an embodiment of the present invention.
[0050] like Figure 1 As shown, a robot dynamic motion control method based on dual neural networks, the method comprising:
[0051] S11: establishing a mathematical model of the robot, and performing speed correction of the end effector of the robot based on the mathematical model of the robot and the expected position to obtain a corrected speed;
[0052] In the specific implementation process of the present invention, the robot mathematical model is as follows:
[0053] x=f(θ) (1);
[0054]
[0055] Among them, θ represents the joint angle of the robot; represents the joint angular velocity of the robot; x represents the end position of the robot; represents the terminal velocity of the robot; f(θ) represents the mapping from the robot joint space to the terminal task space; J(θ) represents the Jacobian matrix related to the joint angle of the robot.
[0056] Furthermore, the calculation formula for correcting the speed of the robot end effector based on the robot mathematical model and the expected position is as follows:
[0057]
[0058] in, Indicates the correction speed performed by the robot end; represents the desired speed of the robot end; x d represents the desired position of the robot end; x represents the end position of the robot; k>0, represents the control constant.
[0059] Specifically, when establishing a mathematical model of the robot, it is necessary to obtain the robot's joint angles, joint angular velocities, end positions, and end velocities; then the robot mathematical model is established based on the robot's joint angles, joint angular velocities, end positions, and end velocities. The robot mathematical model is as follows:
[0060] x=f(θ) (1);
[0061]
[0062] Among them, θ represents the joint angle of the robot; represents the joint angular velocity of the robot; x represents the end position of the robot; represents the terminal velocity of the robot; f(θ) represents the mapping from the robot joint space to the terminal task space; J(θ) represents the Jacobian matrix related to the joint angle of the robot.
[0063] After the robot mathematical model is established, it is necessary to calculate the speed correction of the robot end effector according to the robot mathematical model and the expected position to obtain the corrected speed. The specific calculation process is as follows:
[0064]
[0065] in, Indicates the correction speed performed by the robot end; represents the desired speed of the robot end; x d represents the desired position of the robot end; x represents the end position of the robot; k>0, represents the control constant.
[0066] S12: designing a first neural network model, and outputting a joint angular velocity instruction of the current robot in real time in the first neural network model based on the joint angular velocity of the robot and the terminal velocity of the robot;
[0067] In the specific implementation process of the present invention, the first neural network model includes an input layer, a fuzzy membership calculation layer, a normalization operation layer and an output layer in sequence; the number of neurons in the output layer is the dimension of the difference between the corrected speed and the actual terminal speed of the robot; the number of neurons in the fuzzy membership calculation layer is n1; the number of neurons in the normalization operation layer is n2.
[0068] Furthermore, the output of the jth neuron in the normalized operation layer is as follows:
[0069]
[0070] Among them, l j represents the output of the jth neuron in the normalized operation layer; n1 represents the number of neurons in the fuzzy membership calculation layer; n2 represents the number of neurons in the normalized operation layer; represents the center of the fuzzy odd function; represents the width of the fuzzy odd function; are all fixed values; and i=1,…,n1; j=1,…,n2; x i represents the input of the ith neuron.
[0071] Furthermore, the output layer is expressed as:
[0072]
[0073] When formula (5) is described in matrix form, it is:
[0074] Y=W FNN1 L FNN1 (6)
[0075] The online update rate of the first neural network model is:
[0076]
[0077] Among them, y i Represents the output result of the i-th neuron in the output layer; l j represents the output of the jth neuron in the normalized operation layer; n2 represents the number of neurons in the normalized operation layer; represents weights; i = 1,…,n1; j = 1,…,n2; Y = [y1; y2; ...; y i ] is the output vector of the first neural network model; W FNN1 Represents the weight matrix of the first neural network model; L FNN1 =[l1,...,l n2 ], represents the output basis vector of the first neural network; Represents the output basis of the first neural network model
[0078] Transposition of quantity; represents the first-order derivative of the weight matrix of a neural network model; s represents the difference between the corrected velocity and the actual terminal velocity of the robot; Γ1 represents a positive definite diagonal matrix.
[0079] Specifically, a first neural network model is designed, which is used to overcome the complex robot kinematic planning problem and output the robot's joint angular velocity instructions at the current moment in real time according to the desired position of the robot's end.
[0080] Due to the highly nonlinear problem of the robot's motion parameters, it is difficult to directly calculate the joint angular velocity instructions of the joints based on the end motion instructions of the desired position of the robot's end; therefore, the difference between the corrected velocity of the robot's end and the actual velocity of the end is defined and used as the input of the neural network model; the first neural network model is adopted, and the first neural network model is a Mamdani type neural network model, and its output is the joint angular velocity instructions of the robot. At this time, the first neural network model can be described as The structure of the first neural network model includes an input layer, a fuzzy membership calculation layer, a normalization operation layer and an output layer in sequence; the number of neurons in the output layer is the dimension of the difference between the corrected speed and the actual terminal speed of the robot; the number of neurons in the fuzzy membership calculation layer is n1; the number of neurons in the normalization operation layer is n2.
[0081] The output of the jth neuron in the third layer, i.e. the normalization operation layer, in the first neural network model is as follows:
[0082]
[0083] Among them, l j represents the output of the jth neuron in the normalized operation layer; n1 represents the number of neurons in the fuzzy membership calculation layer; n2 represents the number of neurons in the normalized operation layer; represents the center of the fuzzy odd function; represents the width of the fuzzy odd function; are all fixed values; and i=1,…,n1; j=1,…,n2; x i express.
[0084] The fourth layer, the output layer, is expressed as:
[0085]
[0086] When formula (5) is described in matrix form, it is:
[0087] Y=W FNN1 L FNN1 (6)
[0088]
[0089] The online update rate of the first neural network model is:
[0090]
[0091] Among them, y i Represents the output result of the i-th neuron in the output layer; l j represents the output of the jth neuron in the normalized operation layer; n2 represents the number of neurons in the normalized operation layer; represents weights; i = 1,…,n1; j = 1,…,n2; Y = [y1; y2; ...; y i ] is the output vector of the first neural network model; W FNN1 Represents the weight matrix of the first neural network model; L FNN1 =[l1,...,l n2 ], represents the output basis vector of the first neural network; represents the transpose of the output basis vector of the first neural network model; represents the first-order derivative of the weight matrix of a neural network model; s represents the difference between the corrected velocity and the actual terminal velocity of the robot; Γ1 represents a positive definite diagonal matrix.
[0092] S13: online calculating a reference joint angular velocity instruction of the robot based on the correction velocity and the joint angular velocity of the robot;
[0093] In the specific implementation process of the present invention, the reference joint angular velocity instruction of the robot is calculated online based on the corrected speed and the joint angular velocity of the robot, including: setting a first identical neural network model that is identical to the first neural network model, inputting the joint angular velocity instruction and the corrected speed into the first identical neural network model for online calculation and outputting the reference joint angular velocity instruction of the robot.
[0094] Specifically, a neural network model identical to the first neural network model, i.e., a first identical neural network model, is used to online calculate the reference joint angular velocity instructions of the robot; the difference between the first identical neural network model and the above-mentioned first neural network model lies in the different inputs, the first identical neural network model inputs the joint angular velocity instructions and the correction speed, and online calculations are performed in the first identical neural network model, and the reference joint angular velocity instructions of the robot are output.
[0095] S14: Obtaining a tracking error instruction based on the joint angular velocity instruction and the reference joint angular velocity instruction;
[0096] In the specific implementation process of the present invention, after obtaining the joint angular velocity instruction and the reference joint angular velocity instruction, the tracking error instruction is obtained by subtracting the joint angular velocity instruction from the reference joint angular velocity instruction.
[0097] S15: Design a second neural network model, and output the joint control torque of the robot in real time in the second neural network model based on the tracking error instruction.
[0098] In a specific implementation of the present invention, the joint control torque of the robot is output in real time in the second neural network model based on the tracking error instruction as follows:
[0099]
[0100] Where ε represents the tracking error command; τ represents the joint control torque of the robot; L FNN2 represents the output basis vector of the second neural network model; represents the weight matrix of the second neural network model; K, K r All represent positive control parameters; sgn(ε) represents the sign function of ε; represents the transpose of the output basis vector of the second neural network model; represents the first-order derivative of the weight matrix of the two neural network models; Γ represents a positive definite diagonal matrix.
[0101] Specifically, a second neural network model is designed. The second neural network model is used for the inner loop dynamics control of the robot. Its structure is the same as the first neural network model, but its input is the tracking error command and its output is the joint control torque of the robot, as follows:
[0102]
[0103] Where ε represents the tracking error command; τ represents the joint control torque of the robot; L FNN2 represents the output basis vector of the second neural network model; represents the weight matrix of the second neural network model; K, K r All represent positive control parameters; sgn(ε) represents the sign function of ε; represents the transpose of the output basis vector of the second neural network model; represents the first-order derivative of the weight matrix of the two neural network models; Γ represents a positive definite diagonal matrix.
[0104] In the embodiment of the present invention, the problems of spatial inconsistency, strong coupling of system nonlinearity, and dependence of traditional methods on precise models in robot dynamic motion control are solved; it is a control method that does not require a model, does not require a precise robot model, and has the advantages of high efficiency and good adaptability; two neural networks are used to solve the robot's trajectory tracking control problem. This method does not require a precise robot kinematic and dynamic model and has good adaptability; two completely identical neural networks FNN1 are used, and through online training (input: joint angle, real-time terminal angular velocity of the robot, training output joint angular velocity, and driving error is the difference between the output angle and the actual joint angular velocity), the neural network is used to calculate the robot's corrected angular velocity instruction online (input: joint angle, corrected velocity of the robot terminal, output robot's corrected joint angular velocity), this method can effectively reduce the amount of calculation; the dynamic control algorithm based on FNN2 not only does not rely on the robot's dynamic model, but also has a certain robustness to the uncertain disturbances received by the robot.
[0105] Example
[0106] See also Figure 2 , Figure 2 It is a schematic diagram of the structural composition of a robot dynamic motion control device based on dual neural networks in an embodiment of the present invention.
[0107] like Figure 2 As shown, a robot dynamic motion control device based on dual neural networks, the device comprises:
[0108] The speed correction module 21 is used to establish a robot mathematical model, and to correct the speed of the robot end effector based on the robot mathematical model and the expected position to obtain a corrected speed;
[0109] In the specific implementation process of the present invention, the robot mathematical model is as follows:
[0110] x=f(θ) (1);
[0111]
[0112] Among them, θ represents the joint angle of the robot; represents the joint angular velocity of the robot; x represents the end position of the robot; represents the terminal velocity of the robot; f(θ) represents the mapping from the robot joint space to the terminal task space; J(θ) represents the Jacobian matrix related to the joint angle of the robot.
[0113] Furthermore, the calculation formula for correcting the speed of the robot end effector based on the robot mathematical model and the expected position is as follows:
[0114]
[0115] in, Indicates the correction speed performed by the robot end; represents the desired speed of the robot end; x d represents the desired position of the robot end; x represents the end position of the robot; k>0, represents the control constant.
[0116] Specifically, when establishing a mathematical model of the robot, it is necessary to obtain the robot's joint angles, joint angular velocities, end positions, and end velocities; then the robot mathematical model is established based on the robot's joint angles, joint angular velocities, end positions, and end velocities. The robot mathematical model is as follows:
[0117] x=f(θ) (1);
[0118]
[0119] Among them, θ represents the joint angle of the robot; represents the joint angular velocity of the robot; x represents the end position of the robot; represents the terminal velocity of the robot; f(θ) represents the mapping from the robot joint space to the terminal task space; J(θ) represents the Jacobian matrix related to the joint angle of the robot.
[0120] After the robot mathematical model is established, it is necessary to calculate the speed correction of the robot end effector according to the robot mathematical model and the expected position to obtain the corrected speed. The specific calculation process is as follows:
[0121]
[0122] in, Indicates the correction speed performed by the robot end; represents the desired speed of the robot end; x d represents the desired position of the robot end; x represents the end position of the robot; k>0, represents the control constant.
[0123] The first output module 22 is used to design a first neural network model, and output the joint angular velocity instruction of the current robot in real time in the first neural network model based on the joint angular velocity of the robot and the terminal velocity of the robot;
[0124] In the specific implementation process of the present invention, the first neural network model includes an input layer, a fuzzy membership calculation layer, a normalization operation layer and an output layer in sequence; the number of neurons in the output layer is the dimension of the difference between the corrected speed and the actual terminal speed of the robot; the number of neurons in the fuzzy membership calculation layer is n1; the number of neurons in the normalization operation layer is n2.
[0125] Furthermore, the output of the jth neuron in the normalized operation layer is as follows:
[0126]
[0127] Among them, l j represents the output of the jth neuron in the normalized operation layer; n1 represents the number of neurons in the fuzzy membership calculation layer; n2 represents the number of neurons in the normalized operation layer; represents the center of the fuzzy odd function; represents the width of the fuzzy odd function; are all fixed values; and i=1,…,n1; j=1,…,n2; x i represents the input of the ith neuron.
[0128] Furthermore, the output layer is expressed as:
[0129]
[0130] When formula (5) is described in matrix form, it is:
[0131] Y=W FNN1 L FNN1 (6)
[0132] The online update rate of the first neural network model is:
[0133]
[0134] Among them, y i Represents the output result of the i-th neuron in the output layer; l j represents the output of the jth neuron in the normalized operation layer; n2 represents the number of neurons in the normalized operation layer; represents weights; i = 1,…,n1; j = 1,…,n2; Y = [y1; y2; ...; y i ] is the output vector of the first neural network model; W FNN1 Represents the weight matrix of the first neural network model; L FNN1 =[l1,...,l n2 ], represents the output basis vector of the first neural network; represents the transpose of the output basis vector of the first neural network model; represents the first-order derivative of the weight matrix of a neural network model; s represents the difference between the corrected velocity and the actual terminal velocity of the robot; Γ1 represents a positive definite diagonal matrix.
[0135] Specifically, a first neural network model is designed, which is used to overcome the complex robot kinematic planning problem and output the robot's joint angular velocity instructions at the current moment in real time according to the desired position of the robot's end.
[0136] Due to the highly nonlinear problem of the robot's motion parameters, it is difficult to directly calculate the joint angular velocity instructions of the joints based on the end motion instructions of the desired position of the robot's end; therefore, the difference between the corrected velocity of the robot's end and the actual velocity of the end is defined and used as the input of the neural network model; the first neural network model is adopted, and the first neural network model is a Mamdani type neural network model, and its output is the joint angular velocity instructions of the robot. At this time, the first neural network model can be described as The structure of the first neural network model includes an input layer, a fuzzy membership calculation layer, a normalization operation layer and an output layer in sequence; the number of neurons in the output layer is the dimension of the difference between the corrected speed and the actual terminal speed of the robot; the number of neurons in the fuzzy membership calculation layer is n1; the number of neurons in the normalization operation layer is n2.
[0137] The output of the jth neuron in the third layer, i.e. the normalization operation layer, in the first neural network model is as follows:
[0138]
[0139] Among them, l jrepresents the output of the jth neuron in the normalized operation layer; n1 represents the number of neurons in the fuzzy membership calculation layer; n2 represents the number of neurons in the normalized operation layer; represents the center of the fuzzy odd function; represents the width of the fuzzy odd function; are all fixed values; and i=1,…,n1; j=1,…,n2; x i express.
[0140] The fourth layer, the output layer, is expressed as:
[0141]
[0142] When formula (5) is described in matrix form, it is:
[0143] Y=W FNN1 L FNN1 (6)
[0144]
[0145] The online update rate of the first neural network model is:
[0146]
[0147] Among them, y i Represents the output result of the i-th neuron in the output layer; l j represents the output of the jth neuron in the normalized operation layer; n2 represents the number of neurons in the normalized operation layer; represents weights; i = 1,…,n1; j = 1,…,n2; Y = [y1; y2; ...; y i ] is the output vector of the first neural network model; W FNN1 Represents the weight matrix of the first neural network model; L FNN1 =[l1,...,l n2 ], represents the output basis vector of the first neural network; represents the transpose of the output basis vector of the first neural network model; represents the first-order derivative of the weight matrix of a neural network model; s represents the difference between the corrected velocity and the actual terminal velocity of the robot; Γ1 represents a positive definite diagonal matrix.
[0148] Online calculation module 23: used for online calculation of the reference joint angular velocity instruction of the robot based on the correction velocity and the joint angular velocity of the robot;
[0149] In the specific implementation process of the present invention, the reference joint angular velocity instruction of the robot is calculated online based on the corrected speed and the joint angular velocity of the robot, including: setting a first identical neural network model that is identical to the first neural network model, inputting the joint angular velocity instruction and the corrected speed into the first identical neural network model for online calculation and outputting the reference joint angular velocity instruction of the robot.
[0150] Specifically, a neural network model identical to the first neural network model, i.e., a first identical neural network model, is used to online calculate the reference joint angular velocity instructions of the robot; the difference between the first identical neural network model and the above-mentioned first neural network model lies in the different inputs, the first identical neural network model inputs the joint angular velocity instructions and the correction speed, and online calculations are performed in the first identical neural network model, and the reference joint angular velocity instructions of the robot are output.
[0151] A tracking error obtaining module 24 is used to obtain a tracking error instruction based on the joint angular velocity instruction and the reference joint angular velocity instruction;
[0152] In the specific implementation process of the present invention, after obtaining the joint angular velocity instruction and the reference joint angular velocity instruction, the tracking error instruction is obtained by subtracting the joint angular velocity instruction from the reference joint angular velocity instruction.
[0153] The second output module 25 is used to design a second neural network model, and output the joint control torque of the robot in real time in the second neural network model based on the tracking error instruction.
[0154] In a specific implementation of the present invention, the joint control torque of the robot is output in real time in the second neural network model based on the tracking error instruction as follows:
[0155]
[0156] Where ε represents the tracking error command; τ represents the joint control torque of the robot; L FNN2 represents the output basis vector of the second neural network model; represents the weight matrix of the second neural network model; K, K r All represent positive control parameters; sgn(ε) represents the sign function of ε; represents the transpose of the output basis vector of the second neural network model; represents the first-order derivative of the weight matrix of the two neural network models; Γ represents a positive definite diagonal matrix.
[0157] Specifically, a second neural network model is designed. The second neural network model is used for the inner loop dynamics control of the robot. Its structure is the same as the first neural network model, but its input is the tracking error command and its output is the joint control torque of the robot, as follows:
[0158]
[0159] Where ε represents the tracking error command; τ represents the joint control torque of the robot; L FNN2 represents the output basis vector of the second neural network model; represents the weight matrix of the second neural network model; K, K r All represent positive control parameters; sgn(ε) represents the sign function of ε; represents the transpose of the output basis vector of the second neural network model; represents the first-order derivative of the weight matrix of the two neural network models; Γ represents a positive definite diagonal matrix.
[0160] In the embodiment of the present invention, the problems of spatial inconsistency, strong coupling of system nonlinearity, and dependence of traditional methods on precise models in robot dynamic motion control are solved; it is a control method that does not require a model, does not require a precise robot model, and has the advantages of high efficiency and good adaptability; two neural networks are used to solve the robot's trajectory tracking control problem. This method does not require a precise robot kinematic and dynamic model and has good adaptability; two completely identical neural networks FNN1 are used, and through online training (input: joint angle, real-time terminal angular velocity of the robot, training output joint angular velocity, and driving error is the difference between the output angle and the actual joint angular velocity), the neural network is used to calculate the robot's corrected angular velocity instruction online (input: joint angle, corrected velocity of the robot terminal, output robot's corrected joint angular velocity), this method can effectively reduce the amount of calculation; the dynamic control algorithm based on FNN2 not only does not rely on the robot's dynamic model, but also has a certain robustness to the uncertain disturbances received by the robot.
[0161] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0162] In addition, the above provides a detailed introduction to the embodiments of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A robot dynamic motion control method based on dual neural networks, characterized in that: The method comprises: Establishing a mathematical model of the robot, and performing speed correction of the robot end effector based on the mathematical model of the robot and the expected position to obtain a corrected speed; Designing a first neural network model, and outputting a joint angular velocity instruction of the current robot in real time in the first neural network model based on the joint angular velocity of the robot and the velocity of the robot end effector; Calculating a reference joint angular velocity instruction of the robot online based on the correction velocity and the joint angular velocity of the robot; Obtaining a tracking error command based on the joint angular velocity command and the reference joint angular velocity command; Designing a second neural network model, and outputting the joint control torque of the robot in real time in the second neural network model based on the tracking error instruction; The first neural network model includes an input layer, a fuzzy membership calculation layer, a normalization operation layer and an output layer in sequence; The number of neurons in the output layer is the dimension of the difference between the corrected speed and the actual speed of the robot end; the number of neurons in the fuzzy membership calculation layer is n1; the number of neurons in the normalization operation layer is n2; The output of the jth neuron in the normalized operation layer is as follows: Among them, l j Represents the output of the jth neuron in the normalized operation layer; represents the center of the fuzzy odd function; represents the width of the fuzzy odd function; are all fixed values; and i=1,…,n1; j=1,…,n2; x i represents the input of the i-th neuron; The output layer is expressed as: When formula (2) is described in matrix form, it is: <h2 style=";text-align:left;direction:ltr">Y=W<h2 style=";text-align:left;direction:ltr"> FNN1 <h2 style=";text-align:left;direction:ltr"> L<h2 style=";text-align:left;direction:ltr"> FNN1 <h2 style=";text-align:left;direction:ltr"> (3); The online update rate of the first neural network model is: Among them, y i Represents the output result of the i-th neuron in the output layer; represents weight; Y = [y1; y2; ...; y i ] is the output vector of the first neural network model; W FNN1 Represents the weight matrix of the first neural network model; L FNN1 =[l1,...,l n2 ], represents the output basis vector of the first neural network model; represents the transpose of the output basis vector of the first neural network model; represents the first-order derivative of the weight matrix of the first neural network model; s represents the difference between the corrected velocity and the actual velocity of the robot end; Γ1 represents a positive definite diagonal matrix; And the structure of the second neural network model is the same as the first neural network model.
2. The robot dynamic motion control method according to claim 1, characterized in that: The robot mathematical model is as follows: x=f(θ) (5); Among them, θ represents the joint angle of the robot; represents the joint angular velocity of the robot; x represents the position of the robot end; represents the velocity of the robot's end effector; f(θ) represents the mapping from the robot's joint space to the end task space; j(θ) represents the Jacobian matrix associated with the robot's joint angles.
3. The robot dynamic motion control method according to claim 1, characterized in that: The calculation formula for the speed correction of the robot end effector based on the robot mathematical model and the expected position is as follows: in, Indicates the correction speed of the robot end effector; represents the desired velocity of the robot end effector; x d represents the desired position of the robot's end effector; x represents the position of the robot's end; k>0, represents the control constant.
4. The robot dynamic motion control method according to claim 1, characterized in that: The method further comprises: calculating a reference joint angular velocity instruction of the robot online based on the correction velocity and the joint angular velocity of the robot, comprising: A first identical neural network model identical to the first neural network model is set, and the joint angular velocity instruction and the correction speed are input into the first identical neural network model for online calculation, and a reference joint angular velocity instruction of the robot is output.
5. The robot dynamic motion control method according to claim 1, characterized in that: The step of outputting the current robot's joint angular velocity instruction in real time in the first neural network model based on the robot's joint angular velocity and the speed of the robot's end effector comprises: The joint angular velocity of the robot and the speed of the robot end effector are input into the first neural network model, and the joint angular velocity instructions of the current robot are output in the first neural network model based on the joint angular velocity of the robot and the speed of the robot end effector.
6. The robot dynamic motion control method according to claim 1, characterized in that: The real-time output of the joint control torque of the robot in the second neural network model based on the tracking error instruction is as follows: Where ε represents the tracking error command; τ represents the joint control torque of the robot; L FNN2 represents the output basis vector of the second neural network model; represents the weight matrix of the second neural network model; K, K r All represent positive control parameters; sgn(ε) represents the sign function of ε; represents the transpose of the output basis vector of the second neural network model; represents the first-order derivative of the weight matrix of the second neural network model; Γ represents a positive definite diagonal matrix.
7. A robot dynamic motion control device based on dual neural networks, characterized in that: The device comprises: Speed correction module: used to establish a robot mathematical model, perform speed correction on the robot end effector based on the robot mathematical model and the expected position, and obtain a corrected speed; A first output module: used to design a first neural network model, and output the joint angular velocity instruction of the current robot in real time in the first neural network model based on the joint angular velocity of the robot and the speed of the robot end effector; An online calculation module: used for online calculating a reference joint angular velocity instruction of the robot based on the correction velocity and the joint angular velocity of the robot; A tracking error obtaining module: used for obtaining a tracking error instruction based on the joint angular velocity instruction and the reference joint angular velocity instruction; A second output module: used for designing a second neural network model, and outputting the joint control torque of the robot in real time in the second neural network model based on the tracking error instruction; The first neural network model includes an input layer, a fuzzy membership calculation layer, a normalization operation layer and an output layer in sequence; The number of neurons in the output layer is the dimension of the difference between the corrected speed and the actual speed of the robot end; the number of neurons in the fuzzy membership calculation layer is n1; the number of neurons in the normalization operation layer is n2; The output of the jth neuron in the normalized operation layer is as follows: Among them, l j Represents the output of the jth neuron in the normalized operation layer; represents the center of the fuzzy odd function; represents the width of the fuzzy odd function; are all fixed values; and i=1,…,n1; j=1,…,n2; x i represents the input of the i-th neuron; The output layer is expressed as: When formula (2) is described in matrix form, it is: <h2 style=";text-align:left;direction:ltr">Y=W<h2 style=";text-align:left;direction:ltr"> FNN1 <h2 style=";text-align:left;direction:ltr"> L<h2 style=";text-align:left;direction:ltr"> FNN1 <h2 style=";text-align:left;direction:ltr"> (3); The online update rate of the first neural network model is: Among them, y i Represents the output result of the i-th neuron in the output layer; represents weight; Y = [y1; y2; ...; y i ] is the output vector of the first neural network model; W FNN1 Represents the weight matrix of the first neural network model; L FNN1 =[l1,...,l n2 ], represents the output basis vector of the first neural network model; represents the transpose of the output basis vector of the first neural network model; represents the first-order derivative of the weight matrix of the first neural network model; s represents the difference between the corrected velocity and the actual velocity of the robot end; Γ1 represents a positive definite diagonal matrix; And the structure of the second neural network model is the same as the first neural network model.
Citation Information
Patent Citations
Target tracking control method for flexible mechanical arm based on reachable set estimation
CN109227545A
Control method of uncertain mechanical arm in task space
CN111872937A
