A method for adaptive identification of nonlinear dynamic parameters of reducer
By modeling the harmonic reducer as a series body of a rigid reducer and an elastic torsion spring, combined with the Fourier series motion trajectory and the least squares method, the dynamic parameter identification and online update of the joint flexibility and friction of the collaborative robot are realized. It solves the problem in the existing technology that the joint flexibility characteristics are ignored, resulting in reduced modeling accuracy, and improves the accuracy and adaptability of robot control.
Patent Information
- Application Number
- CN202410885767.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-03
AI Technical Summary
The existing technology ignores the flexibility characteristics of collaborative robot joints when modeling robot dynamics, resulting in reduced modeling accuracy and difficulty in achieving accurate dynamic parameter identification.
Using the adaptive identification method of nonlinear dynamic parameters, by modeling the harmonic reducer as a series body of rigid reducer and elastic torsion spring, combined with Fourier series motion trajectory, dual encoder data collection and least squares method, Perform dynamic parameter identification and online update of joint flexibility and friction.
It improves the accuracy of dynamic modeling and optimizes the control effect of collaborative robots, making it more adaptable under complex working conditions such as variable loads and human-computer interaction.
Smart Images

Figure CN118404591B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of reducer design, and in particular relates to a method for adaptively identifying nonlinear dynamic parameters of a reducer. Background Art
[0002] Collaborative robots are a new type of intelligent robot system. Compared with conventional industrial robots, collaborative robots are more flexible, intelligent and safer. With the continuous development of the manufacturing and service industries, collaborative robots that can interact safely with humans and have adaptability to complex working conditions are becoming more and more widely used. How to further improve the motion control accuracy, intelligence, operation stability and life of collaborative robots, and improve industrial production efficiency / service quality has become an urgent problem to be solved.
[0003] The world's first collaborative robot UR5 was delivered in 2008. To date, most collaborative robots around the world still use the UR5 configuration and use multiple integrated joints and connecting rods to form a reconfigurable robot system. Robot integrated joints are usually composed of servo motors, harmonic reducers, various sensors, brakes, etc. Due to the characteristics of the harmonic drive of the reducer, the robot joints are flexible, so collaborative robots are also flexible joint robots. Joint flexibility brings difficulties to the end position control of the robot, but also brings new opportunities for joint torque sensing and dynamic control. Today, many first-class robot companies in the world are developing high-performance collaborative robots with joint torque sensors. In addition to directly built-in independent torque sensors, AUO Robotics has proposed a method to directly integrate torque, vibration, and temperature sensors into the harmonic reducer to form an intelligent harmonic reducer with multi-sensing functions and gradually realize industrialization.
[0004] At present, the widely used dynamic parameter identification methods in the field of collaborative robots are disassembly measurement method, CAD method and overall identification method. The disassembly measurement method calculates the inertia parameters by decomposing the robot connecting rod, measuring the geometric parameters, and determining the material properties, thereby obtaining the robot's dynamic parameters and model. This method is difficult to implement for components with complex shapes, and it cannot consider the joint friction and flexibility of the robot in actual operation. The CAD method is to directly calculate the dynamic parameters of the robot's three-dimensional model through CAD software. The disadvantage is that the CAD model is the inertia parameter value under ideal conditions, and the actual value will contain processing and assembly errors. It also cannot consider the influence of joint friction and elasticity on the dynamics of the robot in actual operation. The overall identification method is to conduct experiments on actual robots. It is one of the most commonly used and practical methods for dynamic parameter identification. Usually, a robot is given an optimized motion trajectory, the torque and angle of each joint are measured, and then the measurement data is brought into the identification model, and the value of the dynamic parameters is calculated through the identification algorithm. The existing overall identification scheme measures the motor current and angle of rotation. The angle of rotation is measured by the encoder, and the joint speed and acceleration are calculated by the differential method. The torque value is obtained by multiplying the current value of the motor current sensor by the current-torque constant. However, the joint angle acceleration calculated from the joint angle by the secondary difference amplifies the system noise, which reduces the accuracy. The introduction of the filter will cause input delay and reduce the system response speed. The method of estimating the joint torque by the motor current will also cause noise in the torque estimation value due to the influence of reducer friction and other factors. Parameter identification in the case of errors in joint acceleration and torque will reduce the identification accuracy, and the parameters are easily affected by load changes.
[0005] The existing robot dynamic parameter identification is usually based on the rigid joint dynamic model, and its expression is: ,in is the inertia matrix, is the coupling matrix of Coriolis force and centrifugal force, is the gravity matrix, is the joint torque External contact torque. The model does not involve joint stiffness coefficient and friction coefficient. However, since the collaborative robot uses a harmonic reducer for transmission, some high-performance robots also have built-in joint torque sensors with elastic elements, which makes the joints have obvious flexibility. If the joint flexibility characteristics are ignored in the robot dynamics modeling, the modeling accuracy will be reduced.
[0006] Therefore, for the intelligent harmonic reducer in the collaborative robot, how to consider the joint flexibility and friction for modeling and perform offline identification and online update of the dynamic parameters is a technical problem that needs to be solved urgently. Summary of the invention
[0007] The purpose of the present invention is to solve the problem that the prior art ignores the joint flexibility characteristics when modeling robot dynamics, making it difficult to achieve accurate robot dynamics modeling and parameter identification, and to provide a method for adaptively identifying the nonlinear dynamic parameters of a reducer.
[0008] The specific technical solutions adopted by the present invention are as follows:
[0009] A method for adaptively identifying nonlinear dynamic parameters of a reducer is provided, which is used to identify parameters of each flexible joint in a collaborative robot, and comprises:
[0010] S1. Model each flexible joint in the collaborative robot, model the harmonic reducer corresponding to the flexible joint as a series body of a rigid reducer and an elastic torsion spring, directly connect the drive motor corresponding to the flexible joint by the rigid reducer, and directly connect the connecting rod corresponding to the flexible joint by the elastic torsion spring; according to the flexible joint dynamics model obtained by modeling, the dynamics equation finally used for parameter identification is obtained by linear separation and parameter independence processing, and the dynamics equation is obtained by multiplying the linear regression matrix by the minimum parameter set of the identified parameters to obtain the joint torque actually output by the flexible joint;
[0011] S2. Designing a motion trajectory curve of each to-be-identified flexible joint in the collaborative robot in the form of Fourier series; the motion trajectory curve is composed of a time-domain expression of a connecting rod angle, a time-domain expression of a connecting rod angular velocity, and a time-domain expression of a connecting rod angular acceleration;
[0012] S3. Control each flexible joint in the collaborative robot to move according to the designed motion trajectory curve. During the movement, the encoder position signals at the motor end and the output end of the harmonic reducer are collected through the dual encoders, and the time domain signals of the motor angle and the connecting rod angle are obtained after filtering. At the same time, the joint torque actually output by the flexible joint is measured by the torque sensor built into the flexible joint; the motor angle is divided by the reducer reduction ratio to obtain the theoretical output angle of the rigid reducer, and the rigid reducer angular velocity and the rigid reducer angular acceleration are further obtained through differential operation and filtering; the connecting rod angle is converted from a time domain signal to a frequency domain signal through discrete Fourier transform, and then the frequency domain signal is filtered to obtain the main frequency and then the discrete Fourier inverse transform is performed to obtain the time domain expression of the connecting rod angle, which is substituted into the time domain expression of the connecting rod angular velocity and the time domain expression of the connecting rod angular acceleration in the motion trajectory curve, and the connecting rod angular velocity and the connecting rod angular acceleration are obtained by analytical method;
[0013] S4. Take the theoretical output angle of the rigid reducer, the angular velocity of the rigid reducer, the angular acceleration of the rigid reducer, the connecting rod angle, the connecting rod angular velocity and the connecting rod angular acceleration as six state variables, and obtain the regression matrix through the Newton-Euler recursive dynamic equation. Then, obtain linearly independent columns from the regression matrix through matrix decomposition and form a linear regression matrix. Substitute the linear regression matrix and the joint torque actually output by the flexible joint into the dynamic equation, and solve it through the least squares method to obtain the minimum parameter set corresponding to the identified parameters to complete the offline identification.
[0014] Preferably, in S1, the flexible joint dynamics model consists of a dynamics relationship from the drive motor to the elastic torsion spring, a dynamics relationship from the elastic torsion spring to the connecting rod, and a friction force calculation model.
[0015] Preferably, in the dynamic equation, the identified parameters include a parameter group corresponding to each flexible joint in the collaborative robot, and the parameter group corresponding to each flexible joint includes 14 parameters, namely, three mass moments of inertia of the connecting rod around the x, y, and z axes, three products of inertia of the connecting rod in the xy, xz, and yz planes, three mass moments of the connecting rod in the x, y, and z directions, the mass of the connecting rod, the viscous friction coefficient, the Coulomb friction coefficient, the equivalent stiffness and the equivalent damping.
[0016] Furthermore, among the identified parameters, the equivalent stiffness is determined by a table lookup method, and the remaining 12 parameters except the equivalent stiffness and equivalent damping are solved by the least squares method, while the equivalent damping is calculated by substituting the parameters solved by the least squares method and the known parameters in the data acquisition process into the flexible joint dynamics model.
[0017] Furthermore, among the identified parameters, the remaining 13 parameters except the equivalent damping are solved by the least square method, and the equivalent damping is calculated by substituting the parameters solved by the least square method and the known parameters in the data acquisition process into the flexible joint dynamics model.
[0018] Preferably, in the motion trajectory curve, the time domain expression of the connecting rod angle, the time domain expression of the connecting rod angular velocity and the time domain expression of the connecting rod angular acceleration corresponding to any i-th flexible joint are respectively:
[0019] q i ( t ) = ∑ l = 1 N i [ a l i oh f l sin( oh f lt ) − b l i oh f l cos( oh f lt ) + q i 0 ] q ˙ i ( t ) = ∑ l = 1 N i [ a l i cos( oh f lt ) − b l i sin( oh f lt )] q ¨ i ( t ) = ∑ l = 1 N i [ − a l i oh f l sin( oh f lt ) + b l i oh f l cos( oh f lt )]
[0020] Where: is the order of the Fourier series, , , Respectively represent the connecting rod rotation angle corresponding to the i-th flexible joint at time t , connecting rod angular velocity and the connecting rod angular acceleration ;q i0 represents the joint rotation constant, and represents the constant coefficient of the motion trajectory, is the fundamental frequency of the motion trajectory, Indicates The frequency of the order.
[0021] Furthermore, in the motion trajectory curve, the order of the Fourier series Take 5.
[0022] Preferably, the matrix decomposition adopts singular value decomposition or orthogonal triangular decomposition.
[0023] Preferably, the collaborative robot is a six-axis collaborative robot comprising a total of six flexible joints.
[0024] Preferably, the minimum parameter set obtained by offline identification in S4 is substituted into the dynamic equation as the initial value, and the robot controller controls the robot based on the dynamic equation during actual operation, and continues to collect the motor angle, connecting rod angle and joint torque actually output by the flexible joint online step by time through the dual encoders and the torque sensor built into the flexible joint during the actual operation, and then calculates the 6 state variables and the linear regression matrix in each time step according to the same method as the offline identification, and updates the minimum parameter set of the dynamic equation in the next time step in the robot controller online by running the recursive least squares algorithm with a forgetting factor.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] The present invention establishes a rigid-flexible coupling dynamics theoretical model that takes into account the flexibility and friction of the joints of the collaborative robot, and realizes accurate acquisition of dynamics data based on the joint torque sensor and dual encoder of the robot's intelligent harmonic reducer. Combining Fourier series optimization trajectory, least squares method, and recursive least squares method, a method for adaptive identification of the nonlinear dynamic parameters of the reducer is proposed. The present invention can be used for offline identification and online update of the dynamic parameters of the collaborative robot that take into account the flexibility and friction of the joints, which can make the dynamic parameters more consistent with the actual situation of the robot, improve the accuracy of dynamic modeling, and further optimize the control effect of the collaborative robot, so that the robot has higher adaptability to complex working conditions such as variable loads and human-machine interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 The schematic diagram of robot transmission considering joint flexibility;
[0028] Figure 2 Schematic diagram of the mass-spring-damper system based on the abstraction of the robot's flexible joints;
[0029] Figure 3 This is a comparison diagram of the joint identification torque and the measured torque of joint 1 in the embodiment;
[0030] Figure 4 This is a comparison diagram of the joint identification torque and the measured torque of joint 2 in the embodiment;
[0031] Figure 5 This is a comparison diagram of the joint identification torque and the measured torque of joint 3 in the embodiment;
[0032] Figure 6 This is a comparison diagram of the joint identification torque and the measured torque of the joint 4 in the embodiment;
[0033] Figure 7 This is a comparison diagram of the joint identification torque and the measured torque of the joint 5 in the embodiment;
[0034] Figure 8 Graph showing the comparison between the joint identification torque and the measured torque of joint 6 in the embodiment. DETAILED DESCRIPTION
[0035] In order to make the above-mentioned purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation mode of the present invention is described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The technical features in each embodiment of the present invention can be combined accordingly without conflicting with each other.
[0036] In the description of the present invention, it is to be understood that when an element is considered to be "connected" to another element, it may be directly connected to the other element or indirectly connected, that is, there are intermediate elements. On the contrary, when an element is said to be "directly" connected to another element, there are no intermediate elements.
[0037] In the description of the present invention, it should be understood that the terms "first" and "second" are only used for the purpose of distinguishing descriptions, and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.
[0038] Through the analysis of the flexible joints in the collaborative robot, the present invention regards the flexible links in the joints as a rigid-flexible coupling system similar to mass-spring-damping. The harmonic reducer corresponding to the flexible joint is modeled as a series of a rigid reducer and an elastic torsion spring. The dynamic theory modeling and parameter variable independence processing are performed on it to form a dynamic equation for parameter identification; then an optimized motion trajectory is given to each joint of the robot and each joint of the robot is controlled to perform corresponding actuations. Based on the torque sensor built into the intelligent harmonic reducer of the collaborative robot and the dual encoder inside the joint, the relevant data required for parameter identification are collected; then an offline identification algorithm is used to accurately identify multiple dynamic parameters of the collaborative robot considering joint flexibility and friction to form initial parameter data. In addition, in the actual working process of the robot, torque, angle, angular velocity and other signals can also be collected in real time, and the recursive least squares method is used to realize the online update of the robot's dynamic parameters and the matching of working conditions.
[0039] In a preferred embodiment of the present invention, a method for adaptively identifying the nonlinear dynamic parameters of a reducer is provided, which can be used to identify the parameters of each flexible joint in a collaborative robot, and the specific steps include S1 to S4. The specific implementation process of each step is described in detail below.
[0040] S1. Model each flexible joint in the collaborative robot, and model the harmonic reducer corresponding to the flexible joint as a series of a rigid reducer and an elastic torsion spring. The rigid reducer is directly connected to the drive motor corresponding to the flexible joint, and the elastic torsion spring is directly connected to the connecting rod corresponding to the flexible joint. According to the flexible joint dynamics model obtained by modeling, the dynamic equations for parameter identification are finally obtained through linear separation and parameter independence processing. The above dynamic equations are represented by the linear regression matrix Multiply by the identified parameter The minimum parameter set is used to obtain the actual joint torque output by the flexible joint .
[0041] In an embodiment of the present invention, the flexible joint dynamics model is composed of a dynamics relationship from the drive motor to the elastic torsion spring, a dynamics relationship from the elastic torsion spring to the connecting rod, and a friction calculation model. The dynamics relationship from the drive motor to the elastic torsion spring is defined as: the output torque of the drive motor Subtract the friction torque of the motor and reducer =Equal to the moment of inertia of the joint end + elastic torsion spring stiffness moment + elastic torsion spring damping moment; the dynamic relationship from the elastic torsion spring to the connecting rod is defined as: the connecting rod dynamic inertia term + Coriolis force and centrifugal force coupling term + gravity term is equal to the elastic torsion spring stiffness moment + damping moment + external interference moment at the flexible joint; the friction calculation model is defined as: the friction moment of the motor and the reducer It is equal to Coulomb friction torque + viscous friction torque. The specific forms of the three calculation formulas in the flexible joint dynamics model are as follows:
[0042] B i ¨ + t + DK − 1 t ˙ = B i ¨ + K ( i − q ) + D ( i ˙ − q ˙ ) = t m − t f (1) M ( q ) q ¨ + C ( q , q ˙ ) q ˙ + g ( q ) = t + DK − 1 t ˙ + t ext = K ( i − q ) + D ( i ˙ − q ˙ ) + t ext (2) t f = [ fv , fc ][ q ˙ sgn( q ˙ ) ] (3)
[0043] Where: K is the equivalent stiffness, D is the equivalent damping, B is the mass of the torsion spring, is the theoretical output angle of the rigid reducer, is the angular velocity of the rigid reducer, is the angular acceleration of the rigid reducer, is the connecting rod angle, is the connecting rod angular velocity, is the connecting rod angular acceleration, is the actual joint torque output by the flexible joint, for The first derivative of Input the torque of the flexible joint to the drive motor, is the output torque of the connecting rod, is the inertia matrix of the connecting rod, is the coupling matrix of Coriolis force and centrifugal force, is the gravity matrix, is the external disturbance torque, are the viscous friction coefficient and the Coulomb friction coefficient, respectively. Represents the sgn function.
[0044] In an embodiment of the present invention, the kinetic equation obtained by linear separation and parameter independence processing is in the form of , Represents the linear regression matrix It consists of 6 state variables However, it should be noted that in step S1, only the expression of the kinetic equation is constructed, and the specific values of the parameters in the model need to be calculated in the subsequent data collection and parameter identification process.
[0045] In an embodiment of the present invention, the identified parameters in the dynamic equation are Contains the parameter group corresponding to each flexible joint in the collaborative robot. Each flexible joint corresponding parameter group includes 14 parameters, namely, the three moments of inertia of the connecting rod around the x, y, and z axes, the three inertia products of the connecting rod in the xy, xz, and yz planes, the three mass moments of the connecting rod in the x, y, and z directions, the mass of the connecting rod, the viscous friction coefficient, the Coulomb friction coefficient, the equivalent stiffness K, and the equivalent damping D. Different collaborative robots have different numbers of flexible joints to be identified. Each flexible joint to be identified has a certain number of parameters in the identified parameters. In the embodiment of the present invention, the collaborative robot is a six-axis collaborative robot, which includes a total of 6 flexible joints, so the identified parameters are Contains 6 parameter groups.
[0046] It should be noted that the identified parameters Among the 14 parameters, the equivalent stiffness can be determined by table lookup or by least square method. Moreover, the two methods of determining the equivalent stiffness K can be used at the same time, and the results can be verified with each other.
[0047] If the equivalent stiffness K is determined by the table lookup method, the remaining 12 parameters except the equivalent stiffness K and the equivalent damping D are solved by the least square method in step S4, and the equivalent damping D is calculated by substituting the parameters obtained by the least square method and the known parameters in the data acquisition process into the flexible joint dynamics model. Specifically, after the friction parameters are identified, After that, the friction torque can be obtained , combined with the identified joint stiffness K and the known motor inertia B, the motor output torque is collected , Rigid reducer output angle and the connecting rod rotation angle q, the damping coefficient D can be obtained by solving equation (1) in the flexible joint dynamics model.
[0048] If the equivalent stiffness K is solved by the least square method, the remaining 13 parameters except the equivalent damping in the identified parameters are solved by the least square method in step S4, and the equivalent damping is calculated by substituting the parameters obtained by the least square method and the known parameters in the data acquisition process into the flexible joint dynamics model. The solution method of the equivalent damping D is the same as the table lookup method and will not be repeated.
[0049] S2. Use Fourier series to design the motion trajectory curve of each flexible joint to be identified in the collaborative robot. The motion trajectory curve is determined by the connecting rod angle. Time domain expression, connecting rod angular velocity Time domain expressions and connecting rod angular acceleration Time domain expressions.
[0050] In the embodiment of the present invention, in the motion trajectory curve, the connecting rod rotation angle corresponding to any i-th flexible joint Time domain expression, connecting rod angular velocity Time domain expressions and connecting rod angular acceleration The time domain expressions are:
[0051] q i ( t ) = ∑ l = 1 N i [ a l i oh f l sin( oh f lt ) − b l i oh f l cos( oh f lt ) + q i 0 ] q ˙ i ( t ) = ∑ l = 1 N i [ a l i cos( oh f lt ) − b l i sin( oh f lt )] q ¨ i ( t ) = ∑ l = 1 N i [ − a l i oh f l sin( oh f lt ) + b l i oh f l cos( oh f lt )]
[0052] Where: is the order of the Fourier series, , , Respectively represent the connecting rod rotation angle corresponding to the i-th flexible joint at time t , connecting rod angular velocity and the connecting rod angular acceleration ;q i0 represents the joint rotation constant, and represents the constant coefficient of the motion trajectory, is the fundamental frequency of the motion trajectory, Indicates The frequency of the order.
[0053] For the six-axis collaborative robot in the embodiment of the present invention, it includes six flexible joints, so the order of the Fourier series is Taking 5 can meet the corresponding solution requirements.
[0054] S3 controls the flexible joints in the collaborative robot to move according to the designed motion trajectory curve. During the movement, the encoder position signals of the motor end and the harmonic reducer output end are collected through dual encoders, and the motor rotation angle is obtained after filtering. and connecting rod angle The time domain signal of the flexible joint is measured by the torque sensor built into the flexible joint. ; Turn the motor Divide by the reducer ratio N to get the theoretical output angle of the rigid reducer , and further obtain the angular velocity of the rigid reducer through differential operation and filtering and the angular acceleration of the rigid reducer ; Connecting rod angle Through discrete Fourier transform, the time domain signal is converted into a frequency domain signal, and then the frequency domain signal is filtered to obtain the main frequency and then the discrete Fourier inverse transform is performed to obtain the connecting rod rotation angle. The time domain expression is substituted into the connecting rod angular velocity in the motion trajectory curve Time domain expressions and connecting rod angular acceleration In the time domain expression, the angular velocity of the connecting rod is obtained by analytical method: and the connecting rod angular acceleration .
[0055] S4, output angle based on rigid reducer theory , Rigid reducer angular velocity , angular acceleration of rigid reducer , connecting rod angle , connecting rod angular velocity and the connecting rod angular acceleration As 6 state variables, the regression matrix is obtained through the Newton-Euler recursive dynamics equation , and then use matrix decomposition to obtain linearly independent columns from the regression matrix Y and form a linear regression matrix , the linear regression matrix And the joint torque actually output by the flexible joint Substitute it into the dynamic equation and solve it by least square method to obtain the minimum parameter set corresponding to the identified parameters, thus completing the offline identification.
[0056] It should be noted that when solving the minimum parameter set corresponding to the identified parameters here, if the equivalent stiffness K and the equivalent damping D have been determined in advance by the table lookup method, the fixed values can be directly used without being used as the parameters to be solved.
[0057] In an embodiment of the present invention, the above matrix decomposition is implemented by using singular value decomposition (SVD) decomposition or orthogonal triangular (QR) decomposition and the like.
[0058] In addition, the above S1~S4 is essentially a process of collecting dynamic data by executing motion trajectories and performing parameter identification offline. However, when the robot is actually working, its dynamic response may also change due to changes in the external environment and wear of the robot's joints. Therefore, in addition to performing this offline identification, the dynamic parameters can also be updated online. The process of updating the dynamic parameters online is as follows:
[0059] The minimum parameter set obtained by offline identification in S4 is substituted into the above dynamic equation as the initial value. The robot controller controls the robot based on the above dynamic equation during actual operation, and continues to collect the motor angle online step by step through the dual encoder and the torque sensor built into the flexible joint during the actual operation. , connecting rod angle And the joint torque actually output by the flexible joint Then, in each time step, the six state variables and the linear regression matrix are calculated in the same way as the offline identification. , the minimum set of parameters for the dynamic equations in the next time step in the robot controller is recursively updated online by running a recursive least squares algorithm with a forgetting factor.
[0060] The specific implementation process and technical effect of the above-mentioned reducer nonlinear dynamic parameter adaptive identification method are demonstrated below through a specific embodiment.
[0061] Example
[0062] In this embodiment, for a six-axis collaborative robot, steps 1 to 8 are used to specifically demonstrate the specific implementation process of dynamic modeling, equation construction, data acquisition, offline identification, and online updating in the adaptive identification method of nonlinear dynamic parameters of the reducer described in S1 to S4, as well as the final technical effect.
[0063] Step 1: Theoretical modeling of robot dynamics considering joint flexibility
[0064] like Figure 1 As shown in the figure, the transmission principle of the robot considering the flexibility of the joint is demonstrated. The harmonic reducer is regarded as a series body of a pure rigid reducer and an elastic torsion spring, and all the flexible links after the reducer (including torque sensors, bearings, etc.) are regarded as part of the elastic torsion spring, with an equivalent stiffness of K. In this series body, the rigid reducer is directly connected to the drive motor corresponding to the flexible joint, and the elastic torsion spring is directly connected to the connecting rod corresponding to the flexible joint. The torque of the drive motor input to the joint is , the driving motor angle is , the reduction ratio of the rigid reducer is N, and the theoretical output angle of the rigid reducer is The output torque of the connecting rod is , the connecting rod rotation angle is q. is the inertia of the drive motor, is the inertia of the connecting rod.
[0065] The robot's flexible joint can be further abstracted as a mass-spring-damper system, which consists of a torsion spring with equivalent stiffness K and equivalent damping D and mass B. The joint output torque is connected to the connecting rod end, as shown in Figure 2 shown.
[0066] Since a flexible link similar to mass-spring-damper is generated from the output end of the drive motor to the connecting rod, the complete robot dynamics model can no longer be expressed by a single equation, and needs to be split into two power transmission equations from the motor to the elastic torsion spring and from the elastic torsion spring to the connecting rod. In this embodiment, the flexible joint dynamics model can be derived from the Lagrange equation or the Newton-Euler iterative equation to obtain the following form:
[0067] B i ¨ + t + DK − 1 t ˙ = B i ¨ + K ( i − q ) + D ( i ˙ − q ˙ ) = t m − t f (1) M ( q ) q ¨ + C ( q , q ˙ ) q ˙ + g ( q ) = t + DK − 1 t ˙ + t ext = K ( i − q ) + D ( i ˙ − q ˙ ) + t ext (2) t f = [ fv , fc ][ q ˙ sgn( q ˙ ) ] (3)
[0068] Where: is the actual joint torque in the robot joint; is the inertia matrix of the connecting rod, is the coupling matrix of Coriolis force and centrifugal force, is the gravity matrix, is the external disturbance torque, are the viscous friction coefficient and the Coulomb friction coefficient, respectively. Represents the sgn function.
[0069] The above-mentioned flexible joint dynamics model consists of the dynamics relationship from the drive motor to the elastic torsion spring, the dynamics relationship from the elastic torsion spring to the connecting rod, and the friction calculation model. Formula (1) represents the dynamics relationship from the drive motor to the elastic torsion spring, where it is defined as: the output torque of the motor Subtract the friction torque of the motor and reducer =Equal to the moment of inertia of the joint end + equivalent torsion spring stiffness moment + equivalent torsion spring damping moment; Formula (2) represents the dynamic relationship from the elastic element to the connecting rod end, where it is defined that: the connecting rod dynamic inertia term + Coriolis force and centrifugal force coupling term + gravity term is equal to the equivalent torsion spring stiffness moment of the elastic element + damping moment + external interference moment at the joint; Formula (3) is the friction calculation model, where it is defined that: the friction moment of the motor and reducer = Coulomb friction torque + viscous friction torque. Formulas (1) to (3) form the robot dynamics equation considering joint flexibility and friction.
[0070] Step 2: Linear Separation Kinetic Model
[0071] The robot dynamics equation constructed in step 1 above is not linearized, which makes identification difficult. Therefore, the model needs to be linearized and separated into state variables. The regression matrix Multiply by the identified parameter The following is the general form of linear separation of parameters considering joint flexibility and friction in the dynamic equations:
[0072]
[0073] in P = [ p 1 , p 2 ,..., p 6 ] T ; p i = [ Ixx , Ixy , Ixz , Iyyy , Iyz , Izz , mX , mY , mZ , m , f v , f c , K , D ] T , Represents a parameter group consisting of 14 identified parameters of the i-th flexible joint. Since the six-axis collaborative robot contains a total of 6 flexible joints, i=1,2,,3,4,5,6. Among the 14 parameters, is the mass moment of inertia of the connecting rod about the x, y, and z axes, are the three inertia products of the connecting rod in the xy, xz, and yz planes (used to describe the distribution of the rigid body mass in the same coordinate system), The three mass moments of the connecting rod in the x, y, and z directions (i.e., the product of the center of mass coordinates and the mass), m is the mass of the connecting rod, are the viscous friction coefficient and the Coulomb friction coefficient respectively; K and D are the equivalent stiffness and equivalent damping respectively. The reference coordinate system is relative to the connecting rod coordinate system, not the center of gravity coordinate system.
[0074] Step 3: Parameter independence processing
[0075] The parameter vector separated in step 2 is not full rank, and the identification algorithm involves a parameter inversion process, so the parameter vector needs to be processed to obtain the minimum parameter set. The minimum parameter set is the combination value of the classical inertial parameters. Dynamic identification mainly identifies the combination value, and the combination value can replace the actual parameters to simplify the dynamic model. Obtaining the minimum parameter set is essentially to reduce the dimension of the parameters, which can be achieved by direct geometric deduction or by using numerical methods such as SVD and QR decomposition. Therefore, in this embodiment, based on the dynamic model equation obtained by the above linear separation, the parameter independence is further processed to obtain the final dynamic equation for parameter identification:
[0076]
[0077] in: is the linear regression matrix, which is a matrix consisting of linearly independent columns in Y; is the identified parameter The minimum parameter set is a column vector consisting of minimum parameters, each of which is the identified parameter The linear combinations of , with different minimum parameters are different. is the joint torque actually output by the flexible joint.
[0078] Step 4: Use Fourier series to design the robot identification joint motion trajectory curve to achieve trajectory optimization. The motion trajectory curve is an angle trajectory, which is composed of the connecting rod angle Time domain expression, connecting rod angular velocity Time Domain Expression and Connecting Rod Angular Acceleration The time domain expression can be expressed by the following formula:
[0079] q i ( t ) = ∑ l = 1 N i [ a l i oh f l sin( oh f lt ) − b l i oh f l cos( oh f lt ) + q i 0 ] q ˙ i ( t ) = ∑ l = 1 N i [ a l i cos( oh f lt ) − b l i sin( oh f lt )] q ¨ i ( t ) = ∑ l = 1 N i [ − a l i oh f l sin( oh f lt ) + b l i oh f l cos( oh f lt )]
[0080] Where: is the order of the Fourier series, , , Respectively represent the connecting rod rotation angle corresponding to the i-th flexible joint at time t , connecting rod angular velocity and the connecting rod angular acceleration , , Corresponding to The first-order derivative expression and the second-order derivative expression of ; q i0 represents the joint rotation constant, and represents the constant coefficient of the motion trajectory, is the fundamental frequency of the motion trajectory, Indicates The frequency of the order.
[0081] Under the constraints of joint angle, angular velocity, etc., for the constant coefficient , and q i0 Optimize so that the linear regression matrix The condition number is minimized to reduce the minimum parameter set In this embodiment, for a six-axis collaborative robot with six flexible joints, a fifth-order Fourier series is generally used to obtain a better recognition effect, and by setting The size of the robot arm can be adjusted to avoid the natural frequency of the robot arm and avoid vibration and flexibility. When the robot is running according to the motion trajectory curve, the encoder can be used to collect the angle signal of the flexible joint connecting rod end, and the signal can be discrete Fourier transformed. After filtering the frequency domain signal to obtain the main frequency, the inverse discrete Fourier transform is performed to obtain the time domain expression of the angle. Substituting it into the first-order derivative expression and the second-order derivative expression in the trajectory, the angular velocity of the connecting rod end can be obtained by analytical methods. , angular acceleration of the connecting rod end Compared with the traditional method of solving by difference, the noise is greatly reduced. The corresponding conversion and solution methods will be introduced in detail in the data collection step later.
[0082] Step 5: Data Collection
[0083] Control each flexible joint in the collaborative robot to move according to the designed motion trajectory curve, and collect the following data during the movement:
[0084] (1) During the motion process, the encoder position signals at the motor end and the output end of the harmonic reducer are collected through dual encoders. That is, the encoder position signals are collected and filtered through the encoder at the motor end and the encoder at the output end of the reducer in the flexible joint. After filtering, the encoder signal at the motor end corresponds to the motor rotation angle. , the signal at the output end of the reducer is filtered to obtain the encoder connecting rod rotation angle , both are time domain signals.
[0085] (2) Turn the motor After dividing by the reduction ratio N, the theoretical output angle of the rigid reducer is obtained. , and then further through differential operation and filtering, the angular velocity of the rigid reducer is obtained and the angular acceleration of the rigid reducer ; At the same time, the angular velocity of the connecting rod end (joint) , angular acceleration The first-order and second-order differential expressions of the joint motion optimization trajectory are obtained analytically. The specific method is as follows: Through discrete Fourier transform, the time domain signal is converted into a frequency domain signal, and then the frequency domain signal is filtered to obtain the main frequency and then the discrete Fourier inverse transform is performed to obtain the connecting rod rotation angle. Time domain expression, substituting the connecting rod angular velocity of the above motion trajectory curve into Time domain expressions and connecting rod angular acceleration In the time domain expression, the angular velocity of the connecting rod is obtained by analytical method: and the connecting rod angular acceleration .
[0086] (3) Joint torque It is measured by torque sensor, which is more accurate than the torque measured by current loop;
[0087] (4) The stiffness K of the flexible link of the joint is obtained by least squares identification of equation (1) or (2) in the flexible joint dynamic model. In addition, the harmonic reducer manufacturer also provides a table of equivalent spring torsional stiffness data under different loads of the reducer, which can be directly found by the table lookup method, and the result can be compared and verified with the offline identification result.
[0088] (5) Solution of the damping D of the joint flexibility link: After the friction parameters are identified After that, the friction torque can be obtained , combined with the identified joint stiffness K and the known motor inertia B, the motor output torque is collected , Rigid reducer output angle and the connecting rod rotation angle q, the damping coefficient D can be obtained by solving equation (1) in the flexible joint dynamics model.
[0089] Step 6: Minimum parameter offline identification
[0090] According to the 6 state variables obtained in step 5 , the regression matrix is obtained by Newton-Euler recursive dynamics equation , and then use matrix decomposition (using SVD or QR decomposition) to obtain linearly independent columns from the regression matrix Y and form a linear regression matrix , the linear regression matrix and the actual joint torque output of the flexible joint measured in step 5 Substitute the parameters into the kinetic equation after the parameter independence processing in step 3, and solve them by the least squares method to obtain the minimum parameter set corresponding to the identified parameters, thus completing the offline identification.
[0091] In this embodiment, the least square method is used as the identification algorithm. The advantages are that the structure is simple, no additional experience is required for parameter setting, and there is no need to convert the dynamic equation into the state equation form, and the accuracy is ideal. The general form of using the least square method to solve the minimum parameter set offline is:
[0092]
[0093] Step 7: Minimum parameters online update
[0094] The offline identification result in step 6, that is, the minimum parameter set corresponding to the identified parameters obtained As the initial dynamic parameter estimates for online updating, the minimum parameter set is set in the robot controller Substituting it into the dynamic equation, the robot controller controls the robot based on the dynamic equation during actual operation. In the actual operation process, the motor rotation angle is collected online step by step through the dual encoder and the torque sensor built into the flexible joint. , connecting rod angle And the joint torque actually output by the flexible joint Then, in each time step, the six state variables and the linear regression matrix are calculated in the same way as the offline identification. (See steps 4 to 6 above), but unlike offline identification, the ordinary least squares method needs to be replaced by a recursive least squares algorithm with a forgetting factor, and the linear regression matrix is calculated at each time step. and joint torque , by running a recursive least squares algorithm with a forgetting factor, the minimum set of parameters of the dynamic equations in the robot controller is recursively updated to control the robot in the next time step. This online update process is recursive on a time-step basis, and the recursive update rule can be used to update the parameter estimates:
[0095]
[0096] in, represents the parameter identification value of the k+1th time step; It is the design matrix of input data, which describes the relationship between input data and parameters; represents the gain matrix, which is used to adjust the error between the measurement data and the identification data; is the error covariance matrix, describing the uncertainty of parameter estimates; Indicates the output value at the current moment; Indicates the error value of the parameter estimation at the current moment, which is the difference between the output value at the current moment and the predicted output value; is the forgetting factor, which controls the accuracy and response speed of parameter estimation. Its value is determined according to the actual situation of the system and its range is [0.95, 1]. I is the unit matrix.
[0097] In this way, it can be ensured that the robot's dynamic parameters can be continuously updated according to the actual operating conditions, maintaining high control accuracy for a long time.
[0098] Step 8: Convert the parametric dynamics model into state-space form
[0099] This embodiment can also convert the identified combined values of dynamic parameters into a state space form, and explicitly give the inertia term, Coriolis and centrifugal force coupling term, gravity term, friction term, stiffness damping term, etc., so that various control methods can be subsequently applied in the robot servo drive to achieve precise force control.
[0100] Finally, this embodiment performs linearization and QR decomposition on the robot dynamic model that takes into account the flexibility of the joint reducer to obtain the minimum parameter set, allows the robot to run the excitation trajectory and collect joint dual-angle data and torque data, uses the least squares method to identify the connecting rod and reducer parameters offline, and then uses the recursive least squares method to adaptively update them online. Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 and Figure 8 The dynamic parameters identified by using this embodiment are displayed respectively, and the torque values of the six joints of the robot under arbitrary trajectory motion are calculated and compared with the actual torque values measured by the sensor. The results show that the joint torque identification values of the six flexible joints can basically approach the measured values, indicating that the dynamic model constructed by the present invention is reasonable and the identification effect of the dynamic parameters is good.
[0101] The above-described embodiment is only a preferred solution of the present invention, but it is not intended to limit the present invention. A person skilled in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
Claims
1. A method for adaptively identifying the nonlinear dynamic parameters of a reducer, used for parameter identification of each flexible joint in a collaborative robot, characterized in that: include: S1. Model each flexible joint in the collaborative robot, model the harmonic reducer corresponding to the flexible joint as a series body of a rigid reducer and an elastic torsion spring, directly connect the drive motor corresponding to the flexible joint by the rigid reducer, and directly connect the connecting rod corresponding to the flexible joint by the elastic torsion spring; according to the flexible joint dynamics model obtained by modeling, the dynamics equation finally used for parameter identification is obtained by linear separation and parameter independence processing, and the dynamics equation is obtained by multiplying the linear regression matrix by the minimum parameter set of the identified parameters to obtain the joint torque actually output by the flexible joint; The flexible joint dynamics model is composed of a dynamics relationship from the drive motor to the elastic torsion spring, a dynamics relationship from the elastic torsion spring to the connecting rod, and a friction force calculation model. The specific forms of the three calculation formulas are as follows: Where: K is the equivalent stiffness, D is the equivalent damping, B is the mass of the torsion spring, θ is the theoretical output angle of the rigid reducer, is the angular velocity of the rigid reducer, is the angular acceleration of the rigid reducer, q is the connecting rod rotation angle, is the connecting rod angular velocity, is the angular acceleration of the connecting rod, τ is the actual joint torque output by the flexible joint, is the first-order derivative of τ, τ m is the torque of the flexible joint input by the driving motor, M(q) is the inertia matrix of the connecting rod, is the coupling matrix of Coriolis force and centrifugal force, g(q) is the gravity matrix, τ ext is the external disturbance torque, f v ,f c are the viscous friction coefficient and the Coulomb friction coefficient respectively, sgn() represents the sgn function; τ f is the friction torque of the reducer; In the dynamic equation, the identified parameters include a parameter group corresponding to each flexible joint in the collaborative robot, and the parameter group corresponding to each flexible joint includes 14 parameters, namely, three mass moments of inertia of the connecting rod around the x, y, and z axes, three inertia products of the connecting rod in the xy, xz, and yz planes, three mass moments of the connecting rod in the x, y, and z directions, the mass of the connecting rod, the viscous friction coefficient, the Coulomb friction coefficient, the equivalent stiffness, and the equivalent damping; S2. Designing a motion trajectory curve of each to-be-identified flexible joint in the collaborative robot in the form of Fourier series; the motion trajectory curve is composed of a time-domain expression of a connecting rod angle, a time-domain expression of a connecting rod angular velocity, and a time-domain expression of a connecting rod angular acceleration; S3. Control each flexible joint in the collaborative robot to move according to the designed motion trajectory curve. During the movement, the encoder position signals at the motor end and the output end of the harmonic reducer are collected through the dual encoders, and the time domain signals of the motor angle and the connecting rod angle are obtained after filtering. At the same time, the joint torque actually output by the flexible joint is measured by the torque sensor built into the flexible joint; the motor angle is divided by the reducer reduction ratio to obtain the theoretical output angle of the rigid reducer, and the rigid reducer angular velocity and the rigid reducer angular acceleration are further obtained through differential operation and filtering; the connecting rod angle is converted from a time domain signal to a frequency domain signal through discrete Fourier transform, and then the frequency domain signal is filtered to obtain the main frequency and then the discrete Fourier inverse transform is performed to obtain the time domain expression of the connecting rod angle, which is substituted into the time domain expression of the connecting rod angular velocity and the time domain expression of the connecting rod angular acceleration in the motion trajectory curve, and the connecting rod angular velocity and the connecting rod angular acceleration are obtained by analytical method; S4, taking the rigid reducer theoretical output angle, rigid reducer angular velocity, rigid reducer angular acceleration, connecting rod angle, connecting rod angular velocity and connecting rod angular acceleration as 6 state variables, obtaining a regression matrix through Newton-Euler recursive dynamic equation, and then obtaining linearly independent columns from the regression matrix through matrix decomposition and forming a linear regression matrix, substituting the linear regression matrix and the joint torque actually output by the flexible joint into the dynamic equation, solving the minimum parameter set corresponding to the identified parameters through the least squares method, and completing offline identification; Among the identified parameters, the remaining 13 parameters except the equivalent damping are solved by the least square method, and the equivalent damping is calculated by substituting the parameters solved by the least square method and the known parameters in the data acquisition process into the flexible joint dynamics model; The minimum parameter set obtained by offline identification in S4 is substituted into the dynamic equation as the initial value. The robot controller controls the robot based on the dynamic equation during actual operation, and continues to collect the motor angle, connecting rod angle and joint torque actually output by the flexible joint online step by time through the dual encoders and the torque sensor built into the flexible joint during the actual operation. Then, in each time step, the six state variables and the linear regression matrix are calculated according to the same method as the offline identification. By running the recursive least squares algorithm with a forgetting factor, the minimum parameter set of the dynamic equation in the next time step in the robot controller is updated online.
2. The method for adaptive identification of nonlinear dynamic parameters of a reducer according to claim 1, characterized in that: In the motion trajectory curve, the time domain expression of the connecting rod angle, the time domain expression of the connecting rod angular velocity and the time domain expression of the connecting rod angular acceleration corresponding to any i-th flexible joint are respectively: Where: N i is the order of the Fourier series, q i (t) They represent the connecting rod rotation angle q and connecting rod angular velocity corresponding to the i-th flexible joint at time t respectively. and the connecting rod angular acceleration q i0 represents the joint rotation constant, a l i and b l i represents the constant coefficient of the motion trajectory, ω f is the fundamental frequency of the motion trajectory, ω f l represents the frequency of the lth order.
3. The method for adaptive identification of nonlinear dynamic parameters of a reducer according to claim 2, characterized in that: In the motion trajectory curve, the order N of the Fourier series i Take 5.
4. The method for adaptively identifying nonlinear dynamic parameters of a reducer according to claim 1, characterized in that: The matrix decomposition adopts singular value decomposition or orthogonal triangular decomposition.
5. The method for adaptively identifying nonlinear dynamic parameters of a reducer according to claim 1, characterized in that: The collaborative robot is a six-axis collaborative robot, comprising a total of six flexible joints.
Citation Information
Cited By
Robot integrated joint mechanical characteristic parameter identification method
CN122592900A
A robot integrated joint mechanical characteristic parameter identification method
CN122592900B
