Nothing Special   »   [go: up one dir, main page]

CN117532623B - A method for estimating the external torque of a robotic arm - Google Patents

A method for estimating the external torque of a robotic arm Download PDF

Info

Publication number
CN117532623B
CN117532623B CN202410033238.8A CN202410033238A CN117532623B CN 117532623 B CN117532623 B CN 117532623B CN 202410033238 A CN202410033238 A CN 202410033238A CN 117532623 B CN117532623 B CN 117532623B
Authority
CN
China
Prior art keywords
torque
external
observer
generalized momentum
mechanical arm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410033238.8A
Other languages
Chinese (zh)
Other versions
CN117532623A (en
Inventor
任善荣
冒建亮
周之剑
李俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Dingzhen Automation Science & Technology Co ltd
Southeast University
Original Assignee
Nanjing Dingzhen Automation Science & Technology Co ltd
Southeast University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Dingzhen Automation Science & Technology Co ltd, Southeast University filed Critical Nanjing Dingzhen Automation Science & Technology Co ltd
Priority to CN202410033238.8A priority Critical patent/CN117532623B/en
Publication of CN117532623A publication Critical patent/CN117532623A/en
Application granted granted Critical
Publication of CN117532623B publication Critical patent/CN117532623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1602Programme controls characterised by the control system, structure, architecture
    • B25J9/1605Simulation of manipulator lay-out, design, modelling of manipulator
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1628Programme controls characterised by the control loop
    • B25J9/163Programme controls characterised by the control loop learning, adaptive, model based, rule based expert control
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1628Programme controls characterised by the control loop
    • B25J9/1633Programme controls characterised by the control loop compliant, force, torque control, e.g. combined with position control

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Feedback Control In General (AREA)

Abstract

The invention provides a method for estimating the external moment of a mechanical arm, which comprises the following steps: establishing a mechanical arm dynamics model by adopting a Newton-Euler method; identifying the mechanical arm dynamic model by adopting an integral parameter identification method; defining generalized momentum of the mechanical arm, deriving the generalized momentum, and combining the identified dynamic model and a dynamic characteristic formula to obtain a discretization model of the generalized momentum system; constructing an external moment observer based on the generalized momentum system discretization model; according to the change of the external torque observation error, a self-adaptive fuzzy gain strategy is designed, and the dynamic adjustment of gain parameters in an external torque observer is carried out to obtain a fuzzy self-adaptive generalized momentum discrete observer; and calculating and obtaining an external moment estimated value of the mechanical arm based on the fuzzy self-adaptive generalized momentum discrete observer. Compared with the traditional generalized momentum observer, the invention has higher external moment observation precision and good effect when being used for man-machine interaction applications such as dragging teaching and the like.

Description

Mechanical arm external torque estimation method
Technical Field
The invention relates to the technical field of mechanical arms, in particular to a mechanical arm external torque estimation method.
Background
With the continuous application and development of robots in human society, the situation that people and robots are required to interact with each other to achieve a target task is unavoidable in the aspect of cooperation of the people and robots. Therefore, interactive control is widely used in unstructured production, such as industrial sanding, collision detection, drag teaching, and the like. The mechanical arm is in contact with the external environment in the scenes, so that the effective measurement or estimation of the external moment of the mechanical arm is of great importance.
Typically, the measurement of interaction force can be achieved by an end six-dimensional force/moment sensor or a joint moment sensor, which is also a type of external force measurement method commonly used at present. However, the price of force/moment sensors is typically high, providing each robotic arm with such a sensor adds significantly to the cost and reliability. Unlike the method based on force/moment sensors as interaction force measurement, sensorless external moment estimation based on mechanical arm dynamics model and observer design provides a solution for this. If the interaction force between the mechanical arm and the external environment can be estimated through the torque observer with higher precision, the data acquisition is simple and feasible, the equipment cost can be saved, and the implementation is easy.
The above related work has been studied extensively in recent years, as in document HADDADIN S, DE LUCA A, ALBU-SCH Ä FFER A, robot protocols: A survey on detection, isolation, and identification [ J ]. IEEE Transactions on Robotics, 2017, 6: 1292-1312 uses motor torque, position, speed and acceleration information provided by the robot controller to make an estimate of the external torque. This calculation method is easy to implement, but since in actual engineering acceleration information is typically obtained by a second differentiation of the position signal, this will lead to an amplification of the measurement noise. For this purpose, reference NA J, JING B, HUANG Y, et al Unknown system dynamics estimator for motion control of nonlinear robotic systems [ J ]. IEEE Transactions on Industrial Electronics, 2019, 67 (5): 3850-3859, by designing filters to reduce the effect of noise on the torque estimation effect, this also indirectly leads to delay problems in the estimated signal, which is detrimental to high dynamic response situations for force control. In order to avoid the limitation caused by directly using the acceleration information, many students further research observation methods based on a disturbance observer, an extended state observer, a sliding mode observer, a Kalman filter and the like so as to improve the estimation effect of the external moment of the mechanical arm. However, such methods have problems associated with errors in force estimation and robot pose configuration, and in addition, their fixed observer gain has certain limitations on the observation effect of external forces under different conditions.
In summary, the invention designs a generalized momentum observer based on a self-adaptive strategy, and realizes the external moment estimation of the mechanical arm in an uncertainty environment so as to solve the defects of the existing external moment estimation method.
Disclosure of Invention
In view of the above problems, the invention provides a mechanical arm external moment estimation method, which has higher external moment observation precision compared with the traditional generalized momentum observer and has good effect when being used for man-machine interaction applications such as dragging teaching and the like.
In order to solve the technical problems, the invention adopts the following technical scheme: a mechanical arm external torque estimation method comprises the following steps: step S1, a mechanical arm dynamics model is established by adopting a Newton-Euler method, wherein the dynamics model is expressed as a group of coupling differential equations in a nonlinear matrix form; s2, identifying the mechanical arm dynamic model by adopting an overall parameter identification method, namely carrying out parameter linearization treatment on the coupling differential equation; step S3, defining generalized momentum of the mechanical arm, deriving the generalized momentum, and combining the identified dynamic model and a dynamic characteristic formula to obtain a generalized momentum system discretization model; s4, constructing an external moment observer based on the generalized momentum system discretization model; s5, according to the change of the external torque observation error, a self-adaptive fuzzy gain strategy is designed, and dynamic adjustment of gain parameters in an external torque observer is carried out, so that a fuzzy self-adaptive generalized momentum discrete observer is obtained; and S6, calculating and obtaining an external moment estimated value of the mechanical arm based on the fuzzy self-adaptive generalized momentum discrete observer.
Preferably, in step S1, the equation of the kinetic model is:
in the above-mentioned method, the step of,Nthe number of joints of the mechanical arm) respectively represent joint position information, speed information and acceleration information of the mechanical arm;/>Representing a symmetric positive definite inertia matrix; />Representing the coriolis force and centrifugal force matrices; />Representing a gravity matrix;frepresents friction, which includes coulomb friction and viscous friction; />Respectively represent the driving moment and the external moment of the joint motor.
As a preferred solution, the step S2 specifically includes: the coupled differential equation is subjected to parameter linearization processing to obtain an equationWherein μ is a column vector containing standard kinetic parameters, H is a regression matrix,>the torque is driven by a joint motor; the partial linear irrelevant columns in the regression matrix H are recombined and arranged to obtain an equationWherein->For the subset consisting of the maximally linearly independent columns of the regression matrix,/for the subset consisting of the maximally linearly independent columns of the regression>Is a kinetic minimum parameter set; by giving an optimized excitation track of a mechanical arm, acquiring joint related parameters on line during the operation of the mechanical arm, and carrying out +_ in an off-line state by using a least square method>Is a single-chip microcomputer.
As a preferenceIn an embodiment, the step S3 specifically includes: the generalized momentum of a mechanical arm is defined asThe generalized momentum p is +.>
The generalized momentum system model equation for the continuous time domain is as follows:
further, define auxiliary variablesSubstituting the generalized momentum system model formula to obtain a generalized momentum system discretization model, wherein the formula is as follows:
in the method, in the process of the invention,and->Respectively represent generalized momentum p and external moment +.>At the position ofkAnd the sampling value of time, and h is the sampling period.
Preferably, in step S4, the formula of the external moment observer is as follows:
in the method, in the process of the invention,and->Respectively->And->At the position ofkObservation of time of day->Gain parameter for generalized momentum observation error>A symmetric matrix with each element larger than 0; definition of the definitionEstimating an error for the external moment;
the observer error dynamics equation satisfies:
wherein I is an identity matrix, and the proper choice is selectedThe observer error dynamics equation is globally asymptotically convergent and the gain parameter +.>And->Two parameters affecting the observer output overshoot and buffeting, respectively.
Preferably, in step S5, the dynamically adjusting the gain parameter in the external torque observer includes: obtaining expert experience and compiling the expert experience into fuzzy logic rules; according to the fuzzy logic rule, a Sugeno type fuzzy inference algorithm is selected to construct a two-dimensional fuzzy logic control system; will observe errorsAnd the amount of change in the observation error +.>Respectively used as fuzzy input of a two-dimensional fuzzy logic control system, obtaining fuzzy output after reasoning, and adding the fuzzy output to gain parameters +.>And->Is a kind of medium.
The method for estimating the external moment of the mechanical arm further comprises the step of verifying the effectiveness of the method for estimating the external moment of the mechanical arm, and specifically comprises the following steps: constructing an industrial robot algorithm development platform; based on the industrial robot algorithm development platform, acquiring moment information acquired by a servo driving unit, and calibrating a torque correction coefficient by using a measurement true value of a moment sensor; acquiring and recording the position and the driving moment of the mechanical arm on line in real time, and identifying a minimum parameter set of a dynamic model by adopting a least square method in an off-line state to obtain a model identification result; carrying out a section of preset track task by controlling the mechanical arm load, and calculating to obtain external torque estimation results of various algorithms; and (3) evaluating the effectiveness of the external moment estimation result by combining various performance indexes, wherein the performance indexes comprise a maximum absolute value error, a root mean square error and deviation.
As a preferable scheme, the industrial robot algorithm development platform comprises a robot body, a servo driving unit and a motion control unit; the robot body is a six-degree-of-freedom serial mechanical arm, a six-dimensional force/moment sensor is arranged at the tail end of the robot body, and a vertical grip is arranged at the tail end of the sensor, so that a user can conveniently perform man-machine interaction with the mechanical arm; the servo driving unit is used for realizing control of the permanent magnet synchronous motor of the mechanical arm joint and has different control modes aiming at the torque, the speed and the position of the joint motor; the motion control unit is realized by adopting a multiple-function controller, and is communicated with the servo driving unit through an industrial Ethernet EtherCAT bus, so that microsecond real-time control and operation of a plurality of servos can be realized.
Preferably, the calibrating the torque correction coefficient by using the measured true value of the torque sensor includes: firstly, controlling a mechanical arm to run on load for a section of preset low-speed track, synchronously acquiring an external force moment value calculated in real time by a mechanical arm dynamics model and a true value acquired by a force/moment sensor during running, and mapping the true value to each joint through Jacobian matrix operation, so that the calibration of a torque correction coefficient k is realized.
Preferably, the method further comprises: based on the fuzzy self-adaptive generalized momentum discrete observer, carrying out dragging teaching verification on the mechanical arm under the condition of a weak/moment sensor by adopting an admittance control algorithm;
the admittance control algorithm has the following formula:
in the method, in the process of the invention,wherein->The target pose, the speed and the acceleration of the given mechanical arm are respectively; />The current pose, the current speed and the current acceleration of the mechanical arm are respectively; />Wherein->An outer moment estimated for the algorithm, +.>Then it is the transpose of the mechanical arm jacobian; />Respectively, mass, damping and rigidityA degree matrix parameter.
Compared with the prior art, the invention has the beneficial effects that: modeling mechanical arm dynamics by using a Newton-Euler method, identifying a minimum parameter set to obtain an accurate dynamic model of the mechanical arm, then establishing external torque estimation based on robot generalized momentum and a discrete observer based on the dynamic model, and designing observer gain with self-adaptive adjustment capacity by using a fuzzy logic rule to adapt to different interaction environments; the result shows that the external moment estimation method has higher external moment observation precision compared with the traditional generalized momentum observer, and has good effect when being used for man-machine interaction applications such as dragging teaching and the like.
Drawings
The disclosure of the present invention is described with reference to the accompanying drawings. It is to be understood that the drawings are designed solely for the purposes of illustration and not as a definition of the limits of the invention. In the drawings, like reference numerals are used to refer to like parts. Wherein:
FIG. 1 is a flowchart of a method for estimating the moment of an external force of a mechanical arm according to an embodiment of the present invention;
FIG. 2 is a graph of the blur input E, CE and output in the adaptive blur gain design according to an embodiment of the present invention;
FIG. 3 is a graph showing the result of an identification experiment in the calibration of a torque correction coefficient according to an embodiment of the present invention;
FIG. 4 is a diagram of a three-dimensional motion trajectory of a robotic arm in analysis of an out-of-moment observation in accordance with an embodiment of the present invention;
FIG. 5 is a graph showing the results of the implementation of various algorithms in the experiments of the present invention;
fig. 6 is a graph of contact force in x-direction and y-direction during a drag operation of a robot arm according to an embodiment of the present invention.
Detailed Description
It is to be understood that, according to the technical solution of the present invention, those skilled in the art may propose various alternative structural modes and implementation modes without changing the true spirit of the present invention. Accordingly, the following detailed description and drawings are merely illustrative of the invention and are not intended to be exhaustive or to limit the invention to the precise form disclosed.
An embodiment according to the invention is shown in connection with fig. 1. A mechanical arm external torque estimation method comprises the following steps:
and S1, establishing a mechanical arm dynamics model by adopting a Newton-Euler method, wherein the dynamics model is expressed as a set of coupling differential equations in a nonlinear matrix form.
The mechanical arm dynamics equation can be used to determine the force versus motion relationship, i.e., calculate mechanical arm motion such as position, velocity, acceleration information, etc., from given moment information. Generally, the mechanical arm dynamics system has serious nonlinearity and strong coupling, and the equation of the dynamics model is as follows:
(1);
in the above-mentioned method, the step of,Nthe number of joints of the mechanical arm) respectively represents joint position information, speed information and acceleration information of the mechanical arm; />Representing a symmetric positive definite inertia matrix; />Representing the coriolis force and centrifugal force matrices; />Representing a gravity matrix;frepresents friction, which includes coulomb friction and viscous friction; />Respectively represent the driving moment and the external moment of the joint motor.
The friction model considered in the present invention is expressed as:
(2);
in the method, in the process of the invention,represents the coefficient of friction>And->Respectively, the coulomb friction coefficient and the friction bias term.
In the mechanical arm dynamic model type (1),and->The following kinetics exist:
(3);
wherein,is->Is a transpose of (a).
And S2, identifying the mechanical arm dynamic model by adopting an integral parameter identification method, namely carrying out parameter linearization treatment on the coupling differential equation.
Since there is always a certain error between the nominal kinetic model parameters and the actual model, this will result in a non-zero result of the actual moment estimate due to model errors even if the robot arm is not acted upon by external forces. To reduce the effect of model errors on observations, it is necessary to obtain a more accurate kinetic model for external moment estimation. Because the mechanical arm has unknown disturbance in the normal operation process and the model has strong nonlinear characteristics, the mechanical arm dynamics adopts an integral parameter identification method, namely, the dynamics equation (1) is subjected to parameter linearization treatment, and the mechanical arm dynamics is expressed in the form of the following parameter linearization separation:
(4);
wherein μ is a column vector containing standard kinetic parameters, and consists of parameters of each link of the mechanical arm, and taking each link as an example, the column vector contains 15 parameters: inertial parametersJoint quality->First order moment of mass->Motor moment of inertia->Coefficient of friction->、/>The method comprises the steps of carrying out a first treatment on the surface of the H is a regression matrix, which is related to only the arm joint position, velocity and acceleration information. It is noted that the regression matrix H is a non-full order matrix, including zero columns and linear correlation columns, so that the full parameter set cannot be identified. Thus, by reorganizing and sorting the partial linear independent columns in H, it is possible to obtain:
(5);
in the method, in the process of the invention,a subset of the maximum linear independent columns of the regression matrix; />Is a kinetic minimum parameter set.
For identification purposesBy giving an optimized excitation track of the mechanical arm, information of relevant parameters such as joint motor torque, joint angle, joint angular speed and the like is obtained online during the operation of the mechanical arm, and the mechanical arm is combined with the method (5) to perform the method (I) by using a least square method in an offline state>Is a single-chip microcomputer. Further, by combining the dynamics model characteristics, the dynamics parameter matrix can be obtainedRespectively extracting the external force moment of the mechanical arm and providing a model foundation for the estimation of the external force moment of the mechanical arm.
And step S3, defining and deriving the generalized momentum of the mechanical arm, and combining the identified dynamic model and dynamic characteristic formula to obtain a generalized momentum system model and a generalized momentum system discretization model in a continuous time domain.
The generalized momentum of a mechanical arm is defined as (6);
The generalized momentum p is derived from time to time by the formula
(7);
Combining the dynamics model (1) and the dynamics characteristic (3) and substituting the dynamics model into the model (7) to obtain a generalized momentum system model formula under a continuous time domain, wherein the generalized momentum system model formula is as follows:
(8);
from equation (8), it can be seen that the mechanical arm dynamics equation after the generalized momentum is introduced will not introduce acceleration information, so as to avoid noise interference caused by the secondary differentiation of the mechanical arm joint position information.
Further, define auxiliary variablesSubstituting into the model (8) to obtain a discretization model of the generalized momentum system, wherein the formula is as follows:
(9);
in the method, in the process of the invention,and->Respectively represent generalized momentum p and external moment +.>At the position ofkAnd the sampling value of time, and h is the sampling period.
And S4, constructing an external moment observer based on the generalized momentum system discretization model.
The formula of the external moment observer is as follows:
(10);
in the method, in the process of the invention,and->Respectively->And->At the position ofkObservation of time of day->For generalized momentum viewError measurement, gain parameter->A symmetric matrix with each element larger than 0; definition of the definitionEstimating an error for the external moment;
combining equation (9) and equation (10), the observer error dynamics equation satisfies:
(11);
wherein I is an identity matrix, and the proper choice is selectedThe observer error dynamics equation is globally asymptotically convergent and the gain parameter +.>And->Two parameters affecting the observer output overshoot and buffeting, respectively.
And S5, designing a self-adaptive fuzzy gain strategy according to the change of the external moment observation error, and dynamically adjusting gain parameters in the external moment observer to obtain a fuzzy self-adaptive generalized momentum discrete observer.
Because uncertainty exists when the mechanical arm interacts with an unknown environment, a relatively conservative fixed gain is generally selected for ensuring the robustness of external torque observation, which leads to the problem of buffeting when the system enters a sliding mode. In addition, a fixed gain is ideal for constant external moment estimation, but there are limitations to time-varying scenarios where the robot arm interacts frequently with the environment. Therefore, according to the change of the external torque observation error, the self-adaptive fuzzy gain strategy is designed to realize the dynamic adjustment of gain parameters and the external torque observer, and more accurate external torque estimation is realized in the interaction of the mechanical arm and the uncertain environment.
Specifically, in step S5, the dynamic adjustment of the gain parameter in the external torque observer is performed, including:
(1) Expert experience is obtained and is compiled into fuzzy logic rules.
(2) And according to the fuzzy logic rule, selecting Sugeno type fuzzy inference algorithm to construct a two-dimensional fuzzy logic control system.
(3) Will observe errorsAnd the amount of change in the observation error +.>Respectively used as fuzzy input of a two-dimensional fuzzy logic control system, obtaining fuzzy output after reasoning, and adding the fuzzy output to gain parameters +.>Andis a kind of medium.
The specific implementation method of the fuzzy logic control comprises the following steps:
in the invention, sugeno type fuzzy inference algorithm is selected as a fuzzy inference model, and a fuzzy logic control tool box in MATLAB is adopted for design, and the specific design method is shown in the use description of the MATLAB tool box. The fuzzy inputs E, CE of the two-dimensional fuzzy logic control system are respectively selected as the observation errorsAnd->The output U is designed as a gain parameterAnd->The method comprises the steps of carrying out a first treatment on the surface of the In the experiment, fuzzy input in Sugeno type fuzzy reasoning algorithm is determined according to actual working conditionsThe input ambiguity set is { NB (negative big), NM (negative small), Z (zero), PM (positive small), PB (positive big) }, and the output ambiguity set is { PS (negative big), S (negative small), M (zero), B (positive small), PB (positive big) }. In the embodiment of the present invention, the curved surface diagram of fuzzy input E, CE and output is shown in fig. 2, wherein the gain parameters and the fuzzy logic rule design are consistent, as shown in table 1:
TABLE 1 fuzzy logic rules
It can be seen that when the input amount E, CE increases, the fuzzy logic rule can automatically calculate to obtain a higher gain, so that the external torque estimated value can be ensured to more quickly follow the change of the true value; otherwise, the gain is reduced in a self-adaptive manner, so that buffeting is reduced, and the observation precision of external torque is ensured.
And S6, calculating and obtaining an external moment estimated value of the mechanical arm based on the fuzzy self-adaptive generalized momentum discrete observer.
In order to verify the effectiveness of the mechanical arm external torque observation method provided by the invention, an industrial robot algorithm development platform is constructed for experimental verification. The method specifically comprises the following steps:
(1) And constructing an industrial robot algorithm development platform.
Specifically, the industrial robot algorithm development platform comprises a robot body, a servo driving unit and a motion control unit; the robot body is a six-degree-of-freedom serial mechanical arm, the tail end of the robot body is provided with a six-dimensional force/torque sensor, and the tail end of the sensor is provided with a vertical grip, so that the user can conveniently perform man-machine interaction with the mechanical arm; the servo driving unit is used for realizing control of the permanent magnet synchronous motor of the mechanical arm joint and has different control modes aiming at the torque, the speed and the position of the joint motor; the motion control unit is realized by adopting a multiple-function controller, and is communicated with the servo driving unit through an industrial Ethernet EtherCAT bus, so that microsecond real-time control and operation on a plurality of servos can be realized.
The algorithm development in the experiment is realized by adopting a model-based design method, and the method comprises the following steps: and (3) carrying out algorithm development in a MATLAB/Simulink environment, generating a C++ module which can be read and imported by a ploidy controller through a TE1400 plug-in, and finally realizing algorithm verification in TwainCAT software.
(2) Based on an industrial robot algorithm development platform, acquiring moment information acquired by a servo driving unit, and calibrating a torque correction coefficient by using a measurement true value of a moment sensor;
because the torque information collected by the servo driver is calculated according to the motor current and the torque coefficient set in the driver, an unknown torque correction coefficient k exists between the calculated result and the real torque value. In order to achieve a moment calculation closer to the true value, the torque correction coefficient is calibrated experimentally by means of measured true values of six-dimensional force/moment sensors mounted at the end of the arm.
The following approximate relationship exists between the motor side final output torque and the motor internal current:
(12)
in the method, in the process of the invention,for the final torque output on the motor side, +.>The motor current is K, the torque coefficient is K, and the reduction ratio of the mechanical arm is r. The nominal torque coefficient and reduction ratio of the robot arm are typically provided by the robot arm manufacturer.
The calibration method comprises the following steps: firstly, controlling a mechanical arm to run on load for a section of preset low-speed track, synchronously acquiring external force moment value calculated in real time by a mechanical arm dynamics model and true value acquired by a force/moment sensor during running, and mapping the true value to each joint through Jacobian matrix operation, thereby realizing torque correction coefficientkIs defined by the calibration of (a).
The torque coefficient, reduction ratio and calculated torque correction coefficient of the mechanical arm are shown in table 2:
table 2 torque coefficient, reduction ratio, and torque correction coefficient
(3) And acquiring and recording the position and the driving moment of the mechanical arm on line in real time, and identifying the minimum parameter set of the dynamic model by adopting a least square method in an off-line state to obtain a model identification result.
The experimental result is shown in fig. 3, and the six graphs in fig. 3 respectively correspond to moment values of six joints of the mechanical arm, wherein a solid line represents real torque acquired in the process of executing an excitation track, and a dotted line corresponds to calculated torque of a dynamics model identified by the experiment. From the error curve (dash-dot line), it can be seen that the error of the dynamic model fluctuates in a very small interval, and meets the experimental requirements.
(4) And carrying out a section of preset track task by controlling the mechanical arm load, and calculating to obtain external torque estimation results of various algorithms.
In order to analyze the observation effect of the external moment of the mechanical arm in the working process, a section of preset track task is executed in an experiment by controlling the loading of the mechanical arm, and the three-dimensional running track of the tail end of the mechanical arm in the space is shown in fig. 4.
In order to verify the superiority of the observation method provided by the invention, the external torque estimation results of three algorithms are compared in experiments: a generalized momentum observer GMO, a fixed gain generalized momentum discrete observer GSTO and a fuzzy self-adaptive generalized momentum discrete observer AGSTO; the algorithm parameters are designed as follows:
GMO:=diag{25,25,25,25,25,25};GSTO:/>=diag{54,54,54,54,54,54},/>=diag{80,80,80,80,80,80},/>=diag{80,80,80,80,80,80};AGSTO:/>consistent with GSTO parameters, +.>、/>And calculating according to the fuzzy logic control module.
The implementation results of the algorithms in the experiment are shown in fig. 5 (based on the comparison between the estimates of the external torque of the GMO (broken line), the GSTO (dot-dash line) and the AGSTO (dot-line), and the experimental results of the 1 st to 6 th joints of the mechanical arm are respectively corresponding to the (a) to (f) of fig. 5, wherein the solid line represents the measurement truth value), and compared with the other two algorithms, the designed AGSTO has higher observation precision, is closer to the measurement truth value of the six-dimensional force/torque sensor, and can better reflect the change condition of the external torque. Notably, the small chatter of the observed values can be found in the graph, because the proposed AGSTO can adaptively adjust the gain of the observer, but in order to ensure that the system still has certain robustness in steady state, the gain is not set small enough, so that there is certain chatter; at the same time, noise present in the experiment is also a factor.
(5) And (3) evaluating the effectiveness of the external torque estimation result by combining various performance indexes, wherein the performance indexes comprise a maximum absolute value error, a root mean square error and deviation.
To further quantitatively evaluate the effectiveness of the algorithm, the following algorithm performance index was calculated: maximum absolute value error (MAE), root Mean Square Error (RMSE), and OFFSET (OFFSET), wherein the maximum absolute value error is the absolute value of the maximum error of the measured value and the true value, the root mean square error is the root of the square of the error of the measured value and the true value, and the OFFSET is the absolute value of the average of the error of the measured value and the true value. Table 3 shows the determination of several algorithmsAs a result of the quantitative performance index,to->Respectively represent the external moment of the first joint to the sixth joint of the mechanical arm. Obviously, the proposed observation method is closer to the measurement truth. However, it should be noted that although there is a certain improvement over the conventional algorithm, the algorithm proposed by the present invention still has a certain estimation error due to the unmodeled dynamics and the noise, but the result is acceptable for applications with low force control accuracy requirements, such as drag teaching.
TABLE 3 comparison of Performance indicators for different external force moment estimation methods
Based on an AGSTO (fuzzy self-adaptive generalized momentum discrete observer) algorithm designed by the invention, an admittance control algorithm is adopted to carry out dragging teaching verification on the mechanical arm under the condition of a weak/moment sensor. The man-machine interaction scene is realized by adopting an admittance control algorithm, wherein the admittance control algorithm is as follows: the formula of the admittance control algorithm is as follows:
in the method, in the process of the invention,wherein->The target pose, the speed and the acceleration of the given mechanical arm are respectively; />The current pose, the current speed and the current acceleration of the mechanical arm are respectively; />Wherein->An outer moment estimated for the algorithm, +.>Then it is the transpose of the mechanical arm jacobian; />Respectively mass, damping and stiffness matrix parameters.
During the dragging operation of the mechanical arm, the contact force curves along the x-direction and the y-direction are shown in fig. 6 (a) and (b), respectively, where (a) and (b) correspond to the traction forces in the x-direction and the y-direction of the cartesian coordinate system, respectively. The broken line is the true value of the traction force in the x and y directions of the Cartesian coordinate system measured by the sensor, the solid line is the calculated value of the AGSTO observation result according to the invention, in the figure, the measurement result of the six-dimensional force/moment sensor is taken as the true value, and the result of the proposed external force moment estimation method can be seen to be effective.
Conclusion: the invention provides an external torque estimation method based on a fuzzy self-adaptive generalized momentum discrete observer based on a robot generalized momentum and discrete observer design method, and combines a fuzzy logic control idea, and successfully performs a comparison experiment on a six-axis industrial robot, and realizes dragging teaching of a mechanical arm under the condition of a weak/torque sensor; experimental results show that the fuzzy self-adaptive generalized momentum discrete observer has higher external torque observation precision compared with the traditional generalized momentum observer, and has good effect when being used for man-machine interaction applications such as dragging teaching and the like.
In summary, the beneficial effects of the invention include: modeling mechanical arm dynamics by using a Newton-Euler method, identifying a minimum parameter set to obtain an accurate dynamic model of the mechanical arm, then establishing external torque estimation based on robot generalized momentum and a discrete observer based on the dynamic model, and designing observer gain with self-adaptive adjustment capacity by using a fuzzy logic rule to adapt to different interaction environments; the result shows that the external moment estimation method has higher external moment observation precision compared with the traditional generalized momentum observer, and has good effect when being used for man-machine interaction applications such as dragging teaching and the like.
It should be appreciated that the integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The technical scope of the present invention is not limited to the above description, and those skilled in the art may make various changes and modifications to the above-described embodiments without departing from the technical spirit of the present invention, and these changes and modifications should be included in the scope of the present invention.

Claims (7)

1.一种机械臂外力矩估计方法,其特征在于,包括:1. A method for estimating external torque of a robotic arm, which is characterized by including: 步骤S1,采用牛顿-欧拉法建立机械臂动力学模型,所述动力学模型表示为一组非线性矩阵形式的耦合微分方程;Step S1: Use the Newton-Euler method to establish a dynamic model of the robotic arm. The dynamic model is expressed as a set of coupled differential equations in the form of nonlinear matrices; 步骤S2,采用整体参数辨识法对所述机械臂动力学模型进行辨识,即对所述耦合微分方程作参数线性化处理;Step S2: Use the overall parameter identification method to identify the mechanical arm dynamic model, that is, perform parameter linearization processing on the coupled differential equation; 步骤S3,定义机械臂的广义动量并求导,结合辨识后的动力学模型和动力学特性公式,获得广义动量系统离散化模型;Step S3: Define the generalized momentum of the manipulator and derive its derivative. Combined with the identified dynamic model and dynamic characteristic formula, a discretized model of the generalized momentum system is obtained; 步骤S4,基于所述广义动量系统离散化模型,构造外力矩观测器;Step S4, construct an external moment observer based on the generalized momentum system discretization model; 步骤S5,根据外力矩观测误差的变化,设计自适应模糊增益策略,进行外力矩观测器中增益参数的动态调节,获得模糊自适应广义动量离散观测器;Step S5, designing an adaptive fuzzy gain strategy according to the change of the external torque observation error, dynamically adjusting the gain parameters in the external torque observer, and obtaining a fuzzy adaptive generalized momentum discrete observer; 步骤S6,基于所述模糊自适应广义动量离散观测器,计算获得机械臂外力矩估计值;Step S6, calculating and obtaining an estimated value of the external torque of the manipulator based on the fuzzy adaptive generalized momentum discrete observer; 其中,所述步骤S3具体包括:将机械臂的广义动量定义为,广义动量p对时间进行求导后的公式为/>;则连续时间域下的广义动量系统模型公式如下:Among them, the step S3 specifically includes: defining the generalized momentum of the robotic arm as , the formula after derivation of generalized momentum p with respect to time is/> ; Then the generalized momentum system model formula in the continuous time domain is as follows: ; 上式中,分别表示机械臂的关节位置信息、速度信息和加速度信息,N是机械臂关节数;/>表示对称正定惯性矩阵;/>表示科氏力和离心力矩阵;表示重力矩阵;f表示摩擦力,其包含库仑摩擦和黏性摩擦;/>分别表示关节电机驱动力矩和外部力矩;In the above formula, Respectively represent the joint position information, velocity information and acceleration information of the robot arm, and N is the number of joints of the robot arm; /> represents the symmetric positive definite inertia matrix; /> represents the Coriolis and centrifugal force matrices; represents the gravity matrix; f represents the friction force, which includes Coulomb friction and viscous friction; /> represent the joint motor driving torque and external torque respectively; 进一步,定义辅助变量,代入广义动量系统模型公式,获得广义动量系统离散化模型,其公式如下:Further, define auxiliary variables , substitute into the generalized momentum system model formula, and obtain the discretized model of the generalized momentum system, the formula is as follows: ; 式中,和/>分别表示广义动量p和外部力矩/>k时刻的采样值,h为采样周期;In the formula, and/> Represents the generalized momentum p and external moment/> The sampling value at time k , h is the sampling period; 在步骤S4中,所述外力矩观测器的公式如下:In step S4, the formula of the external moment observer is as follows: ; 式中,和/>分别为/>和/>k时刻的观测值,/>为广义动量观测误差,增益参数/>为各元素大于0的对称矩阵,/>;定义/>为外力矩估计误差;In the formula, and/> respectively/> and/> The observation value at time k ,/> is the generalized momentum observation error, gain parameter/> is a symmetric matrix with each element greater than 0,/> ;Definition/> is the external moment estimation error; 观测器误差动力学方程满足:The observer error dynamics equation satisfies: ; 式中,I为单位矩阵,当选取合适的,观测器误差动力学方程是全局渐近收敛的,且增益参数/>和/>分别为影响观测器输出超调和抖振的两个参数;In the formula, I is the unit matrix. When a suitable , the observer error dynamics equation is globally asymptotically convergent, and the gain parameter/> and/> are two parameters that affect the overshoot and jitter of the observer output; 在步骤S5中,所述进行外力矩观测器中增益参数的动态调节,包括:获取专家经验,将其编成模糊逻辑规则;根据所述模糊逻辑规则,选用Sugeno型模糊推理算法构建二维模糊逻辑控制系统;将观测误差和观测误差的变化量/>分别作为二维模糊逻辑控制系统的模糊输入,经过推理后获得模糊输出,并将所述模糊输出添加到增益参数/>和/>中。In step S5, the dynamic adjustment of the gain parameters in the external torque observer includes: obtaining expert experience and compiling it into fuzzy logic rules; according to the fuzzy logic rules, selecting a Sugeno type fuzzy inference algorithm to construct a two-dimensional fuzzy Logic control system; will observe error and the change in observation error/> As the fuzzy input of the two-dimensional fuzzy logic control system respectively, the fuzzy output is obtained after reasoning, and the fuzzy output is added to the gain parameter/> and/> middle. 2.根据权利要求1所述的机械臂外力矩估计方法,其特征在于,在步骤S1中,所述动力学模型的方程式为:2. The method for estimating the external torque of the manipulator according to claim 1, characterized in that, in step S1, the equation of the dynamic model is: . 3.根据权利要求1所述的机械臂外力矩估计方法,其特征在于,所述步骤S2具体包括:3. The method for estimating the external torque of the robotic arm according to claim 1, characterized in that the step S2 specifically includes: 对所述耦合微分方程作参数线性化处理后,获得方程,式中,μ为包含标准动力学参数的列向量,H为回归矩阵;After linearizing the parameters of the coupled differential equation, the equation is obtained , where μ is a column vector containing standard kinetic parameters, and H is the regression matrix; 对回归矩阵H中部分线性无关列进行重组并整理后,获得方程,式中,/>为回归矩阵的最大线性无关列组成的子集,/>为动力学最小参数集;After reorganizing and sorting some linearly independent columns in the regression matrix H, the equation is obtained , in the formula,/> is the subset consisting of the largest linearly independent columns of the regression matrix,/> is the minimum parameter set of dynamics; 通过给定机械臂一段优化的激励轨迹,在其运行期间在线获取关节相关参数,在离线状态下利用最小二乘法进行的辨识。By giving an optimized excitation trajectory of the manipulator, joint-related parameters are obtained online during its operation, and the least squares method is used offline. identification. 4.根据权利要求1所述的机械臂外力矩估计方法,其特征在于,还包括对机械臂外力矩估计方法的有效性进行验证,具体包括如下步骤:4. The method for estimating the external torque of the robotic arm according to claim 1, further comprising verifying the effectiveness of the method for estimating the external torque of the robotic arm, specifically including the following steps: 构建工业机器人算法开发平台;Build an industrial robot algorithm development platform; 基于所述工业机器人算法开发平台,获取伺服驱动单元采集的力矩信息,并利用力矩传感器的测量真值标定转矩修正系数;Based on the industrial robot algorithm development platform, the torque information collected by the servo drive unit is obtained, and the torque correction coefficient is calibrated using the measured true value of the torque sensor; 在线实时采集并记录机械臂位置和驱动力矩,在离线状态下采用最小二乘法进行动力学模型最小参数集的辨识,获得模型辨识结果;Collect and record the position and driving torque of the robotic arm in real time online, and use the least squares method offline to identify the minimum parameter set of the dynamic model to obtain the model identification results; 通过控制机械臂带载执行一段预定的轨迹任务,计算获得外力矩估计结果;By controlling the robot arm to carry out a predetermined trajectory task, the external torque estimation result is calculated; 结合性能指标,对所述外力矩估计结果的有效性进行评估,所述性能指标包括最大绝对值误差、均方根误差和偏差。The effectiveness of the external moment estimation results is evaluated in combination with performance indicators, which include maximum absolute value error, root mean square error and deviation. 5.根据权利要求4所述的机械臂外力矩估计方法,其特征在于,所述工业机器人算法开发平台包括机器人本体、伺服驱动单元和运动控制单元;5. The method for estimating external torque of a robotic arm according to claim 4, wherein the industrial robot algorithm development platform includes a robot body, a servo drive unit and a motion control unit; 所述机器人本体为六自由度串联机械臂,其末端安装有六维力传感器或力矩传感器,且传感器末端装有垂直握把,用于用户与机械臂进行人机交互;The robot body is a six-degree-of-freedom tandem robotic arm, with a six-dimensional force sensor or torque sensor installed at its end, and a vertical grip at the end of the sensor for human-machine interaction between the user and the robotic arm; 所述伺服驱动单元用于实现机械臂关节永磁同步电机的控制,具有针对关节电机转矩、速度和位置的不同控制模式;The servo drive unit is used to control the permanent magnet synchronous motor of the robot arm joint, and has different control modes for the torque, speed and position of the joint motor; 所述运动控制单元采用倍福控制器实现,其与伺服驱动单元通过工业以太网EtherCAT总线进行通讯。The motion control unit is implemented using a Beckhoff controller, which communicates with the servo drive unit through the industrial Ethernet EtherCAT bus. 6.根据权利要求4所述的机械臂外力矩估计方法,其特征在于,所述利用力矩传感器的测量真值标定转矩修正系数,包括:6. The method for estimating the external torque of a manipulator according to claim 4, characterized in that the step of calibrating the torque correction coefficient using the measured true value of the torque sensor comprises: 首先控制机械臂带载运行一段预设的低速轨迹,运行期间同步采集机械臂动力学模型实时计算的外力矩值和力传感器或力矩传感器采集的真值,将真值通过雅可比矩阵运算映射到每个关节,从而实现转矩修正系数k的标定。First, the manipulator is controlled to run a preset low-speed trajectory with load. During the operation, the external torque value calculated in real time by the manipulator dynamic model and the true value collected by the force sensor or torque sensor are synchronously collected. The true value is mapped to Each joint achieves the calibration of the torque correction coefficient k. 7.根据权利要求1所述的机械臂外力矩估计方法,其特征在于,还包括:基于所述模糊自适应广义动量离散观测器,采用导纳控制算法对机械臂在无力传感器或力矩传感器情况下进行拖动示教验证;7. The method for estimating the external torque of a manipulator according to claim 1, characterized in that it also comprises: based on the fuzzy adaptive generalized momentum discrete observer, using an admittance control algorithm to perform dragging teaching verification on the manipulator without a force sensor or a torque sensor; 所述导纳控制算法的公式如下:The formula of the admittance control algorithm is as follows: ; 式中,,其中/>分别为给定的机械臂目标位姿、速度以及加速度;/>分别为当前机械臂位姿、速度以及加速度;/>,其中/>为估计的外力矩,/>则是机械臂雅可比矩阵的转置;/>参数分别为质量、阻尼以及刚度矩阵。In the formula, , of which/> are the given robot arm target pose, speed and acceleration respectively;/> They are the current robot arm posture, speed and acceleration respectively;/> , of which/> is the estimated external moment,/> It is the transpose of the Jacobian matrix of the robot arm;/> The parameters are mass, damping and stiffness matrices respectively.
CN202410033238.8A 2024-01-10 2024-01-10 A method for estimating the external torque of a robotic arm Active CN117532623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410033238.8A CN117532623B (en) 2024-01-10 2024-01-10 A method for estimating the external torque of a robotic arm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410033238.8A CN117532623B (en) 2024-01-10 2024-01-10 A method for estimating the external torque of a robotic arm

Publications (2)

Publication Number Publication Date
CN117532623A CN117532623A (en) 2024-02-09
CN117532623B true CN117532623B (en) 2024-03-29

Family

ID=89792393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410033238.8A Active CN117532623B (en) 2024-01-10 2024-01-10 A method for estimating the external torque of a robotic arm

Country Status (1)

Country Link
CN (1) CN117532623B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10264057A (en) * 1997-03-19 1998-10-06 Yaskawa Electric Corp External force estimating method for mechanical system
CN112743541A (en) * 2020-12-21 2021-05-04 南京埃斯顿自动化股份有限公司 Soft floating control method for mechanical arm of powerless/torque sensor
CN113199477A (en) * 2021-04-29 2021-08-03 浙江工业大学 Baxter mechanical arm track tracking control method based on reinforcement learning
CN115229798A (en) * 2022-08-22 2022-10-25 桂林电子科技大学 A force-impedance control method combining feedforward compensation and variable damping modeling

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5198514B2 (en) * 2010-07-22 2013-05-15 株式会社東芝 Robot controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10264057A (en) * 1997-03-19 1998-10-06 Yaskawa Electric Corp External force estimating method for mechanical system
CN112743541A (en) * 2020-12-21 2021-05-04 南京埃斯顿自动化股份有限公司 Soft floating control method for mechanical arm of powerless/torque sensor
CN113199477A (en) * 2021-04-29 2021-08-03 浙江工业大学 Baxter mechanical arm track tracking control method based on reinforcement learning
CN115229798A (en) * 2022-08-22 2022-10-25 桂林电子科技大学 A force-impedance control method combining feedforward compensation and variable damping modeling

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种自适应扰动观测器的机械手滑模控制研究;马金茹 等;《机床与液压》;20220228;第50卷(第3期);第54-60页 *
基于扰动观测器的机械臂自适应反演滑模控制;司彦娜 等;《计算机测量与控制》;20180831;第26卷(第8期);第102-118页 *

Also Published As

Publication number Publication date
CN117532623A (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN109940622B (en) Non-sensing collision detection method for robot mechanical arm based on motor current
JP6411380B2 (en) Method for improving detection of collision between robot and its environment, system and computer program product for implementing the method
Wahrburg et al. Cartesian contact force estimation for robotic manipulators using Kalman filters and the generalized momentum
CN112743541B (en) Soft floating control method for mechanical arm of powerless/torque sensor
JPH03118618A (en) Control system applying sliding mode control having damping effect
CN111347421A (en) Method and apparatus for torque estimation
CN111267105A (en) Kinetic parameter identification and collision detection method for six-joint robot
CN112643670A (en) Flexible joint control method based on sliding-mode observer
CN113977578A (en) Soft measurement method for end force of hydraulic mechanical arm
Lu et al. Experimental determination of dynamic parameters of robotic arms
CN110065073A (en) A kind of Dynamic Models of Robot Manipulators discrimination method
Madsen et al. Model-based on-line estimation of time-varying nonlinear joint stiffness on an e-series universal robots manipulator
CN117532623B (en) A method for estimating the external torque of a robotic arm
CN114516050B (en) Robot external force estimation method and system based on configuration Jacobian condition number optimization
CN117773912A (en) Method for estimating external force of mechanical arm by high-order synovial membrane momentum observer
CN110605715A (en) Robot dynamics parameter identification method independent of joint angular acceleration
CN116690559A (en) Industrial robot joint moment compensation method based on space-time diagram convolution network
Li et al. End-effector force estimation for robotic manipulators from motor current measurements
JP2906255B2 (en) Servo control device
Feng et al. A nonlinear robot joint friction compensation method including stick and sliding characteristics
Ibari et al. Collision detection and external force estimation for robot manipulators using a composite momentum observer
Du et al. Robotic high-precision collision detection and force estimation under unknown load
CN117798932A (en) An industrial robot collision detection method
CN117325149B (en) Gesture adjustment method and system based on Kalman filtering
Liu et al. A Sensorless Force Estimation Algorithm for Robot Based on Model Compensation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant