Robot constant force control and load self-identification method, system, medium and computer

By constructing dynamics and prediction models, combined with Fourier series trajectories and whale algorithms, the problem of low mass input efficiency of the robot arm end effector and the impact of load changes is solved, constant force control and load adaptive identification are achieved, and the cost is reduced. cost and improves movement smoothness and safety.

CN115070768BActive Publication Date: 2024-09-27JIANGXI INST OF INTELLIGENT IND TECH INNOVATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210799907.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-08
Publication Date
2024-09-27
Estimated Expiration
2042-07-08

AI Technical Summary

Technical Problem

The existing robot arm needs to manually input the mass when replacing the end effector, resulting in low efficiency. The dynamic model is affected when the load changes, making it impossible to achieve constant torque output and causing high costs.

Method used

By constructing the robot's dynamic model and prediction model, combined with Fourier series trajectory and whale algorithm, an optimization model is established to achieve constant force control and load adaptive identification, reducing reliance on torque sensors.

Benefits of technology

It realizes real-time correction and optimization during robot movement, reduces production costs, improves the smoothness and safety of trajectory movement, and reduces the amount of calculation and response time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115070768B
    Figure CN115070768B
Patent Text Reader

Abstract

The present invention provides a method, system, medium and computer for constant force control and load self-identification of a robot. The method comprises: constructing a dynamic model and dynamic parameter identification rules of the robot; collecting theoretical data sets at various times when the robot moves according to a preset excitation trajectory within a preset motion cycle based on the dynamic model and the dynamic identification rules; collecting no-load data sets and load data sets when the robot moves according to different excitation trajectories within a preset motion cycle in a no-load state and a loaded state respectively; calculating predicted data sets of the no-load data set and the load data set by using a preset prediction model, and establishing an optimization model according to the predicted data set, the theoretical data set, the no-load data set and the load data set; fusing the dynamic model, the prediction model and the optimization model to obtain a final model, and using the final model to complete the constant force control output and load adaptive identification of the robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robot technology, and in particular to a robot constant force control and load self-identification method, system, medium and computer. Background Art

[0002] With the rapid development of science and technology and the improvement of people's living standards, the industrial level is also gradually rising. Robot arms have become one of the common tools in production and manufacturing and intelligent production lines. Because robot arms need to use different end effectors (clamps) in different situations in production and manufacturing and intelligent production lines, and the weight and shape of the clamped objects are also different, and the unmanned operation in the intelligent production line cannot manually measure the weight of the end effector and the object; at the same time, in production lines such as welding and spraying, the end is often required to move continuously with a constant force and different postures.

[0003] Currently, mainstream robotic arms manually input the mass when replacing the end effector, which will greatly reduce efficiency in the production line. In addition, when clamping objects and moving, changes in load will affect the robot's dynamic model. If it cannot be automatically optimized and adjusted, it will have a certain impact on collision detection, etc.; and in terms of constant torque output at the end, parallel robots are still used, which cannot achieve the flexibility of serial robots and also require multiple torque sensors, which are too expensive. Summary of the invention

[0004] Based on this, the purpose of the present invention is to provide a robot constant force control and load self-identification method, system, medium and computer to at least solve the deficiencies in the above-mentioned related technologies.

[0005] The present invention provides a robot constant force control and load self-identification method, comprising:

[0006] Step 1: Construct the robot's dynamic model and dynamic parameter identification rules;

[0007] Step 2: Based on the dynamic model and the dynamic identification rule, a theoretical data set of the robot at each time in the preset motion cycle is collected when the robot moves according to the preset excitation trajectory within the preset motion cycle;

[0008] Step 3: respectively collecting no-load data sets and loaded data sets of the robot at various times in the preset motion cycle when the robot moves according to different excitation trajectories in the preset motion cycle in an no-load state and a loaded state;

[0009] Step 4: Calculate the predicted data sets of the no-load data set and the loaded data set using a preset prediction model, and establish an optimization model based on the predicted data set, the theoretical data set, the no-load data set, and the loaded data set;

[0010] Step 5: Fusing the dynamic model, the prediction model and the optimization model to obtain a final model, and using the final model to complete the constant force control output and load adaptive identification of the robot.

[0011] Furthermore, in step 1, the expression of the dynamic model of the robot is:

[0012] τ=τ f +τ d ;

[0013]

[0014] Where τ is the joint driving torque, τ f is the joint friction torque, τ d is the joint dynamic torque, q, They are the angle, angular velocity, and angular acceleration of the joint, respectively. D(q) is the inertia term. are Coriolis force and centrifugal force, G(q) is gravity, D(q), G(q) is a function of the robot's inertia parameters and joint motion parameters.

[0015] Furthermore, in the step 1, the dynamic parameter identification rule adopts a linear friction model:

[0016]

[0017]

[0018] Where: σ is the viscous friction coefficient, unit is N·m·s / rad;

[0019] f is the Coulomb friction constant, in N·m;

[0020] μ is the Coulomb friction dynamic torque factor.

[0021] Furthermore, in step 2, the preset excitation trajectory adopts a Fourier series trajectory:

[0022]

[0023] Among them, q i represents the joint rotation angle, q i0 represents the joint rotation constant, a l , b l represents the constant coefficient of the trajectory, ω f is the fundamental frequency of the trajectory, ω f l represents the frequency of the first order.

[0024] Furthermore, the step 4 includes:

[0025] Constructing a prediction model according to the forward and inverse Jacobian matrix, and calculating a corresponding prediction data set using the no-load data set and the load data set as input;

[0026] The theoretical data set is compared with the predicted data set, the no-load data set and the loaded data set to calculate corresponding deviation values, and an optimization model is established with the deviation values ​​as optimization targets.

[0027] Furthermore, in step 5, the optimization model is established using the whale algorithm, which is expressed as follows:

[0028] D=|CX * (t)-X(t)|

[0029] X(t+1)=X * (t)-AD;

[0030] In the formula, t represents the number of iterations of the current model, A and C represent coefficients, and X * (t) represents the current best whale position vector, X(t) represents the current whale position vector;

[0031] Furthermore, the calculation formulas of the coefficients A and C are:

[0032] A = 2ar1-a;

[0033] C = 2r2;

[0034]

[0035] In the formula, r1 and r2 are random numbers in (0, 1), the value of a decreases linearly from 2 to 0, and T max is the maximum number of iterations.

[0036] The present invention also provides a robot constant force control and load self-identification system, comprising:

[0037] The first model building module is used to build a dynamic model of the robot and dynamic parameter identification rules;

[0038] A first data calculation module, for collecting theoretical data sets of the robot at various times in a preset motion cycle when the robot moves according to a preset excitation trajectory within the preset motion cycle based on the dynamic model and the dynamic identification rule;

[0039] A second data calculation module is used to collect the no-load data set and the load data set of the robot at each time of the preset motion cycle when the robot moves according to different excitation trajectories within the preset motion cycle in an no-load state and a load state respectively;

[0040] A second model building module, used to calculate a prediction data set of the no-load data set and the load data set by using a preset prediction model, and establish an optimization model according to the prediction data set, the theoretical data set, the no-load data set and the load data set;

[0041] The processing module is used to fuse the dynamic model, the prediction model and the optimization model to obtain a final model, and use the final model to complete the constant force control output and load adaptive identification of the robot.

[0042] Furthermore, the second model building module includes:

[0043] A data calculation unit, used for constructing a prediction model according to the forward and inverse Jacobian matrix, and calculating a corresponding prediction data set using the no-load data set and the load data set as input;

[0044] The model building unit is used to compare the theoretical data set with the predicted data set, the no-load data set and the loaded data set to calculate the corresponding deviation value, and establish an optimization model with the deviation value as the optimization target.

[0045] The present invention also provides a medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned robot constant force control and load self-identification method is implemented.

[0046] The present invention also proposes a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned robot constant force control and load self-identification method when executing the computer program.

[0047] Compared with the prior art, the beneficial effects of the present invention are as follows: by establishing a dynamic model, a prediction model and an optimization model, a final model is obtained, and the adaptive and learning functions of the final model are utilized to enable the robot to correct errors in real time during movement, and optimize the dynamic model while adapting to the load, so that the trajectory movement is smoother and safer; and there is no need to install torque sensors at each joint, and constant force control output can be achieved through the model, saving production costs; in addition, for the output of constant torque at the end of the robot, only data push of each joint is required, with a small amount of calculation and a fast response speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 Flow chart of the robot constant force control and load self-identification method in the first embodiment of the present invention;

[0049] Figure 2 for Figure 1 Detailed flow chart of step S104;

[0050] Figure 3 It is the structural frame of the robot constant force control and load self-identification system in the second embodiment of the present invention;

[0051] Figure 4 It is the structural frame of the computer in the third embodiment of the present invention.

[0052] Description of main component symbols:

[0053] Memory 10 The first data calculation module 12 processor 20 Second data calculation module 13 Computer Programs 30 Second model building module 14 First model building module 11 Processing Module 15

[0054] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0055] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0056] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0058] Embodiment 1

[0059] See also Figure 1 , which shows a robot constant force control and load self-identification method in a first embodiment of the present invention, and the method specifically includes steps S101 to S105:

[0060] S101, constructing a dynamic model of the robot and dynamic parameter identification rules;

[0061] In specific implementation, robot dynamics modeling and dynamics parameter identification are performed according to the robot used;

[0062] The dynamic model of the collaborative robot is:

[0063] τ=τ f +τ d ;

[0064]

[0065] Where τ is the joint driving torque, τ f is the joint friction torque, τ d is the joint dynamic torque, q, They are the angle, angular velocity, and angular acceleration of the joint, respectively. D(q) is the inertia term. are Coriolis force and centrifugal force, G(q) is gravity, D(q), G(q) is a function of the robot's inertia parameters and joint motion parameters.

[0066] Furthermore, the dynamic parameter identification rule of the collaborative robot adopts a linear friction model:

[0067]

[0068]

[0069] Where: σ is the viscous friction coefficient, unit is N·m·s / rad;

[0070] f is the Coulomb friction constant, in N·m;

[0071] μ is the Coulomb friction dynamic torque factor.

[0072] According to the above formula, the complete kinetic parameters are as follows:

[0073] p d =[I xx , I xv , I yy , I xz , I yz , I zz , H x , H y , H z , m, σ, f c , μ];

[0074] Use Newton-Euler method to derive the dynamics of the robot arm: start from the base, calculate the speed and acceleration of each link in turn, all the way to the end effector; start from the external force on the end effector and calculate back to find the torque / force of each joint. xx , I xy , I yy , I xz , I yz , I zz is the inertia tensor of the connecting rod, H x , H y , H z is the center of mass vector of the connecting rod, and m is the mass of the connecting rod.

[0075] The angular velocity of each link is equal to the angular velocity of the previous link plus the angular velocity caused by its joint rotation (this is 0 for translational joints); thus, the transmission formula of the link angular velocity is obtained. By taking the derivative of both sides of the formula, we can further obtain the transmission formula of angular acceleration:

[0076]

[0077]

[0078] where θ is the joint position (angle of rotation of the joint), is the joint angular velocity, is the joint angular acceleration, Z is the rotation axis of the joint, ω is the angular velocity of the connecting rod, and the rotation matrix is ​​needed to map the vectors of different reference frames to the same reference frame, and i is the joint number.

[0079] For linear velocity, the linear velocity of each link is equal to the sum of the linear velocity of the previous link (center of mass), the linear velocity caused by the rotation of the previous link, and the linear velocity of the translation joint. The linear acceleration transmission formula can be obtained by taking the derivative of both sides of the equation:

[0080] v i+1 =v i+1 +v i+1 ×v i+1 +v i+1 Z i+1 ;

[0081]

[0082] where d is the joint position (translation position of the translation joint), is the joint translation velocity, is the joint translation acceleration, Z is the joint translation direction, p is the position vector from the center of mass of the previous link to the current link, and v is the linear velocity of the link.

[0083] According to Euler's equation of motion, the inertia force and moment of inertia of each connecting rod are obtained:

[0084]

[0085]

[0086] Where F is the inertia force of the connecting rod, N is the moment of inertia of the connecting rod, and I is the inertia tensor of the connecting rod. is the connecting rod linear acceleration, is the connecting rod angular acceleration, ω is the connecting rod angular velocity, and ci is the center of mass coordinate system of the ith connecting rod.

[0087] The torque at each joint can be expressed as:

[0088]

[0089] Where Z is the Z-axis vector of each joint, f is the inertial force, and n is the moment of inertia.

[0090] S102, collecting theoretical data sets of the robot at various times in the preset motion cycle when the robot moves according to a preset excitation trajectory within the preset motion cycle based on the dynamic model and the dynamic identification rule;

[0091] S103, respectively collecting an unloaded data set and a loaded data set of the robot at each time of the preset motion cycle when the robot moves according to different excitation trajectories within the preset motion cycle in an unloaded state and a loaded state;

[0092] In the specific implementation, a robot motion cycle is set, and the robot is controlled to move according to a preset excitation trajectory in the motion cycle. The preset excitation trajectory adopts a Fourier series trajectory:

[0093]

[0094] Among them, q i represents the joint rotation angle, q i0 represents the joint rotation constant, a l , b l represents the constant coefficient of the trajectory, ω f is the fundamental frequency of the trajectory, ω f l represents the frequency of the lth order.

[0095] At the same time, the various parameters of the robot at each time (angular velocity, angular acceleration, current value, etc.) are recorded as the disturbance-free input set (Kalman filtering is used in the data acquisition process, and the least squares method is needed to derive the robot dynamics model).

[0096] Furthermore, a flexible torque sensor is attached to the end of the robot, and the robot is stimulated in different trajectories. At the same time, a data set (angular velocity, angular acceleration, current value, and flexible torque sensor value) within each time period is collected as an unloaded data set; different end effectors (loads) are added to repeat the above steps, and the data set is collected as a loaded data set;

[0097] S104, using a preset prediction model to calculate a prediction data set of the no-load data set and the load data set, and establishing an optimization model according to the prediction data set, the theoretical data set, the no-load data set and the load data set;

[0098] For further information, see Figure 2 , the step S104 specifically includes S1041-S1042:

[0099] S1041, constructing a prediction model according to the forward and inverse Jacobian matrix, and calculating a corresponding prediction data set using the no-load data set and the load data set as input;

[0100] S1042, comparing the theoretical data set with the predicted data set, the no-load data set, and the loaded data set to calculate corresponding deviation values, and establishing an optimization model with the deviation values ​​as optimization targets.

[0101] In the specific implementation, the no-load data set and the load data set obtained above are compared with the theoretical data set, and a prediction model is constructed according to the forward and inverse Jacobian matrix, and the load data set and the torque data set are used as inputs of the prediction model, and the output value of the prediction model (i.e., the prediction data set) is compared with the no-load data set and the load data set, and the error is used as the optimization target to form a model after self-optimization learning;

[0102] Specifically, the identified instantaneous parameters are derived and reversed according to the forward and inverse Jacobian matrices.

[0103] For the forward pass:

[0104]

[0105]

[0106]

[0107]

[0108]

[0109]

[0110] For the reverse pass:

[0111]

[0112]

[0113]

[0114] In the above formula, the i in the upper left corner of the formula represents the reference coordinate system of the current joint link, and the i in the lower right corner of the formula represents the coordinate system where the current joint link is located. represents the transformation from coordinate system i+1 to i, represents the transformation from coordinate system i to i+1, i p i+1 is the representation of point p in the i+1 coordinate system in the i coordinate system.

[0115] From instantaneous kinematics, the Jacobian matrix can be used to relate the joint space to the action space, mapping the velocity in the joint space to the velocity in the action space:

[0116]

[0117] in, m is the degree of freedom of the operation space, n is the degree of freedom of the joint space, is the operating space speed, is the joint space velocity.

[0118] The output torque of each joint is defined as:

[0119] τ=[τ1 τ2 …τx] T ;

[0120] The joint speed is:

[0121]

[0122] The power output of the entire system (equal to force multiplied by speed) is expressed in joint space as:

[0123]

[0124] For the operating space, the torque output by the end effector to the outside world is:

[0125] F[f1 f2 f3 n1 n2 n3] T ;

[0126] Here, f represents force and n represents torque.

[0127] The speed of the end effector is:

[0128]

[0129] The power of the external force applied to the end effector to do work on the entire system is:

[0130]

[0131] According to the law of conservation of energy, we get:

[0132]

[0133] Substituting the instantaneous kinematics into the equation, we get:

[0134]

[0135] τ T =F T J=(JTF) T ;

[0136] τ=J T F;

[0137] At this point, the conversion between joint space torque and operation space torque output can be achieved.

[0138] Furthermore, the prediction data set derived from the dynamic model and the forward and inverse Jacobi is compared with the no-load data set and the loaded data set, and an optimization model is established based on the whale algorithm:

[0139] The principle of the whale algorithm is applied to the robot dynamics optimization. According to the humpback whale's need to surround its prey when hunting, the following model is established:

[0140] D=|CX * (t)-X(t)|

[0141] X(t+1)=X * (t)-AD;

[0142] In the formula, t represents the number of iterations of the current model, A and C represent coefficients, and X * (t) represents the current best whale position vector, X(t) represents the current whale position vector;

[0143] The calculation formulas for the above coefficients A and C are:

[0144] A = 2ar1-a;

[0145] C = 2r2;

[0146]

[0147] In the formula, r1 and r2 are random numbers in (0, 1), the value of a decreases linearly from 2 to 0, and T max is the maximum number of iterations.

[0148] Mathematically model the hunting behavior of humpback whales, which hunt in spiral motions:

[0149] X(t+1)=X * (t)+D p e bl cos(2πl);

[0150] Where Dp = |X * (t)-X(t)| represents the distance between the whale and the prey, that is, the error between the theoretically derived value of the current dynamic model and the actual value, represents the best position vector so far, b is a constant used to define the shape of the spiral, l is a random number between (-1, 1), and the model must shrink the approximation range while approximating the error in a spiral shape. Assuming that some P i Probabilistic selection shrinkage approximation range mechanism and 1-P i Probabilistically choose the spiral model to update the whale position and set the mathematical model:

[0151]

[0152] When searching for prey, it is modeled as follows:

[0153] D=|CX rand -Xt|

[0154] X(t+1)=X rand -AD;

[0155] Among them, X rand is a randomly selected whale position vector. The algorithm sets A≥1 to randomly select a search agent, and update the positions of other whales according to the randomly selected whale position, forcing the whale to deviate from the prey and find a more suitable prey. This can enhance the algorithm's exploration ability and enable the whale algorithm to perform global search.

[0156] Through the iteration of position and search for prey, the individual position with the smallest fitness value is found as the optimal position, and the next generation position is updated until the optimal solution with the smallest error is found. At this time, it is the optimal self-identified load and output torque of each joint.

[0157] S105, fusing the dynamic model, the prediction model and the optimization model to obtain a final model, and using the final model to complete the constant force control output and load adaptive identification of the robot.

[0158] In a specific implementation, the above-mentioned dynamic model is integrated with the prediction model and the optimization model to obtain a final model, and the final model is used to complete the constant force control output and load adaptive identification of the robot.

[0159] In summary, the robot constant force control and load self-identification method in the above-mentioned embodiment of the present invention establishes a dynamic model, a prediction model and an optimization model to obtain a final model, and utilizes the adaptive and learning functions of the final model to enable the robot to correct errors in real time during movement, and optimize the dynamic model while adapting to the load, so that the trajectory movement is smoother and safer; and there is no need to install torque sensors at each joint, constant force control output can be achieved through the model, saving production costs; in addition, for the output of constant torque at the end of the robot, only data push of each joint is required, with a small amount of calculation and a fast response speed.

[0160] Embodiment 2

[0161] Another aspect of the present invention is to provide a robot constant force control and load self-identification system, please refer to Figure 3 , which is a robot constant force control and load self-identification system in a second embodiment of the present invention, comprising:

[0162] The first model building module 11 is used to build a dynamic model of the robot and a dynamic parameter identification rule;

[0163] A first data calculation module 12 is used to collect theoretical data sets of the robot at various times in the preset motion cycle when the robot moves according to the preset excitation trajectory within the preset motion cycle based on the dynamic model and the dynamic identification rule;

[0164] The second data calculation module 13 is used to collect the no-load data set and the load data set of the robot at each time of the preset motion cycle when the robot moves according to different excitation trajectories in the preset motion cycle in the no-load state and the load state respectively;

[0165] A second model building module 14 is used to calculate a prediction data set of the no-load data set and the load data set using a preset prediction model, and to establish an optimization model according to the prediction data set, the theoretical data set, the no-load data set and the load data set;

[0166] Furthermore, the second model building module 14 includes:

[0167] A data calculation unit, used for constructing a prediction model according to the forward and inverse Jacobian matrix, and calculating a corresponding prediction data set using the no-load data set and the load data set as input;

[0168] The model building unit is used to compare the theoretical data set with the predicted data set, the no-load data set and the loaded data set to calculate the corresponding deviation value, and establish an optimization model with the deviation value as the optimization target.

[0169] The processing module 15 is used to fuse the dynamic model, the prediction model and the optimization model to obtain a final model, and use the final model to complete the constant force control output and load adaptive identification of the robot.

[0170] The functions or operation steps implemented when the above modules and units are executed are generally the same as those in the above method embodiments, and will not be repeated here.

[0171] The robot constant force control and load self-identification system provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0172] Embodiment 3

[0173] The present invention also provides a computer, see Figure 4 , shown is a computer in the third embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored in the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, the above-mentioned robot constant force control and load self-identification method is implemented.

[0174] The memory 10 includes at least one type of medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 10 may be an internal storage unit of a computer, such as a hard disk of the computer. In other embodiments, the memory 10 may also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 10 may also include both an internal storage unit of a computer and an external storage device. The memory 10 may be used not only to store application software and various types of data installed in the computer, but also to temporarily store data that has been output or is to be output.

[0175] Among them, in some embodiments, the processor 20 can be an electronic control unit (Electronic Control Unit, abbreviated as ECU, also known as a vehicle computer), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 10 or process data, such as executing access restriction programs, etc.

[0176] It should be pointed out that Figure 4 The structure shown does not constitute a limitation on the computer. In other embodiments, the computer may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0177] The embodiment of the present invention further provides a medium on which a computer program is stored. When the computer program is executed by a processor, the robot constant force control and load self-identification method as described above is implemented.

[0178] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0179] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0180] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0181] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0182] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A robot constant force control and load self-identification method, It is characterized in that include: Step 1: Construct the robot's dynamic model and dynamic parameter identification rules; Step 2: Based on the dynamic model and the dynamic parameter identification rule, a theoretical data set of the robot at each time in the preset motion cycle is collected when the robot moves according to the preset excitation trajectory within the preset motion cycle; Step 3: respectively collecting no-load data sets and loaded data sets of the robot at various times in the preset motion cycle when the robot moves according to different excitation trajectories in the preset motion cycle in an no-load state and a loaded state; Step 4: Calculate the predicted data sets of the no-load data set and the loaded data set using a preset prediction model, and establish an optimization model based on the predicted data set, the theoretical data set, the no-load data set, and the loaded data set, wherein step 4 includes: Constructing a prediction model according to the forward and inverse Jacobian matrix, and calculating a corresponding prediction data set using the no-load data set and the load data set as input; Comparing the theoretical data set with the predicted data set, the no-load data set and the loaded data set to calculate corresponding deviation values, and establishing an optimization model with the deviation values ​​as optimization targets; Step 5: The dynamic model, the prediction model and the optimization model are integrated to obtain a final model, and the final model is used to complete the constant force control output and load adaptive identification of the robot. In step 5, the optimization model is established using the whale algorithm, and its expression is: ; In the formula, t Indicates the number of iterations of the current model. A , C represents the coefficient, represents the current best whale position vector, Represents the current whale position vector.

2. The robot constant force control and load self-identification method according to claim 1, It is characterized in that In the step 1, the expression of the dynamic model of the robot is: ; ; In the formula, is the joint driving torque, is the joint friction torque, is the joint dynamic torque, , , They are the angle, angular velocity, and angular acceleration of the joint, respectively. is the inertia term, are the Coriolis force and centrifugal force terms, is the gravity term, , , They are all functions of the robot's inertia parameters and joint motion parameters.

3. The robot constant force control and load self-identification method according to claim 2, It is characterized in that In the step 1, the dynamic parameter identification rule adopts a linear friction model: ; ; Where: is the viscous friction coefficient, in ; is the Coulomb friction constant, in units of ; is the Coulomb friction dynamic torque factor.

4. The robot constant force control and load self-identification method according to claim 1, It is characterized in that In the step 2, the preset excitation trajectory adopts a Fourier series trajectory: ; in, represents the joint rotation angle, represents the joint rotation constant, , represents the constant coefficient of the trajectory, is the fundamental frequency of the trajectory, represents the frequency of the lth order.

5. The robot constant force control and load self-identification method according to claim 1, It is characterized in that The coefficient A , C The calculation formula is: ; ; ; In the formula, , is a random number in (0, 1), The value of decreases linearly from 2 to 0. is the maximum number of iterations.

6. A robot constant force control and load self-identification system, applied to the robot constant force control and load self-identification method according to any one of claims 1 to 5, It is characterized in that The robot constant force control and load self-identification system includes: The first model building module is used to build a dynamic model of the robot and dynamic parameter identification rules; A first data calculation module, for collecting theoretical data sets of the robot at various times in the preset motion cycle when the robot moves according to the preset excitation trajectory within the preset motion cycle based on the dynamic model and the dynamic parameter identification rule; A second data calculation module is used to collect the no-load data set and the load data set of the robot at each time of the preset motion cycle when the robot moves according to different excitation trajectories within the preset motion cycle in an no-load state and a load state respectively; A second model building module is used to calculate a prediction data set of the no-load data set and the load data set using a preset prediction model, and establish an optimization model according to the prediction data set, the theoretical data set, the no-load data set and the load data set, wherein the second model building module includes: A data calculation unit, used for constructing a prediction model according to the forward and inverse Jacobian matrix, and calculating a corresponding prediction data set using the no-load data set and the load data set as input; A model building unit, used for comparing the theoretical data set with the predicted data set, the no-load data set and the loaded data set to calculate a corresponding deviation value, and establishing an optimization model with the deviation value as an optimization target; The processing module is used to fuse the dynamic model, the prediction model and the optimization model to obtain a final model, and use the final model to complete the constant force control output and load adaptive identification of the robot.

7. A medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the robot constant force control and load self-identification method as described in any one of claims 1 to 5 is implemented.

8. A computer comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the robot constant force control and load self-identification method as described in any one of claims 1 to 5 is implemented.