Dynamic parameter identification method of UR robot considering joint friction and motor inertia
By considering the joint friction and motor inertia of the UR robot dynamic model, optimizing the excitation trajectory and using ROS for data collection, the problem of low accuracy of dynamic models and data quality in the existing technology is solved, and high-precision dynamic parameter identification and Model predictions.
Patent Information
- Application Number
- CN202210812019.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-11
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-07-11
AI Technical Summary
The existing UR robot dynamic parameter identification technology ignores the influence of joint friction and motor inertia, resulting in low accuracy of the dynamic model. In addition, the impact and vibration phenomenon in the experiment leads to a decrease in data quality and increases the identification error.
By establishing a dynamics model including joint friction and motor inertia, the excitation trajectory is optimized to obtain a continuous and smooth optimal trajectory, the joint operating data is recorded, the standard dynamics parameters are calculated, and pattern search or genetic algorithm is used to solve the optimal trajectory parameters, using ROS Realize motion control and data collection, reduce the impact of noise, and improve data quality.
It significantly improves the accuracy of the UR robot dynamic model, avoids impact vibration, improves the quality of experimental data, simplifies the dynamic parameter identification process, and improves the prediction accuracy of the model.
Smart Images

Figure CN115139302B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field related to UR robots, and more specifically, relates to a method for identifying dynamic parameters of a UR robot taking into account joint friction and motor inertia. Background Art
[0002] UR (Universal Robot) is a six-axis collaborative robot developed by UR, a Danish company. Robot dynamics studies the relationship between robot joint forces and joint motions. Establishing an accurate robot dynamics model is the basis for designing a high-precision robot controller, which can effectively improve the dynamic performance and control accuracy of the robot in performing tasks. Robot manufacturers usually do not provide robot dynamics model parameter information, and experiments need to be designed based on the actual working conditions of the robot to identify the system dynamics parameters.
[0003] For UR robots, their body mass and stiffness are relatively small, and the joint friction and joint motor rotor inertia have a great influence on the robot's dynamic characteristics. The current existing robot identification technology ignores the influence of the two, which will lead to large dynamic parameter identification errors and reduce the accuracy of the dynamic model. At the same time, most of the current existing robot identification technologies use ordinary Fourier excitation trajectory data for experiments. During the experimental movement, the robot has impact vibration phenomena, and the joint velocity and acceleration have sudden changes, which reduces the quality of the experimental data and increases the dynamic parameter identification error.
[0004] Therefore, a dynamic model parameter identification for the UR robot is needed to improve the quality of experimental data and the accuracy of the dynamic model. Summary of the invention
[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a UR robot dynamic parameter identification method considering joint friction and motor inertia to solve the problem of low parameter identification accuracy in the dynamic model.
[0006] To achieve the above object, according to the present invention, a method for identifying dynamic parameters of a UR robot considering joint friction and motor inertia is provided, the method comprising the following steps:
[0007] S1 For the UR robot to be identified, establish its connecting rod coordinate system and obtain the physical parameters corresponding to the UR robot;
[0008] S2 models the joint friction force and the joint motor rotor inertia of the UR robot, thereby constructing a dynamic model of the UR robot including the joint friction and the joint motor rotor inertia, and determining the standard dynamic parameters to be solved in the dynamic model;
[0009] S3 assigns the UR robot an initial excitation trajectory, optimizes the initial excitation trajectory to obtain a continuous and smooth optimal excitation trajectory, and the UR robot runs according to the optimal excitation trajectory, and records the UR robot joint operation data during the operation process;
[0010] S4 uses the joint operation data obtained in step S3 to calculate the standard dynamic parameters of the UR robot, thereby realizing the identification of the dynamic parameters.
[0011] Further preferably, in step S2, the kinetic model is performed according to the following expression:
[0012]
[0013] Where τ=[τ 1 ,…,τ 6 ] T , is the driving torque of each joint of the UR robot, M(q) is the symmetric positive definite inertia matrix, is the centrifugal force and Coriolis force matrix, G(q) is the robot link gravity component matrix, q, is the matrix of UR robot joint angle, angular velocity and angular acceleration, τ motor is the torque matrix generated by the UR robot motor rotor inertia on each joint, F f =[F f1 , …, F f6 ] T , is the friction matrix of the UR robot joint.
[0014] Further preferably, the UR robot joint friction matrix is expressed as follows:
[0015]
[0016] Among them, F f =[F f1 , …, F f6 ] T , is the friction matrix of the UR robot joint; F c =[F c1 , …, F c6 ] T , is the Coulomb friction coefficient matrix of the UR robot joint; F v =[F v1 , …, F v6 ] T , is the viscous friction coefficient matrix of the UR robot joint; F 0 =[F 01 , …, F 06 ] T, is the initial offset value matrix of the friction force of the UR robot joint; sgn(·) is the sign function; is the angular velocity matrix of the six-axis joints of the UR robot.
[0017] Further preferably, the moment matrix is performed according to the following relationship:
[0018]
[0019] Among them, τ motor is the torque matrix generated by the UR robot motor rotor inertia on each joint, J = [J 1 , …, J 6 ] T , is the rotor inertia coefficient matrix of the UR robot joint motor, is the six-axis joint angular acceleration matrix of the UR robot.
[0020] Further preferably, in step S2, the standard kinetic parameters are:
[0021] p=[p 1 , p 2 , p 3 , p 4 , p 5 , p 6 ] T
[0022] p i =[m i , m i r xi , m i r yi , m i r zi , I xxi , I xyi , I xzi , I yyi , I yzi , I zzi , f ci , f vi , f 0i , J i ]
[0023] Among them, m i is the mass of connecting rod i, (r xi , r yi , r zi ) are the coordinates of the center of mass of the connecting rod i in the x, y and z directions, m i r xi , m i r yi , m i r ziare the first-order mass moments of connecting rod i in the x, y and z directions, respectively, and f ci is the Coulomb friction coefficient of UR robot joint i, f vi is the viscous friction coefficient of UR robot joint i, f 0i is the initial offset coefficient of friction force of UR robot joint i, J i is the rotor inertia coefficient of the motor of UR robot joint i, m i is the mass of connecting rod i, I xxi is the moment of inertia of connecting rod i about the x-axis, I yyi is the moment of inertia of connecting rod i about the y-axis, I zzi is the moment of inertia of connecting rod i about the z-axis, I xyi is the moment of inertia of connecting rod i about the x-axis and y-axis, I xzi is the moment of inertia of connecting rod i about the x-axis and z-axis, I yzi is the product of inertia of connecting rod i about the y-axis and z-axis, i=1, 2, 3, 4, 5, 6.
[0024] Further preferably, in step S3, the initial excitation trajectory is performed according to the following expression:
[0025]
[0026] Among them, q i is the expression of UR robot joint i, N is the number of harmonics of Fourier excitation trajectory, k is the number of harmonics, ω f is the fundamental frequency, a i,k , b i,k are the corresponding sine and cosine component coefficients, m is the mth term of the quintic polynomial, c i,m is the coefficient of the quintic polynomial, t is the trajectory time, T=2π / ω f , Indicates floor operation, a i,k , b i,k , c i,k are the parameters to be optimized for the excitation trajectory.
[0027] Further preferably, the optimization of the initial excitation trajectory is performed in the following manner:
[0028]
[0029] in, is the rank-deficient observation matrix of the UR robot, is the matrix condition number; q imin ,q imax represents the joint angle limit value, W is the number of sampling points selected on the excitation trajectory, q i (t) is the actual joint angle of UR robot joint i at time t, Indicates the preset maximum angular velocity of the joint. Indicates the preset maximum angular acceleration of the joint, t 0 , t f are the starting and ending times of the excitation trajectory, w(q(t)) represents the spatial position of the UR robot, and W o Indicates the specified workspace of the UR robot.
[0030] Further preferably, in step S3, the operation data needs to be filtered to remove noise, and the joint operation parameters are the actual joint angles q and angular velocities of the UR robot. and current I.
[0031] Further preferably, in step S4, the calculation of the standard dynamic parameters of the UR robot using the operating data obtained in step S3 is performed in the following manner:
[0032] S41 decomposes the dynamic model in step S2 to obtain the expression of the dynamic model with respect to the minimum regression matrix and the minimum inertia parameter set, as follows:
[0033]
[0034] in, is the minimum regression matrix of the UR robot, and its value is related to the joint angle q and angular velocity of the UR robot. Angular acceleration Related, p min is the minimum inertial parameter set matrix of the UR robot and is the linear combination value of the standard dynamic parameter matrix p.
[0035] S42 uses the joint angle q, angular velocity in the joint operation data Solution The joint angular acceleration is calculated according to the following expression:
[0036]
[0037] in, is the angular acceleration matrix of each joint of the UR robot at the jth moment; is the angular velocity matrix of each joint of the UR robot at the j+1th moment; is the angular velocity matrix of each joint of the UR robot at the j-1th moment; Δt is the time interval between sampling points of the excitation trajectory;
[0038] S43 uses the joint current in the joint operation data to solve the following expression to obtain the robot joint torque τ:
[0039] τ=[τ 1 ,…,τ6 ] T
[0040] τ i =k i ·r g,i I
[0041] Among them, τ i is the moment of joint i, k i is the torque constant of the motor at joint i, r g,i is the gear reduction ratio of joint i, I is the measured current value of joint i;
[0042] S44 uses the joint torque τ and the joint torque τ obtained in steps S42 and S43 Calculate p according to the expression in step S41 min ,
[0043] p min =(Ψ(Q) T ·∑ -1 Ψ(Q) -1 ·Ψ(Q) T ·∑ -1 ·τ(Q)
[0044] in, is the observation matrix composed of Q groups of experimental data; ∑=diag[s 2 (Δτ 1 ), …, s 2 (Δτ Q )], is the diagonal matrix composed of the noise variance of the UR robot joint torque measurement, s 2 (·) represents variance; τ(Q)=[τ 1 ,…,τ M ] T , is the joint torque matrix of the UR robot based on ROS sampling;
[0045] S45 is based on the minimum inertia parameter set p min The relationship with the standard dynamic parameters is given by the minimum inertial parameter set p min The overall standard dynamic parameters p of the UR robot are obtained by reverse mapping.
[0046] Further preferably, after step S4, the accuracy of the UR robot dynamics model parameters needs to be verified, and the steps are as follows:
[0047] S5 selects the experimental data of the UR robot under a completely different excitation trajectory to verify and analyze the accuracy of the identified dynamic parameter p. The accuracy measurement standard is:
[0048]
[0049] Among them, Δτ RMS is the root mean square error of torque prediction, β is the relative error rate of torque prediction, D is the total number of sampling points of the verification trajectory, τ real It is the actual measured value of the UR robot joint torque;
[0050] S6 repeated the experiment for many times and selected the dynamic parameters with the smallest root mean square error of torque prediction and relative error rate of torque prediction as the dynamic model parameter identification result of the UR robot.
[0051] In general, the above technical solutions conceived by the present invention have the following beneficial effects compared with the prior art:
[0052] 1. The present invention considers the influence of UR robot joint friction and joint motor rotor inertia on the dynamic characteristics of UR robot, models them and introduces them into the UR robot dynamic equation, which significantly improves the accuracy of the UR robot's dynamic model;
[0053] 2. The present invention uses a quintic polynomial to improve the ordinary Fourier series excitation trajectory, and adopts a pattern search algorithm or a genetic algorithm to solve the optimal trajectory, so as to ensure that the UR robot has no impact at the start and end of the movement, reduce the influence of noise on the experimental results, and effectively improve the quality of the UR robot recognition experimental data;
[0054] 3. The identification method proposed in the present invention has good versatility and is applicable to all models of UR robots and six-axis robots with UR robot-like configurations. The motion control and experimental data acquisition of the UR robot are realized based on the robot operating system ROS, which greatly simplifies the complexity of the dynamic parameter identification process. The identified robot dynamics model has a high prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a flow chart of the parameter identification of the UR robot dynamics model of the present invention;
[0056] Figure 2 It is a diagram of the improved DH parameter table of the UR robot of the present invention;
[0057] Figure 3 It is a schematic diagram of the UR robot connecting rod coordinate system established based on the improved DH method of the present invention;
[0058] Figure 4 It is a table diagram of the minimum inertia parameter set of the UR robot of the present invention;
[0059] FIG5( a ) is a schematic diagram of the variation of the six-joint motion angles corresponding to the optimal excitation trajectory of the UR robot of the present invention;
[0060] FIG5( b ) is a schematic diagram of the angular velocity changes of the six joints corresponding to the optimal excitation trajectory of the UR robot of the present invention;
[0061] FIG5( c ) is a schematic diagram of the Cartesian space motion corresponding to the optimal excitation trajectory of the UR robot designed by the present invention;
[0062] Figure 6 It is a flow chart of the accuracy verification of the parameters of the UR robot dynamics model of the present invention. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0064] like Figure 1 As shown, a method for identifying the dynamic parameters of a UR robot considering joint friction and motor inertia includes the following steps:
[0065] S1 establishes the UR robot link coordinate system based on the improved DH method, obtains the improved DH parameters corresponding to the UR robot, and determines the position and speed transformation relationship of each link of the UR robot; Figure 2 As shown in , the torsion angle, rod length, joint offset and joint rotation angle are the improved DH parameters, which are also the physical parameters of the UR robot; Figure 3 As shown, it is the link coordinate system established in the UR robot. In this embodiment, it is a six-link system;
[0066] S2 establishes the UR robot dynamics equation based on the Lagrangian method, models the UR robot joint friction and joint motor rotor inertia, obtains the UR robot complete dynamics equation expression, determines the standard dynamics parameters to be identified, and decomposes the dynamics equation to obtain the minimum regression matrix expression and the minimum inertia parameter set expression;
[0067] S3 is designed to identify the optimal excitation trajectory for experimental data acquisition. It uses a quintic polynomial to improve the ordinary Fourier series excitation trajectory, selects the minimum observation matrix condition number as the optimization goal, and uses a pattern search algorithm or a genetic algorithm to solve the excitation trajectory parameters to ensure that the excitation trajectory is continuous and smooth, given that the joint angular velocity and angular acceleration are zero at the start and end of the UR robot movement and the UR robot movement is constrained within the workspace.
[0068] S4 realizes the communication between computer and UR robot based on Robot Operating System (ROS). UR robot works in speed control mode. The joint_group_vel_controller controller of ROS controls the angular velocity of each joint of UR robot. The designed excitation trajectory velocity data is sent to UR robot for execution. It subscribes to the / joint_states topic of ROS to save the actual angle, angular velocity and current data of each joint of UR robot. The joint angular acceleration data is estimated based on the central difference algorithm, and the joint torque data is calculated according to the joint current.
[0069] S5 uses zero-phase filter and Butterworth low-pass filter to filter the identification experiment data. The specific filtered data include: angular velocity, angular acceleration, current data, joint torque data, to avoid introducing signal delay and remove data noise;
[0070] S6 uses the weighted least square method to calculate the minimum inertia parameter set of the UR robot based on the filtered experimental data, and obtains all the standard dynamic parameters of the UR robot through reverse mapping;
[0071] S7 uses completely different excitation trajectory experimental data to verify the accuracy of the UR robot dynamics model parameters. The theoretical value of the UR robot joint driving torque is calculated according to the dynamics model, and compared with the actual value based on ROS collection. The torque root mean square error and relative error rate are used to evaluate the reliability of the dynamics model parameters.
[0072] As further preferred, step S2 includes the following sub-steps:
[0073] S21: The standard dynamic parameter of each link i of the UR robot is p i , the overall standard dynamic parameter is p, and the dynamic equation of the UR robot under ideal conditions is established based on the Lagrangian method:
[0074]
[0075] Where τ=[τ 1 ,…,τ 6 ] T , is the driving torque of the six joints of the UR robot; M(q) is the 6×6 symmetric positive definite inertia matrix; is a 6×6 centrifugal force and Coriolis force matrix; G(q) is the gravity component of the UR robot link, which is a 6×1 matrix; q, is the UR robot's six joint angle, angular velocity, and angular acceleration matrix, M(q), The value of G(q) and the dynamic parameters p of the UR robot six-link base And UR robot joint status Related, p base Written as:
[0076]
[0077] Among them, p base_i is the inertia parameter of the UR robot link i, which contains 10 parameters, m i is the mass of connecting rod i, (r xi , r yi , r zi ) is the center of mass coordinate of connecting rod i, m i r xi , m i r yi , m i r zi is the first-order mass moment of connecting rod i, I xxi , I xyi , I xzi , I yyi , I yzi , I zzi is the moment of inertia of connecting rod i, p base It is the inertia parameter of the UR robot six-link, including 60 parameters.
[0078] S22 uses the Coulomb viscous friction model to model the UR robot joint friction, which is expressed as:
[0079]
[0080] Among them, F f =[F f1 , …, F f6 ] T , is the friction matrix of the UR robot joint; F c =[F c1 , …, F c6 ] T , is the Coulomb friction coefficient matrix of the UR robot joint; F v =[F v1 , …, F v6 ] T , is the viscous friction coefficient matrix of the UR robot joint; F 0 =[F 01 , …, F 06 ] T , is the initial offset value matrix of the friction force of the UR robot joint; sgn(·) is the sign function; is the angular velocity matrix of the six-axis joints of the UR robot.
[0081] S23 uses a linear function to represent the effect of the UR robot joint motor rotor inertia on the joint torque:
[0082]
[0083] Among them, τ motor is the torque matrix generated by the rotor inertia of the UR robot motor on each joint; J = [J 1 , …, J 6 ] T , is the rotor inertia coefficient matrix of the UR robot joint motor, is the six-axis joint angular acceleration matrix of the UR robot.
[0084] S24 According to sub-steps S21, S22, and S23, the complete UR robot dynamics model expression considering joint friction and motor rotor inertia is:
[0085]
[0086] The meanings of the variables in the formula are the same as those of S21, S22, and S23. After considering the joint friction and the motor rotor inertia, the standard dynamic parameter p that needs to be identified for each link i of the UR robot is i include:
[0087] p i =[p base_i , f ci , f vi , f 0i , J i ]=[m i , m i r xi , m i r yi , m i r zi , I xxi , I xyi , I xzi , I yyi , I yzi , I zzi , f ci , f vi , f 0i , J i ]∈R 14
[0088] Among them, p i is a 14×1 vector; the dynamic parameter p of the UR robot to be identified is written as:
[0089] p=[p 1 , p 2 , p 3 , p 4 , p 5 , p 6 ] T
[0090] Where p is a 84×1 column vector.
[0091] S25 numerically decomposes the complete dynamic equation of the UR robot and uses the QR decomposition method to obtain the minimum inertial parameter set p of the UR robot dynamic model. min With the minimum regression matrix The numerical expression of is written as:
[0092]
[0093] Among them, p min is a 58×1 column vector. Figure 4 As shown, it is the minimum inertia parameter set p of the UR robot in this embodiment. min Schematic diagram of
[0094] As further preferred, step S3 includes the following sub-steps:
[0095] S31 uses a quintic polynomial to improve the ordinary Fourier series excitation trajectory. The excitation trajectory expression used by the UR robot is written as:
[0096]
[0097] Among them, q i is the expression of UR robot joint i, N is the number of harmonics of Fourier excitation trajectory, k is the number of harmonics, ω f is the fundamental frequency, a i,k , b i,k is the corresponding sine and cosine component coefficient, m is the mth term of the quintic polynomial, c i,m is the coefficient of the quintic polynomial, t is the trajectory time, T=2π / ω f , Indicates floor operation, a i,k , b i,k , c i,k are the parameters to be optimized for the excitation trajectory.
[0098] S32 uses the minimum observation matrix condition number as the optimization goal to solve the excitation trajectory, restricting the UR robot's joint angles, angular velocities, and angular accelerations within a limited range. The UR robot moves within the specified workspace. The constraint conditions are written as:
[0099]
[0100] in, is the rank-deficient observation matrix of the UR robot, is the matrix condition number; q imin ,q imax represents the joint angle limit value, W is the number of sampling points selected on the excitation trajectory, q i(t) is the actual joint angle of UR robot joint i at time t, Indicates the preset maximum angular velocity of the joint. Indicates the preset maximum angular acceleration of the joint, t 0 , t f are the starting and ending times of the excitation trajectory, w(q(t)) represents the spatial position of the UR robot, and W o It represents the specified working space of the UR robot, and Fig. 5(c) is the excitation trajectory obtained after optimization.
[0101] S33 Given the number of harmonics N and fundamental frequency ω of the excitation trajectory f The value of the excitation trajectory parameter a is solved by using a pattern search algorithm or a genetic algorithm. i,k , b i,k , c i,k , obtain the position and velocity data of the optimal excitation trajectory.
[0102] As further preferred, step S4 includes the following sub-steps:
[0103] S41 establishes communication between the workstation computer and the UR robot based on the robot operating system ROS, switches the UR robot controller to the joint_group_vel_controller controller, sets the UR robot to the speed control mode, and accepts and executes the speed control instructions issued by ROS;
[0104] S42 sends the designed optimal excitation trajectory joint velocity data to the UR robot through ROS periodically for execution. The computer program subscribes to the / joint_states topic of ROS and records the actual joint angle, angular velocity, and current data of the UR robot in real time, as shown in Figure 5(a) and Figure 5(b), which are recorded as the angle and angular velocity values of each joint.
[0105] S43 uses the central difference algorithm to calculate the UR robot joint angular acceleration data. The calculation formula is written as:
[0106]
[0107] in, is the angular acceleration matrix of each joint of the UR robot at the jth moment; is the angular velocity matrix of each joint of the UR robot at the j+1th moment; is the angular velocity matrix of each joint of the UR robot at the j-1th moment; Δt is the time interval between the sampling points of the excitation trajectory.
[0108] S44 calculates the UR robot joint torque based on the UR robot joint current data. The calculation formula is written as:
[0109] τi =k i ·r g,i I
[0110] Among them, τ i is the moment of joint i, k i is the torque constant of the motor at joint i, r g,i is the gear reduction ratio of joint i, and I is the measured current value of joint i.
[0111] As further preferred, step S6 includes the following sub-steps:
[0112] S61 calculates the minimum inertial parameter set p of the UR robot using the filtered experimental data according to the weighted least squares method min , the calculation formula is:
[0113] p min =(Ψ(Q) T ·∑ -1 Ψ(Q) -1 ·Ψ(Q) T ·∑ -1 ·τ(Q)
[0114] in, is the observation matrix composed of Q groups of experimental data; ∑=diag[s 2 (Δτ 1 ), …, s 2 (Δτ Q )], is the diagonal matrix composed of the noise variance of the UR robot joint torque measurement, s 2 (·) represents variance; τ(Q)=[τ 1 ,…,τ M ] T , is the joint torque matrix of the UR robot based on ROS sampling.
[0115] S62 is based on the relationship between the minimum inertia parameter set and the standard dynamic parameters. min The overall standard dynamic parameters p of the UR robot are obtained by reverse mapping.
[0116] As a further preferred embodiment, Figure 6 As shown, step S7 includes the following sub-steps:
[0117] S71 selects the experimental data of the UR robot under a completely different excitation trajectory to verify and analyze the accuracy of the identified dynamic parameter p. The accuracy measurement standard is:
[0118]
[0119] Among them, Δτ RMSis the root mean square error of the moment prediction, β is the relative error rate of the moment prediction, D is the total number of sampling points of the verification trajectory, τ real It is the actual measured value of the UR robot joint torque.
[0120] S72 Repeat the experiment for multiple times and select the dynamic parameters with the smallest root mean square error of torque prediction and relative error rate of torque prediction as the dynamic model parameter identification result of the UR robot.
[0121] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A UR robot dynamic parameter identification method considering joint friction and motor inertia, characterized in that: The method comprises the following steps: S1: For the UR robot to be identified, establish the UR robot link coordinate system and obtain its corresponding physical parameters; S2 models the joint friction force and the joint motor rotor inertia of the UR robot, thereby constructing a dynamic model of the UR robot including the joint friction and the joint motor rotor inertia, and determining the standard dynamic parameters to be solved in the dynamic model; S3 assigns the UR robot an initial excitation trajectory, optimizes the initial excitation trajectory to obtain a continuous and smooth optimal excitation trajectory, the UR robot runs according to the optimal excitation trajectory, and records the joint operation data of the UR robot during the operation; S4 calculates the standard dynamic parameters of the UR robot using the joint operation data obtained in step S3, thereby realizing the identification of the dynamic parameters of the UR robot; The calculation of the standard dynamic parameters of the UR robot using the operating data obtained in step S3 is performed in the following manner: S41 decomposes the dynamic model in step S2 to obtain the expression of the dynamic model with respect to the minimum regression matrix and the minimum inertia parameter set, as follows: in, is the minimum regression matrix of the UR robot, and its value is related to the joint angle q and angular velocity of the UR robot. Angular acceleration Related,p min is the minimum inertial parameter set matrix of the UR robot, is the linear combination value of the standard dynamic parameter matrix p; S42 uses the joint angle q, angular velocity in the joint operation data Solution Wherein, the joint angular acceleration is calculated according to the following expression: in, is the angular acceleration matrix of each joint of the UR robot at the jth moment; is the angular velocity matrix of each joint of the UR robot at the j+1th moment; is the angular velocity matrix of each joint of the UR robot at the j-1th moment; Δt is the time interval between sampling points of the excitation trajectory; S43 uses the joint current in the joint operation data to solve the following expression to obtain the robot joint torque τ: τ=[τ1,…,τ6] T t i =k i ·r g,i ·I Among them, τ i is the moment of joint i, k i is the torque constant of the motor at joint i, r g,i is the gear reduction ratio of joint i, I is the measured current value of joint i; S44 uses the joint torque τ and the joint torque τ obtained in steps S42 and S43 Calculate p according to the expression in step S41 min , p min =(Ψ(Q) T ·∑ -1 ·Ψ(Q)) -1 ·Ψ(Q) T ·∑ -1 ·τ(Q) in, is the observation matrix composed of Q groups of experimental data; ∑=diag[s 2 (Δτ1),…,s 2 (Δτ Q )], is the diagonal matrix composed of the noise variance of the UR robot joint torque measurement, s 2 (·) represents variance; τ(Q)=[τ1,…,τ M ] T , is the joint torque matrix of the UR robot based on ROS sampling; S45 is based on the minimum inertia parameter set p min The relationship with the standard dynamic parameters is given by the minimum inertial parameter set p min The overall standard dynamic parameters p of the UR robot are obtained by reverse mapping.
2. A UR robot dynamic parameter identification method considering joint friction and motor inertia as claimed in claim 1, characterized in that: In step S2, the kinetic model is performed according to the following expression: Among them, τ=[τ1,…,τ6] T , is the driving torque of each joint of the UR robot, M(q) is the symmetric positive definite inertia matrix, is the centrifugal force and Coriolis force matrix, G(q) is the robot link gravity component matrix, q, is the matrix of UR robot joint angle, angular velocity and angular acceleration, τ motor is the torque matrix generated by the UR robot motor rotor inertia on each joint, F f =[F f1 , …, F f6 ] T , is the friction matrix of the UR robot joint, is the angular velocity matrix of the six-axis joints of the UR robot.
3. A UR robot dynamic parameter identification method considering joint friction and motor inertia as claimed in claim 2, characterized in that: The UR robot joint friction matrix is expressed as follows: Among them, F f =[F f1 , …, F f6 ] T , is the friction matrix of the UR robot joint; F c =[F c1 , …, F c6 ] T , is the Coulomb friction coefficient matrix of the UR robot joint; F v =[F v1 , …, F v6 ] T , is the viscous friction coefficient matrix of the UR robot joint; F0 = [F 01 , …, F 06 ] T , is the initial offset value matrix of the friction force of the UR robot joint; sgn(·) is the sign function; is the angular velocity matrix of the six-axis joints of the UR robot.
4. A UR robot dynamic parameter identification method considering joint friction and motor inertia as claimed in claim 2, characterized in that: The moment matrix is carried out according to the following relationship: Among them, τ motor is the torque matrix generated by the UR robot motor rotor inertia on each joint, J = [J1, ..., J6] T , is the rotor inertia coefficient matrix of the UR robot joint motor, is the six-axis joint angular acceleration matrix of the UR robot.
5. A UR robot dynamic parameter identification method considering joint friction and motor inertia as described in claim 1 or 2, characterized in that: In step S2, the standard kinetic parameters are: p=[p1, p2, p3, p4, p5, p6] T p i =[m i ,m i rx i ,m i r yi ,m i r zi ,I xxi ,I xyi ,I xzi ,I yyi ,I yzi ,I zzi ,f ci ,f vi ,f 0i ,J i ] Among them, m i is the mass of connecting rod i, (r xi , r yi , r zi ) are the coordinates of the center of mass of the connecting rod i in the x, y and z directions, m i r xi , m i r yi , m i r zi are the first-order mass moments of connecting rod i in the x, y and z directions, respectively, and f ci is the Coulomb friction coefficient of UR robot joint i, f vi is the viscous friction coefficient of UR robot joint i, f 0i is the initial offset coefficient of friction force of UR robot joint i, J i is the motor rotor inertia coefficient of UR robot joint i, m i is the mass of connecting rod i, I xxi is the moment of inertia of connecting rod i about the x-axis, I yyi is the moment of inertia of connecting rod i about the y-axis, I zzi is the moment of inertia of connecting rod i about the z-axis, I xyi is the moment of inertia of connecting rod i about the x-axis and y-axis, I xzi is the moment of inertia of connecting rod i about the x-axis and z-axis, I yzi is the product of inertia of connecting rod i about the y-axis and z-axis, i=1, 2, 3, 4, 5, 6.
6. A UR robot dynamic parameter identification method considering joint friction and motor inertia as described in claim 1 or 2, characterized in that: In step S3, the initial excitation trajectory is performed according to the following expression: Among them, q i is the expression of UR robot joint i, N is the number of harmonics of Fourier excitation trajectory, k is the number of harmonics, ω f is the fundamental frequency, a i,k , b i,k are the corresponding sine and cosine component coefficients, m is the mth term of the quintic polynomial, c i,m is the coefficient of the quintic polynomial, t is the trajectory time, T=2π / ω f , Indicates floor operation.
7. A UR robot dynamic parameter identification method considering joint friction and motor inertia as claimed in claim 6, characterized in that: The optimization of the initial excitation trajectory is performed as follows: in, is the rank-deficient observation matrix of the UR robot, is the matrix condition number; q imin ,q imax represents the joint angle limit value, W is the number of sampling points selected on the excitation trajectory, q i (t) is the actual joint angle of UR robot joint i at time t, Indicates the preset maximum angular velocity of the joint. Indicates the preset maximum angular acceleration of the joint, t0, t f are the starting and ending times of the excitation trajectory, w(q(t)) represents the spatial position of the UR robot, and W o Indicates the specified workspace of the UR robot.
8. A UR robot dynamic parameter identification method considering joint friction and motor inertia as described in claim 1 or 2, characterized in that: In step S3, the operation data needs to be filtered to remove noise. The joint operation data is the actual joint angle q, angular velocity and current i.
9. A UR robot dynamic parameter identification method considering joint friction and motor inertia as claimed in claim 1, characterized in that: After step S4, the accuracy of the UR robot dynamics model parameters needs to be verified, and the steps are as follows: S5 selects the experimental data of the UR robot under a completely different excitation trajectory to verify and analyze the accuracy of the identified dynamic parameter p. The accuracy measurement standard is: Among them, Δτ RMS is the root mean square error of torque prediction, β is the relative error rate of torque prediction, D is the total number of sampling points of the verification trajectory, τ real It is the actual measured value of the UR robot joint torque; S6 repeated the experiment for many times and selected the dynamic parameters with the smallest root mean square error of torque prediction and relative error rate of torque prediction as the dynamic model parameter identification result of the UR robot.
