A robot calibration method for digital twins
Through the digital twin-oriented robot calibration method, the improved D-H parameter method and optimization algorithm are used to solve the problem of complexity and reduced accuracy of the industrial robot calibration process, achieve an efficient and automated calibration process, reduce costs and thresholds, and improve Improves the stability of robot accuracy.
Patent Information
- Application Number
- CN202210839572.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-18
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-07-18
AI Technical Summary
The existing industrial robot calibration process is complicated and cumbersome, and the level of automation and intelligence is low, resulting in high calibration threshold and cost. It is difficult to meet the requirements of high-precision applications. With the use time and equipment adjustment, the robot calibration accuracy is easy to decline.
Adopting a digital twin-oriented robot calibration method, by establishing a robot digital twin model, using the improved D-H parameter method to establish a kinematics model, considering the elastic deformation of joints and connecting rods, establishing a rigid-flexible coupling error model, and using an optimization algorithm to find the optimal Optimize the measurement pose points and perform pose error compensation.
It reduces the threshold and cost of robot calibration, improves calibration accuracy and efficiency, reduces calibration complexity, and is a compensation method suitable for different scenarios, improving the stability and reliability of robot accuracy.
Smart Images

Figure CN115179289B
Abstract
Description
Technical Field
[0001] The present invention relates to a robot calibration method, and more particularly to a robot calibration method for digital twins. Background Art
[0002] Industrial robots play an increasingly important role in the manufacturing industry. With the intelligent manufacturing project and the special project of unmanned (or less) human safety in production, the demand for industrial robots is also increasing. Industrial robots have the advantages of high efficiency, flexible control, high safety, fearlessness of harsh production environments such as noise, and high repeatability. The application of robots in various high-precision, high-intensity, and high-risk operations has become a general trend, bringing great changes to the traditional manufacturing industry. However, when faced with high-precision and complex tasks, the various errors in the robot system itself make it difficult to meet the requirements of high-precision applications. Therefore, before the industrial robot is put into use, it is necessary to calibrate the robot to ensure that the robot's accuracy meets the use requirements. At the same time, with the increase in the use time of the industrial robot and the adjustment of the production line equipment, these will cause the robot calibration accuracy to decrease, and ultimately affect the relevant functions of the robot. Therefore, regular calibration of the robot is very important to ensure the accuracy of the robot.
[0003] In addition, in the context of globalization and digitalization, enterprises are currently in urgent need of technological transformation and moving towards digital transformation and intelligent manufacturing. Enterprises establish smart factories and digital workshops to break through the barriers between physical space and digital space and achieve two-way information exchange. Compared with traditional manufacturing, intelligent manufacturing has many advantages such as autonomous analysis, multi-dimensional interaction, and autonomous optimization, and has the characteristics of virtual-real mapping and data-driven. Digital twin technology is one of the core technologies for realizing intelligent manufacturing and is also the theoretical basis of intelligent manufacturing. The existence of digital models has greatly improved production efficiency and saved a lot of manpower, material resources, and financial resources. Digital twin is a comprehensive digital description of the physical form or function of the research object or a product or system, containing as much information as possible throughout its life cycle, and has a very wide range of suitable application scenarios. The emergence of digital twin technology provides new ideas for realizing robot calibration visualization, digitization, and intelligence.
[0004] The traditional industrial robot calibration work is very complicated and tedious, with low automation and intelligence levels. Both the preliminary preparation and the calibration process require professionals to carry out. This leads to high thresholds and costs for robot calibration. By standardizing and automating the robot calibration process and calibration steps, the goal of reducing the threshold and cost of robot calibration can be achieved. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a robot calibration method for digital twins that can reduce the robot calibration threshold and calibration cost in order to overcome the shortcomings of the existing technology.
[0006] The technical solution adopted by the present invention is: a robot calibration method for digital twins, comprising the following steps:
[0007] 1) Establish a digital twin model for robot calibration, including:
[0008] (1.1) According to the geometric parameters of the robot to be calibrated, the robot parts are 3D modeled using SolidWorks 3D modeling software. Then, the sw2urdf plug-in in SolidWorks software is used to export the URDF model function package to complete the robot geometry module construction. Then, the URDF Importer software package is used in Unity software to import the robot geometry module into Unity software. Finally, the Unity software is used to build a robot 3D display platform, such as Figure 3 As shown;
[0009] (1.2) The robot kinematic model is established using the improved DH parameter method, including:
[0010] (1.2.1) Establish the coordinate system of each joint of the robot;
[0011] (1.2.2) Determine the parameters of each link of the robot;
[0012] (1.2.3) Determine the homogeneous transformation matrix A between adjacent joint coordinate systems i , there are two cases for a given robot arm:
[0013] (1.2.3.1) When two adjacent axes are perpendicular, the corresponding relationship between adjacent joint coordinate systems is established through two rotations and two translations according to the established joint coordinate system;
[0014] (1.2.3.2) When two adjacent axes are parallel, the corresponding relationship between adjacent joint coordinate systems is established through three rotations and one translation according to the established joint coordinate system;
[0015] Make two adjacent coordinate systems overlap, and use 4 homogeneous transformation matrices to describe them, denoted by A i ; According to the principle of multiplication from left to right, we get:
[0016] A i =Rot(z i-1 ,θ i )Trans(0,0,d i )Trans(a i,0,0)Rot(x i ,α i )Rot(y i ,β i )
[0017] in:
[0018]
[0019]
[0020]
[0021]
[0022]
[0023] in,
[0024] When two adjacent axes are perpendicular, eliminate A i Rot(y) in the expression i ,β i );
[0025] When two adjacent axes are parallel, eliminate A i Trans(0,0,d i );
[0026] According to the homogeneous transformation matrix between adjacent joint coordinate systems and the corresponding link parameters, the total pose transformation of the robot flange end coordinate system {O6} relative to the robot base coordinate system {O0} is determined. 0 T6 constitutes the robot kinematic model, which is expressed as:
[0027]
[0028] in represents the rotation matrix from the robot base coordinate system {O0} to the robot flange end coordinate system {O6}; Indicates the position coordinates of the robot flange end coordinate system relative to the robot base coordinate system;
[0029] Where:
[0030] n x is the unit vector of the X-axis of the robot flange end coordinate system in the direction of the X-axis of the robot base coordinate system;
[0031] n y is the unit vector of the X-axis of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system;
[0032] n zis the unit vector of the X-axis of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system;
[0033] o x is the unit vector of the Y-axis of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system;
[0034] o y is the unit vector of the Y axis of the robot flange end coordinate system in the Y axis direction of the robot base coordinate system;
[0035] o z is the unit vector of the Y-axis of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system;
[0036] α x is the unit vector of the Z-axis of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system;
[0037] α y is the unit vector of the Z-axis of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system;
[0038] α z is the unit vector of the Z axis of the robot flange end coordinate system in the Z axis direction of the robot base coordinate system;
[0039] p x It is the position coordinate of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system;
[0040] p y It is the position coordinate of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system;
[0041] p z It is the position coordinate of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system;
[0042] (1.3) Based on the robot kinematic model, the robot geometric error model is established according to the partial differential theory and differential motion principle;
[0043] (1.4) Establish the elastic deformation model of robot joints based on linear torsion spring theory;
[0044] (1.5) The robot rigid-flexible coupling error model ΔP is established based on the linear superposition principle and is expressed as follows:
[0045]
[0046] in,
[0047] ΔP is the overall posture error of the robot under the influence of the robot geometric error model and the robot joint elastic deformation model, that is, the robot rigid-flexible coupling error model;
[0048] ΔP k is the robot geometric error model;
[0049] ΔP f It is the elastic deformation model of robot joints;
[0050] H k is the robot geometric error model ΔP under the geometric error k The identification matrix of
[0051] ΔP is the elastic deformation model of the robot joint under the robot end workload f The identification matrix
[0052] Δη k is the connecting rod parameter error;
[0053] K f is the matrix form of the robot joint stiffness coefficient;
[0054] H is the identification matrix of the robot rigid-flexible coupling error model ΔP;
[0055] Δλ is the error parameter set, including the link parameter error and the robot joint stiffness coefficient;
[0056] 2) Build a robot calibration work platform:
[0057] 3) Perform robot calibration operations, including:
[0058] (3.1) Find the spatial pose points of the robot end effector, i.e. the optimal measurement pose group, according to the optimization algorithm;
[0059] (3.2) Subtracting the measured pose from the spatial pose point of the ideal robot end effector in the obtained optimal measured pose group to obtain the pose error;
[0060] (3.3) Compensate for the robot’s posture error.
[0061] A robot calibration method for digital twins of the present invention adopts an improved DH parameter method in the robot kinematic model modeling method, thereby improving the stability of the identification model parameters; in the robot calibration model, the elastic deformation of the joints and connecting rods is considered, and the robot rigid-flexible coupling error model is established by the linear superposition principle, thereby improving the accuracy of the model; in the robot calibration work, a detailed and simple robot calibration process is given, thereby reducing the complexity of the robot calibration work; in data measurement, an optimization algorithm is used to find the optimal measurement posture group of the spatial posture points of the robot end effector, thereby improving the identification efficiency and identification accuracy; in the compensation method, different compensation methods are given according to the degree of openness of the robot controller, which are suitable for different occasions. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a flow chart of a robot calibration method for digital twins of the present invention;
[0063] Figure 2 It is a schematic diagram of a robot three-dimensional display platform of the present invention;
[0064] Figure 3 It is a schematic diagram of the coordinate system of each joint of the robot established according to the DH law;
[0065] Figure 4 It is to analyze and determine the parameters of each rod and the schematic diagram of the motion parameters of the robot. DETAILED DESCRIPTION
[0066] A robot calibration method for digital twins of the present invention is described in detail below in conjunction with the embodiments and drawings.
[0067] like Figure 1 As shown, a robot calibration method for digital twins of the present invention comprises the following steps:
[0068] 1) Establish a digital twin model for robot calibration, including:
[0069] (1.1) According to the geometric parameters of the robot to be calibrated, the robot parts are 3D modeled using SolidWorks 3D modeling software. Then, the sw2urdf plug-in in SolidWorks software is used to export the URDF model function package to complete the robot geometry module construction. Then, the URDF Importer software package is used in Unity software to import the robot geometry module into Unity software. Finally, the Unity software is used to build a robot 3D display platform, such as Figure 2 As shown;
[0070] (1.2) Use the improved DH parameter method to establish the robot kinematic model:
[0071] The DH parameter method is to establish a 4*4 homogeneous transformation matrix for the link coordinate system at each joint to represent the relationship between the link coordinate system at each joint and the previous link coordinate system, and to multiply the homogeneous transformation matrices at all joints one by one to finally obtain the change matrix of the end coordinate system represented by the base coordinate system.
[0072] The standard DH parameter method modeling process has certain defects. When the axes of two adjacent joints are parallel, if there is a slight angle difference between the two axes, it will cause the joint moment d i The sudden change of the model parameters makes it impossible to stably identify the model parameters. Therefore, the present invention adopts the method of adding a rotation parameter β around the Y axis. i Improved DH parameter method.
[0073] (1.2.1) Establish the coordinate system of each joint of the robot according to the following principles: Figure 3 As shown,
[0074] (1.2.1.1) Establish the robot base coordinate system {O0}, where Z0 coincides with the axis of the first joint, X0 is horizontal to the right, the origin is on the robot installation reference plane, and Y0 is determined according to the right-hand rule;
[0075] (1.2.1.2) Coordinate system Z axis: where Z i The axis coincides with the axis of the i+1th joint of the robot, i=1, 2, 3, 4, 5, 6; the end flange of the robot is regarded as the seventh joint axis;
[0076] (1.2.1.3) Coordinate axis X axis: where X i Axis is Z i Axis and Z i-1 The common perpendicular line of the axis, and the direction points to the next joint; when i = 0, X i The axis direction is horizontal to the right;
[0077] (1.2.1.4) Coordinate system Y axis: determined according to the right-hand rule;
[0078] (1.2.1.5) Coordinate origin: X i The intersection of the axis and the i+1th joint axis;
[0079] (1.2.2) Determine the parameters of each link of the robot, such as Figure 4 As shown, the meaning of each robot parameter is:
[0080] (a) Connecting rod torsion angle α i : is the angle between the axis of the i-th joint and the axis of the i-1-th joint;
[0081] (b) Connecting rod length ai : is the length of the common perpendicular line between the axis of the i-th joint and the axis of the i-1-th joint;
[0082] (c) Joint rotation angle θ i : is the rotation angle of the i-th joint;
[0083] (d) Joint moment d i : The distance between the two common perpendicular lines on the axis of the i-th joint;
[0084] (e) Rotation parameter β i : Y i-1 Axis around Y i The rotation angle of the axis;
[0085] (1.2.3) Determine the homogeneous transformation matrix A between adjacent joint coordinate systems i , there are two cases for a given robot arm:
[0086] (1.2.3.1) When two adjacent axes are perpendicular, the corresponding relationship between adjacent joint coordinate systems is established through two rotations Rot() and two translations Trans() in the following order:
[0087] (1.2.3.1.1)Z i Axis around Z i-1 Axis rotation θ i Angle, make X i Axis and X i-1 Axis parallel;
[0088] (1.2.3.1.2)Z i Axis along Z i-1 Axis movement d i distance, so that X i Axis and X i-1 Axis coincidence;
[0089] (1.2.3.1.3)X i-1 Axis along X i Axis movement a i distance, so that the coordinate origin coincides;
[0090] (1.2.3.1.4)X i-1 Axis around X i Axis rotation α i Angle, so that Z i Axis and Z i-1 Axis coincidence;
[0091] (1.2.3.2) When two adjacent axes are parallel, the corresponding relationship between the adjacent joint coordinate systems is established through three rotations Rot() and one translation Trans() in the following order according to the established joint coordinate system:
[0092] (1.2.3.2.1)Z i Axis around Z i-1 Axis rotation θ i Angle, make X i Axis and X i-1 Axis parallel;
[0093] (1.2.3.2.2)Z i Axis along X i Axis movement a i distance, so that the origin coincides;
[0094] (1.2.3.2.3)X i-1 Axis around X i Axis rotation α i Angle, so that Y i Axis and Y i-1 Axis coincidence;
[0095] (1.2.3.2.4)Y i-1 Axis around Y i Axis rotation β i Angle, so that the two coordinate systems coincide;
[0096] After the above coordinate transformation, the two adjacent coordinate systems are overlapped and described by 4 homogeneous transformation matrices, denoted as A i ; According to the principle of multiplication from left to right, we get:
[0097] A i =Rot(z i-1 ,θ i )Trans(0,0,d i )Trans(a i ,0,0)Rot(x i ,α i )Rot(y i ,β i )
[0098] in:
[0099]
[0100]
[0101]
[0102]
[0103]
[0104] in,
[0105] When two adjacent axes are perpendicular, eliminate A i Rot(y) in the expression i ,β i );
[0106] When two adjacent axes are parallel, eliminate A i Trans(0,0,d i );
[0107] According to the homogeneous transformation matrix between adjacent joint coordinate systems and the corresponding link parameters, the total pose transformation of the robot flange end coordinate system {O6} relative to the robot base coordinate system {O0} is determined. 0 T6 constitutes the robot kinematic model, which is expressed as:
[0108]
[0109] in represents the rotation matrix from the robot base coordinate system {O0} to the robot flange end coordinate system {O6}; Indicates the position coordinates of the robot flange end coordinate system relative to the robot base coordinate system;
[0110] Where:
[0111] n x is the unit vector of the X-axis of the robot flange end coordinate system in the direction of the X-axis of the robot base coordinate system;
[0112] n y is the unit vector of the X-axis of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system;
[0113] n z is the unit vector of the X-axis of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system;
[0114] o x is the unit vector of the Y-axis of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system;
[0115] o y is the unit vector of the Y axis of the robot flange end coordinate system in the Y axis direction of the robot base coordinate system;
[0116] o z is the unit vector of the Y-axis of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system;
[0117] α x is the unit vector of the Z-axis of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system;
[0118] α yis the unit vector of the Z-axis of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system;
[0119] α z is the unit vector of the Z axis of the robot flange end coordinate system in the Z axis direction of the robot base coordinate system;
[0120] p x It is the position coordinate of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system;
[0121] p y It is the position coordinate of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system;
[0122] p z It is the position coordinate of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system.
[0123] (1.3) Establish the robot geometric error model based on partial differential theory and differential motion principle;
[0124] Specifically, based on the robot kinematics model, each parameter is partially differentiated:
[0125]
[0126] Among them, A i is the homogeneous transformation matrix, Δθ i is the deviation of the joint rotation angle, Δd i is the offset of the joint moment, Δa i is the deviation of the connecting rod length, Δα i is the deviation of the connecting rod torsion angle, Δβ i is the deviation of the rotation parameter;
[0127] Using the robot kinematics model, the robot geometric error model Δp under the action of geometric error is obtained k , which is expressed as follows:
[0128]
[0129] In the formula, A T Represents the transformation matrix between the robot end tool coordinate system and the robot flange end coordinate system.
[0130]
[0131] Where:
[0132] n Tx It is the unit vector of the X-axis of the robot end tool coordinate system in the X-axis direction of the robot flange end coordinate system;
[0133] nTy It is the unit vector of the X-axis of the robot end tool coordinate system in the Y-axis direction of the robot flange end coordinate system;
[0134] n Tz It is the unit vector of the X-axis of the robot end tool coordinate system in the Z-axis direction of the robot flange end coordinate system;
[0135] o Tx It is the unit vector of the Y-axis of the robot end tool coordinate system in the X-axis direction of the robot flange end coordinate system;
[0136] o Ty It is the unit vector of the Y-axis of the robot end tool coordinate system in the Y-axis direction of the robot flange end coordinate system;
[0137] o Tz It is the unit vector of the Y-axis of the robot end tool coordinate system in the Z-axis direction of the robot flange end coordinate system;
[0138] α Tx It is the unit vector of the Z-axis of the robot end tool coordinate system in the X-axis direction of the robot flange end coordinate system;
[0139] α Ty It is the unit vector of the Z-axis of the robot end tool coordinate system in the Y-axis direction of the robot flange end coordinate system;
[0140] α Tz It is the unit vector of the Z axis of the robot end tool coordinate system in the Z axis direction of the robot flange end coordinate system;
[0141] p Tx It is the position coordinate of the robot end tool coordinate system in the X-axis direction of the robot flange end coordinate system;
[0142] p Ty It is the position coordinate of the robot end tool coordinate system in the Y-axis direction of the robot flange end coordinate system;
[0143] p Tz It is the position coordinate of the robot end tool coordinate system in the Z-axis direction of the robot flange end coordinate system;
[0144] The robot geometric error model Δp k Expand and ignore the higher-order terms above the second order, and then substitute the following formula into the expanded robot geometric error model:
[0145] ΔA i =A i -1 dA i =A θi Δθ i +Adi Δd i +A ai Δa i +A αi Δα i +A βi Δβ i
[0146] Among them, A θi ,A di ,A ai ,A αi ,A βi A i -1 dA i The corresponding Δθ after expansion i ,Δd i ,Δa i ,Δα i ,Δβ i The coefficient matrix of
[0147] Get the robot geometric error model Δp k The new expression is:
[0148] Δp k =A1ΔA1A2...A T +A1A2ΔA2...A T +...+A1A2...A6ΔA6A T =H k ·Δη k
[0149] H k =[H θ H d H a H α H β ] is the identification matrix of the geometric error model of the robot under the action of geometric error, where:
[0150] H θ =[A1A θ1 A2...A T A1A2A θ2 ...A T ... A1...A6A θ6 A T ]
[0151] H d =[A1A d1 A2...A T A1A2A d2 ...A T ... A1...A6A d6A T ]
[0152] H a =[A1A a1 A2...A T A1A2A a2 ...A T ... A1...A6A a6 A T ]
[0153] H α =[A1A α1 A2...A T A1A2A α2 ...A T ... A1...A6A α6 A T ]
[0154] H β =[A1A β1 A2...A T A1A2A β2 ...A T ... A1...A6A β6 A T ]
[0155] Δη k =[Δθ i Δd i Δa i Δα i Δβ i ] T , i=1,2,3,4,5,6,Δη k is the connecting rod parameter error.
[0156] (1.4) Establishing the elastic deformation model of robot joints based on linear torsion spring theory
[0157] Due to the elastic deformation of the joints and connecting rods during the movement of the robot, the robot end tool coordinate system pose produces flexible errors, and it is necessary to establish a robot joint elastic deformation model. Based on the linear torsion spring theory, the elastic deformation of the joints and connecting rods is concentrated at the joint elastic deformation, and the stiffness coefficient of each joint is defined as k fa According to the relationship between torque and torsion, the torsional moment τ of each joint is obtained b (also called static error moment) and elastic deformation d qc The relationship between the torsional elastic deformation of each joint due to torque is:
[0158] τ b =k fa dqc ,a,b,c=1,2,...,6
[0159] Convert to matrix form:
[0160] τ=K f dθ
[0161] Among them, τ = [τ1, τ2, τ3, τ4, τ5, τ6], which is τ b The matrix form of
[0162] τ1 is the torsional moment applied to the first joint;
[0163] τ2 is the torsional moment applied to the second joint;
[0164] τ3 is the torsional moment exerted on the third joint;
[0165] τ4 is the torsional moment applied to the fourth joint;
[0166] τ5 is the torsional moment applied to the fifth joint;
[0167] τ6 is the torsional moment exerted on the sixth joint;
[0168] dθ=[d q1 ,d q2 ,d q3 ,d q4 ,d q5 ,d q6 ] T ;
[0169] d q1 is the elastic deformation of the first joint under torsional moment τ1;
[0170] d q2 is the elastic deformation of the second joint under torsional moment τ2;
[0171] d q3 is the elastic deformation of the third joint under torsional moment τ3;
[0172] d q4 is the elastic deformation of the fourth joint under torsional moment τ4;
[0173] d q5 is the elastic deformation of the fifth joint under torsional moment τ5;
[0174] d q6 is the elastic deformation of the sixth joint under torsional moment τ6;
[0175] It is k fa The matrix form of
[0176] k f1 is the stiffness coefficient of the first joint;
[0177] k f2 is the stiffness coefficient of the second joint;
[0178] k f3 is the stiffness coefficient of the third joint;
[0179] k f4 is the stiffness coefficient of the fourth joint;
[0180] k f5 is the stiffness coefficient of the 5th joint;
[0181] k f6 is the stiffness coefficient of the sixth joint;
[0182] The rotation matrix from the robot base coordinate system {O0} to the robot flange end coordinate system {O6} Solving for the Euler angle ψ,
[0183] Where:
[0184] n x is the unit vector of the X-axis of the robot flange end coordinate system in the direction of the X-axis of the robot base coordinate system;
[0185] n y is the unit vector of the X-axis of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system;
[0186] n z is the unit vector of the X-axis of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system;
[0187] o x is the unit vector of the Y-axis of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system;
[0188] o y is the unit vector of the Y axis of the robot flange end coordinate system in the Y axis direction of the robot base coordinate system;
[0189] o z is the unit vector of the Y-axis of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system;
[0190] α x is the unit vector of the Z-axis of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system;
[0191] α y is the unit vector of the Z-axis of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system;
[0192] α z is the unit vector of the Z axis of the robot flange end coordinate system in the Z axis direction of the robot base coordinate system;
[0193] The solution process is:
[0194]
[0195] in,
[0196]
[0197] Among them, φ, are three Euler angles;
[0198] The solution is then completed using the rotation matrix and Euler angle conversion in the MATLAB toolbox;
[0199] The position coordinates of the robot flange end coordinate system relative to the robot base coordinate system are known With three Euler angles are all functions of the joint rotation angle θ, where θ is the collective name of the joint rotation angles θ1, θ2, θ3, θ4, θ5, and θ6; using P and ψ to find the partial derivative of θ, we get the robot kinematics Jacobian matrix J k (θ), that is:
[0200] in:
[0201] p x It is the position coordinate of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system;
[0202] p y It is the position coordinate of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system;
[0203] p z It is the position coordinate of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system;
[0204] φ、 are three Euler angles;
[0205] The robot kinematics Jacobian matrix J k The robot force Jacobian matrix J is obtained by transposing (θ) F (θ):J F (θ) = J k T (θ);
[0206] The robot kinematics Jacobian matrix J is known k (θ) and the force Jacobian matrix are transposed to each other. According to the robot kinematics Jacobian matrix Jk (θ) and the force Jacobian matrix J F The mutual relationship between (θ) is:
[0207]
[0208] in,
[0209] Δp is the posture error of the robot end flange;
[0210] 0 F6 is the force of the robot end workload at the origin of the robot flange end coordinate system {O6};
[0211]
[0212] F is the force description of the robot end workload in the robot base coordinate system {O0}, expressed as:
[0213] F=[0 0 -G 0 0 0] T ;
[0214] G = mg;
[0215] Where m is the load weight of the robot, and g is the acceleration due to gravity;
[0216] represents the transformation matrix that converts the force of the robot end workload into the force acting on the origin of the robot flange end coordinate system;
[0217] 6 P m is the coordinate description of the load center of mass in the robot flange end coordinate system {O6}, is the identity matrix;
[0218] φ、 are three Euler angles;
[0219] S(I) is the antisymmetric of the three-dimensional vector I, that is, when I = [I x I y I z ] T hour,
[0220] Among them, I x is the first dimension component of the three-dimensional vector I; I y is the second dimension component of the three-dimensional vector I; I z is the third dimension component of the three-dimensional vector I, I = R 6 P m ;
[0221] Further, the error of the robot flange end coordinate system {O6} in the robot base coordinate system {O0} is obtained for:
[0222]
[0223] in,
[0224] J k (θ) is the robot kinematic Jacobian matrix;
[0225] K f is the matrix form of the robot joint stiffness coefficient;
[0226] τ is the matrix form of the torsional moment of the joint;
[0227] J F (θ) is the robot force Jacobian matrix;
[0228] 0 F6 is the force of the robot end workload at the origin of the robot flange end coordinate system {O6};
[0229] The robot end tool coordinate system is obtained by transformation {O T}Error in the robot base coordinate system {O0} for:
[0230]
[0231] in,
[0232] Indicates the error of the robot flange end coordinate system {O6} in the robot base coordinate system {O0} Convert to robot end tool coordinate system T}Error in the robot base coordinate system {O0} The transformation matrix of
[0233] 6 P T The robot end tool coordinate system {O T} position
[0234] φ、 are three Euler angles;
[0235] p Tx It is the position coordinate of the robot end tool coordinate system in the X-axis direction of the robot flange end coordinate system;
[0236] p TyIt is the position coordinate of the robot end tool coordinate system in the Y-axis direction of the robot flange end coordinate system;
[0237] p Tz It is the position coordinate of the robot end tool coordinate system in the Z-axis direction of the robot flange end coordinate system;
[0238] The elastic deformation model of the robot joint under the robot end workload ΔP is further obtained. f for:
[0239]
[0240] In the formula, ΔP is the elastic deformation model of the robot joint under the robot end workload f The identification matrix of ; diag{·} means simplifying the matrix into a diagonal matrix with all elements 0 except the main diagonal.
[0241] (1.5) The robot rigid-flexible coupling error model ΔP is established based on the linear superposition principle and is expressed as follows:
[0242]
[0243] in,
[0244] ΔP is the overall posture error of the robot under the influence of the robot geometric error model and the robot joint elastic deformation model, that is, the robot rigid-flexible coupling error model;
[0245] ΔP k is the robot geometric error model;
[0246] ΔP f It is the elastic deformation model of robot joints;
[0247] H k is the robot geometric error model ΔP under the geometric error k The identification matrix of
[0248] ΔP is the elastic deformation model of the robot joint under the robot end workload f The identification matrix
[0249] Δη k is the connecting rod parameter error;
[0250] K f is the matrix form of the robot joint stiffness coefficient;
[0251] H is the identification matrix of the robot rigid-flexible coupling error model ΔP;
[0252] Δλ is the error parameter set, including the link parameter error and the robot joint stiffness coefficient.
[0253] 2) Build a robot calibration work platform, including:
[0254] (2.1) placing the robot and the host computer in a defined working scene, wherein the robot includes a robot body and a robot controller;
[0255] (2.2) Install a measuring instrument to collect the position and posture of the robot end effector, that is, the robot end tool coordinate system {O T}Based on the posture data of the robot base coordinate system {O0}, the measuring instrument is connected to the communication interface of the host computer through the bus;
[0256] (2.3) The robot controller is connected to the communication interface of the host computer through the bus, receives the control signal of the host computer, and transmits the angle information of each joint of the robot body to the host computer.
[0257] 3) Perform robot calibration operations, including:
[0258] (3.1) The data measured by the measuring instrument at different spatial pose points of the robot end effector (that is, the spatial positions of different robot end effectors) have a great influence on the accuracy and efficiency of identification. Selecting the appropriate spatial pose points of the robot end effector can not only improve the accuracy of identification, but also save time in the identification process. Therefore, the spatial pose points of the robot end effector are found according to the optimization algorithm, that is, the optimal measurement pose set {t d}, d = 1, 2, ..., m, m is the number of spatial pose points of the robot end effector contained in each optimal measurement pose group, t d is the spatial pose point of the robot end effector calculated by the optimization algorithm, that is, the measurement point, t d =(P,ψ),
[0259] Indicates the position coordinates of the robot flange end coordinate system relative to the robot base coordinate system; is the Euler angle;
[0260] in,
[0261] p x It is the position coordinate of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system;
[0262] p y It is the position coordinate of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system;
[0263] p zIt is the position coordinate of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system;
[0264] φ、 are three Euler angles;
[0265] The expected posture t, that is, the spatial posture point of the ideal robot end effector, is calculated as follows without error:
[0266] t=A b 0 T6A T =g(q,λ)
[0267] in,
[0268] A b The robot base coordinate system {O0} is relative to the robot base coordinate system {O B}'s transformation matrix;
[0269] g(q,λ) is A b 0 T6A T Written in the form of a vector function;
[0270] 0 T6 is the total transformation of the robot flange end coordinate system {O6} relative to the robot base coordinate system {O0};
[0271] A T Represents the transformation matrix between the robot end tool coordinate system and the robot flange end coordinate system;
[0272] q = {θ1, θ2, θ3, θ4, θ5, θ6} is the rotation angle of the six joints of the robot;
[0273] λ is the nominal value of the robot link parameter in the robot manual;
[0274] In the establishment of the robot rigid-flexible coupling error model, we know that there is an error between the nominal value of λ and the actual value of the robot link parameter, that is, the link error parameter set Δλ k , so the actual spatial position point t of the robot end effector R The calculation of is the calculation under the condition of considering the existence of error, which is expressed as:
[0275] t R =g(q,λ+Δλ k )=t+J λ Δλ k
[0276] in, is the Jacobian matrix of the robot link parameters;
[0277] The actual spatial position point t of the robot end effector R The pose error ΔP between the desired pose t t , expressed as:
[0278] ΔP t =t R -t=J λ Δλ k
[0279] A specific spatial pose point t of the robot end effector d The pose difference ΔP d It is expressed as:
[0280] ΔP d =J λd Δλ k
[0281] Among them, J λd is the spatial position point t of the robot end effector d The Jacobian matrix of the robot link parameters at ;
[0282] The least squares method is used to rewrite the posture difference expression and obtain the connecting rod error parameter set Δλ k :
[0283]
[0284] Further considering the measurement noise ε d Existence of:
[0285] ΔP d =J λd Δλ k +ε d
[0286] Measurement noise ε d It is the random error caused by the measurement of the spatial pose points of the robot end effector. It is usually assumed that the measurement noise is unbiased and the standard deviation is σ. The estimate of the true link error parameter set is:
[0287]
[0288] in, describes the random component and provides an unbiased estimate of the required parameter, namely Where E(·) is the mathematical expectation of random values; according to the expression E(ε d )=σ 2 V, to assume that all directions of the poses of all measurement points and the robot end effector are similar, where V is the unit matrix; considering the statistical characteristics of the measurement error, the expected covariance matrix of the identification accuracy and Δλ is defined as:
[0289]
[0290] In order to achieve the best recognition accuracy, the rotation angle q of each joint of the robot is selected d ={θ 1d ,θ 2d ,θ 3d ,θ 4d ,θ 5d ,θ 6d}, d = 1, 2, ..., m to minimize the expected covariance matrix, the rotation angle q of each joint d The corresponding measurement point is {t d},d=1,2,...,m; where,
[0291] θ 1d is the rotation angle corresponding to the first joint of the robot at the dth measurement point;
[0292] θ 2d is the rotation angle corresponding to the second joint of the robot at the dth measurement point;
[0293] θ 3d is the rotation angle corresponding to the third joint of the robot at the dth measurement point;
[0294] θ 4d is the rotation angle corresponding to the 4th joint of the robot at the dth measurement point;
[0295] θ 5d is the rotation angle corresponding to the fifth joint of the robot at the dth measurement point;
[0296] θ 6d is the rotation angle corresponding to the sixth joint of the robot at the dth measurement point;
[0297] According to the number of parameters to be identified, Δλ k The number of parameters in the equation plus the six joint stiffness coefficients of the robot determines the number of measurement points m to be selected; each measurement point provides six independent equations, for a total of 6m independent equations. The condition for successful identification is that the number of independent equations is greater than the number of parameters to be identified, i.e., Δλ k The number of parameters plus the stiffness coefficients of the robot's six joints must be less than 6m, thereby obtaining the minimum value of m that meets the requirements;
[0298] Among them, the Δλ kThe parameters include: the deviations of the robot's six joint rotation angles Δθ1, Δθ2, Δθ3, Δθ4, Δθ5, Δθ6, the deviations of the robot's six joint moments Δd1, Δd2, Δd3, Δd4, Δd5, Δd6, the deviations of the robot's six link lengths Δa1, Δa2, Δa3, Δa4, Δa5, Δa6 and the deviations of the robot's six link torsion angles Δα1, Δα2, Δα3, Δα4, Δα5, Δα6, a total of 24 parameters.
[0299] The size of the identification error is regarded as The weighted trace of , find the optimal measurement pose group {t d},d=1,2,...,m is simplified to the following optimization problem expression:
[0300]
[0301] Where trace(·) is the trace of the matrix, that is, the sum of the elements on the main diagonal of the matrix from the upper left to the lower right; is the rotation angle q of each joint of the robot when the formula value is minimum d The value of
[0302] The expression of the optimization problem is to find the coordinate points of the minimum value of the multivariate function. The solution is obtained by the solver of the commercial mathematical software MATLAB to obtain the rotation angle q of each joint of the robot that meets the requirements. d , substituting into the expression g(q,λ) of the desired pose t, we can get the optimal measured pose group {t d},d=1,2,...,m.
[0303] The optimal measurement pose group {t d}, d = 1, 2, ..., m and the corresponding rotation angle q of each joint of the robot d After that, the measuring instrument is used to collect the rotation angle q of each joint of the robot. d The corresponding spatial pose point P of the real robot end effector r ={p rd}’s pose data p rd =(P r ,ψ r ), also called the actual posture of the robot; where Construct a base coordinate system for the robot B}, is the robot end tool coordinate system {O T}In the robot construction base coordinate system {O B}Euler angles under
[0304] in,
[0305] prx The position coordinate of the robot end tool coordinate system in the X-axis direction of the robot construction base coordinate system;
[0306] p ry It is the position coordinate of the robot end tool coordinate system in the Y-axis direction of the robot construction base coordinate system;
[0307] p rz It is the position coordinate of the robot end tool coordinate system in the Z-axis direction of the robot construction base coordinate system;
[0308] φ r , are three Euler angles.
[0309] (3.2) The measured pose P r And the optimal measurement pose group {t d} is subtracted from the spatial pose point t of the ideal robot end effector to obtain the pose error ΔP t :
[0310] ΔP t =P r -t=P r -g(q,λ)
[0311] ΔP t is the posture error, P r is the actual posture measured, t is the desired posture, q is the rotation angle of the six joints of the robot, is the output of the controller, and λ is the nominal value of the robot link parameter in the robot manual;
[0312] Because the value of the robot rigid-flexible coupling error model ΔP is different from the posture error ΔP t The same, the obtained posture error ΔP t Substituting into the established robot rigid-flexible coupling error model ΔP, we get:
[0313] ΔP t =P r -g(q,λ)=ΔP=H·Δλ
[0314] Among them, H is the identification matrix of the robot rigid-flexible coupling error model ΔP, and Δλ is the error parameter set;
[0315] At this time, ΔP t and H are known, first set the error value of each parameter in the error parameter set Δλ to 0, and use the least squares method to identify the error parameter set Δλ. The process is as follows:
[0316] (a) Determine the identification equation as:
[0317] δλ=(H T H)-1 ·H T ΔP t
[0318] δλ is the specific value of the parameter error set Δλ obtained by identification;
[0319] H is the identification matrix of the robot rigid-flexible coupling error model ΔP;
[0320] ΔP t is the posture error;
[0321] (b) Update the error parameter set Δλ:
[0322] Δλ'=Δλ+δλ
[0323] Δλ' is the updated error parameter set;
[0324] (c) Update the pose error ΔP t :
[0325] ΔP t '=H·Δλ'
[0326] ΔP' t is the updated error parameter set;
[0327] (d) Determine the updated posture error ΔP' obtained at this time t Whether the robot's position absolute accuracy requirement U is met:
[0328] ||ΔP' t ||≤U?;
[0329] (e) If the robot's position absolute accuracy requirement U is not met, return to step (1) and continue to repeat the above steps; if the robot's position absolute accuracy requirement U is met, output the updated error parameter set Δλ'.
[0330] (3.3) After updating the parameter error set Δλ', the robot's posture error ΔP is calculated according to the following two situations: t To make compensation:
[0331] According to the robot joint elastic deformation model ΔP f Calculate the robot end tool coordinate system {O T}Error in the robot base coordinate system {O0} The actual spatial pose point of the robot end effector to be input into the controller is calculated as t e
[0332]
[0333] Where t is the desired pose.
[0334] (a) If the robot controller is open and supports the user to modify the control model in the controller, then directly modify the robot control model F(q,λ) in the controller: modify the λ in the robot control model F(q,λ) from the nominal value of the robot link parameter in the robot manual to the actual value λ+Δλ of the robot control model. k , that is, the robot control model F(q,λ) in the controller is modified to F(q,λ+Δλ k );Δλ k Included in the updated error parameter set Δλ';
[0335] (b) If the robot controller is not open and the robot control model in the controller cannot be modified directly, the posture in the program file input to the controller must be pre-compensated, including:
[0336] (b1) According to the formula:
[0337] t e =g(q,λ+Δλ k )
[0338] The inverse solution obtains the rotation angle q of the six joints of the robot that the controller should output;
[0339] (b2) The robot control model F(q,λ) is used to calculate the spatial pose point t of the robot end effector in the controller at this time F :
[0340] t F =F(q,λ)
[0341] (b3) The calculated spatial pose point t of the robot end effector F Replace the actual robot end effector spatial pose point t e , as the pose in the program file of the input controller to complete the pre-compensation.
[0342] Although the preferred embodiments of the present invention have been described above in conjunction with the accompanying drawings, the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which belong to the scope of protection of the present invention.
Claims
1. A robot calibration method for digital twins, characterized in that: The steps include: 1) Establish a digital twin model for robot calibration, including: (1.1) According to the geometric parameters of the robot to be calibrated, the robot parts are 3D modeled using SolidWorks 3D modeling software, and then the sw2urdf plug-in in SolidWorks software is used to export the URDF model function package to complete the robot geometry module construction; then the URDF Importer software package is used in Unity software to import the robot geometry module into Unity software, and finally the Unity software is used to build the robot 3D display platform; (1.2) The robot kinematic model is established using the improved DH parameter method, including: (1.2.1) Establish the coordinate system of each joint of the robot; (1.2.2) Determine the parameters of each link of the robot; (1.2.3) Determine the homogeneous transformation matrix A between adjacent joint coordinate systems i , there are two cases for a given robot arm: (1.2.3.1) When two adjacent axes are perpendicular, the corresponding relationship between adjacent joint coordinate systems is established through two rotations and two translations according to the established joint coordinate system; (1.2.3.2) When two adjacent axes are parallel, the corresponding relationship between adjacent joint coordinate systems is established through three rotations and one translation according to the established joint coordinate system; Make two adjacent coordinate systems overlap, and use 4 homogeneous transformation matrices to describe them, denoted by A i ; According to the principle of multiplication from left to right, we get: TO i =Rot(z i-1 ,θ i )Trans(0,0,d i )Trans(a i ,0,0)Rot(x i ,α i )Rot(y i ,β i ) in: in, When two adjacent axes are perpendicular, eliminate A i Rot(y) in the expression i ,β i ); When two adjacent axes are parallel, eliminate A i Trans(0,0,d i ); According to the homogeneous transformation matrix between adjacent joint coordinate systems and the corresponding link parameters, the total pose transformation of the robot flange end coordinate system {O6} relative to the robot base coordinate system {O0} is determined. 0 T6 constitutes the robot kinematic model, which is expressed as: in represents the rotation matrix from the robot base coordinate system {O0} to the robot flange end coordinate system {O6}; Indicates the position coordinates of the robot flange end coordinate system relative to the robot base coordinate system; Where: n x is the unit vector of the X-axis of the robot flange end coordinate system in the direction of the X-axis of the robot base coordinate system; n y is the unit vector of the X-axis of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system; n z is the unit vector of the X-axis of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system; o x is the unit vector of the Y-axis of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system; o y is the unit vector of the Y axis of the robot flange end coordinate system in the Y axis direction of the robot base coordinate system; o z is the unit vector of the Y-axis of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system; α x is the unit vector of the Z-axis of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system; α y is the unit vector of the Z-axis of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system; α z is the unit vector of the Z axis of the robot flange end coordinate system in the Z axis direction of the robot base coordinate system; p x It is the position coordinate of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system; p y It is the position coordinate of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system; p z It is the position coordinate of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system; (1.3) Based on the robot kinematic model, the robot geometric error model is established according to the partial differential theory and differential motion principle; (1.4) Establish the elastic deformation model of robot joints based on linear torsion spring theory; (1.5) The robot rigid-flexible coupling error model ΔP is established based on the linear superposition principle and is expressed as follows: in, ΔP is the overall posture error of the robot under the influence of the robot geometric error model and the robot joint elastic deformation model, that is, the robot rigid-flexible coupling error model; ΔP k is the robot geometric error model; ΔP f It is the elastic deformation model of robot joints; H k is the robot geometric error model ΔP under the geometric error k The identification matrix of ΔP is the elastic deformation model of the robot joint under the robot end workload f The identification matrix Δη k is the connecting rod parameter error; K f is the matrix form of the robot joint stiffness coefficient; H is the identification matrix of the robot rigid-flexible coupling error model ΔP; Δλ is the error parameter set, including the link parameter error and the robot joint stiffness coefficient; 2) Build a robot calibration work platform: 3) Perform robot calibration operations, including: (3.1) Find the spatial pose points of the robot end effector, i.e. the optimal measurement pose group, according to the optimization algorithm; (3.2) Subtracting the measured pose from the spatial pose point of the ideal robot end effector in the obtained optimal measured pose group to obtain the pose error; (3.3) Compensate for the robot’s posture error.
2. A robot calibration method for digital twins according to claim 1, characterized in that: Step 1) The establishment of the robot joint coordinate system described in step (1.2.1) is established according to the following principles: (1.2.1.1) Establish the robot base coordinate system {O0}, where Z0 coincides with the axis of the first joint, X0 is horizontal to the right, the origin is on the robot installation reference plane, and Y0 is determined according to the right-hand rule; (1.2.1.2) Coordinate system Z axis: where Z i The axis coincides with the axis of the i+1th joint of the robot, i=1, 2, 3, 4, 5, 6; the end flange of the robot is regarded as the seventh joint axis; (1.2.1.3) Coordinate axis X axis: where X i Axis is Z i Axis and Z i-1 The common perpendicular line of the axis, and the direction points to the next joint; when i = 0, X i The axis direction is horizontal to the right; (1.2.1.4) Coordinate system Y axis: determined according to the right-hand rule; (1.2.1.5) Coordinate origin: X i The intersection of the axis and the i+1th joint axis.
3. A robot calibration method for digital twins according to claim 1, characterized in that: Step 1) Determining the parameters of each link of the robot as described in (1.2.2) includes: (a) Connecting rod torsion angle α i : is the angle between the axis of the i-th joint and the axis of the i-1-th joint; (b) Connecting rod length a i : is the length of the common perpendicular line between the axis of the i-th joint and the axis of the i-1-th joint; (c) Joint rotation angle θ i : is the rotation angle of the i-th joint; (d) Joint moment d i : The distance between the two common perpendicular lines on the axis of the i-th joint; (e) Rotation parameter β i : Y i-1 Axis around Y i The rotation angle of the axis.
4. A robot calibration method for digital twins according to claim 1, characterized in that: In step 1): The first step (1.2.3.1) is to establish the correspondence between adjacent joint coordinate systems through two rotations and two translations in the following order: (1.2.3.1.1)Z i Axis around Z i-1 Axis rotation θ i Angle, make X i Axis and X i-1 Axis parallel; (1.2.3.1.2)Z i Axis along Z i-1 Axis movement d i distance, so that X i Axis and X i-1 Axis coincidence; (1.2.3.1.3)X i-1 Axis along X i Axis movement a i distance, so that the coordinate origin coincides; (1.2.3.1.4)X i-1 Axis around X i Axis rotation α i Angle, so that Z i Axis and Z i-1 Axis coincidence; The first step (1.2.3.2) is to establish the correspondence between adjacent joint coordinate systems through three rotations and one translation in the following order: (1.2.3.2.1)Z i Axis around Z i-1 Axis rotation θ i Angle, make X i Axis and X i-1 Axis parallel; (1.2.3.2.2)Z i Axis along X i Axis movement a i distance, so that the origin coincides; (1.2.3.2.3)X i-1 Axis around X i Axis rotation α i Angle, so that Y i Axis and Y i-1 Axis coincidence; (1.2.3.2.4)Y i-1 Axis around Y i Axis rotation β i Angle, so that the two coordinate systems coincide.
5. A robot calibration method for digital twins according to claim 1, characterized in that: Step 1) Step (1.3) is to perform partial differentiation of each parameter based on the robot kinematic model: Among them, A i is the homogeneous transformation matrix, Δθ i is the deviation of the joint rotation angle, Δd i is the offset of the joint moment, Δa i is the deviation of the connecting rod length, Δα i is the deviation of the connecting rod torsion angle, Δβ i is the deviation of the rotation parameter; Using the robot kinematics model, the robot geometric error model Δp under the action of geometric error is obtained k , which is expressed as follows: In the formula, A T Represents the transformation matrix between the robot end tool coordinate system and the robot flange end coordinate system. Where: n Tx It is the unit vector of the X-axis of the robot end tool coordinate system in the X-axis direction of the robot flange end coordinate system; n Ty It is the unit vector of the X-axis of the robot end tool coordinate system in the Y-axis direction of the robot flange end coordinate system; n Tz It is the unit vector of the X-axis of the robot end tool coordinate system in the Z-axis direction of the robot flange end coordinate system; o Tx It is the unit vector of the Y-axis of the robot end tool coordinate system in the X-axis direction of the robot flange end coordinate system; o Ty It is the unit vector of the Y-axis of the robot end tool coordinate system in the Y-axis direction of the robot flange end coordinate system; o Tz It is the unit vector of the Y-axis of the robot end tool coordinate system in the Z-axis direction of the robot flange end coordinate system; α Tx It is the unit vector of the Z-axis of the robot end tool coordinate system in the X-axis direction of the robot flange end coordinate system; α Ty It is the unit vector of the Z-axis of the robot end tool coordinate system in the Y-axis direction of the robot flange end coordinate system; α Tz It is the unit vector of the Z axis of the robot end tool coordinate system in the Z axis direction of the robot flange end coordinate system; p Tx It is the position coordinate of the robot end tool coordinate system in the X-axis direction of the robot flange end coordinate system; p Ty It is the position coordinate of the robot end tool coordinate system in the Y-axis direction of the robot flange end coordinate system; p Tz It is the position coordinate of the robot end tool coordinate system in the Z-axis direction of the robot flange end coordinate system; The robot geometric error model Δp k Expand and ignore the higher-order terms above the second order, and then substitute the following formula into the expanded robot geometric error model: A i =A i -1 dA i =A θi Dth i +A di Δd i +A ai Da i +A αi Da i +A βi Db i Among them, A θi ,A di ,A ai ,A αi ,A βi A i -1 dA i The corresponding Δθ after expansion i ,Δd i ,Δa i ,Δα i ,Δβ i The coefficient matrix of Get the robot geometric error model Δp k The new expression is: Δp k =A1ΔA1A2...A T +A1A2ΔA2...A T +...+A1A2...A6ΔA6A T =H k ·See k H k =[H θ H d H a H α H β ] is the identification matrix of the geometric error model of the robot under the action of geometric error, where: <h2 style=";text-align:left;direction:ltr">H<h2 style=";text-align:left;direction:ltr"> θ <h2 style=";text-align:left;direction:ltr"> =[A1A<h2 style=";text-align:left;direction:ltr"> θ1 <h2 style=";text-align:left;direction:ltr"> A2...A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> A1A2A<h2 style=";text-align:left;direction:ltr"> θ2 <h2 style=";text-align:left;direction:ltr"> ...A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> ...A1...A6A<h2 style=";text-align:left;direction:ltr"> θ6 <h2 style=";text-align:left;direction:ltr"> A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> ] <h2 style=";text-align:left;direction:ltr">H<h2 style=";text-align:left;direction:ltr"> d <h2 style=";text-align:left;direction:ltr"> =[A1A<h2 style=";text-align:left;direction:ltr"> d1 <h2 style=";text-align:left;direction:ltr"> A2...A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> A1A2A<h2 style=";text-align:left;direction:ltr"> d2 <h2 style=";text-align:left;direction:ltr"> ...A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> ...A1...A6A<h2 style=";text-align:left;direction:ltr"> d6 <h2 style=";text-align:left;direction:ltr"> A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> ] <h2 style=";text-align:left;direction:ltr">H<h2 style=";text-align:left;direction:ltr"> a <h2 style=";text-align:left;direction:ltr"> =[A1A<h2 style=";text-align:left;direction:ltr"> a1 <h2 style=";text-align:left;direction:ltr"> A2...A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> A1A2A<h2 style=";text-align:left;direction:ltr"> a2 <h2 style=";text-align:left;direction:ltr"> ...A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> ...A1...A6A<h2 style=";text-align:left;direction:ltr"> a6 <h2 style=";text-align:left;direction:ltr"> A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> ] <h2 style=";text-align:left;direction:ltr">H<h2 style=";text-align:left;direction:ltr"> α <h2 style=";text-align:left;direction:ltr"> =[A1A<h2 style=";text-align:left;direction:ltr"> α1 <h2 style=";text-align:left;direction:ltr"> A2...A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> A1A2A<h2 style=";text-align:left;direction:ltr"> α2 <h2 style=";text-align:left;direction:ltr"> ...A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> ...A1...A6A<h2 style=";text-align:left;direction:ltr"> α6 <h2 style=";text-align:left;direction:ltr"> A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> ] <h2 style=";text-align:left;direction:ltr">H<h2 style=";text-align:left;direction:ltr"> β <h2 style=";text-align:left;direction:ltr"> =[A1A<h2 style=";text-align:left;direction:ltr"> β1 <h2 style=";text-align:left;direction:ltr"> A2...A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> A1A2A<h2 style=";text-align:left;direction:ltr"> β2 <h2 style=";text-align:left;direction:ltr"> ...A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> ...A1...A6A<h2 style=";text-align:left;direction:ltr"> β6 <h2 style=";text-align:left;direction:ltr"> A<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> ] Δη k = [Δθ i Δd i Δa i Δα i Δβ i ] T , i = 1, 2, 3, 4, 5, 6, Δη k is the error of the connecting rod parameter.
6. A robot calibration method for digital twins according to claim 1, characterized in that: Step 1) Step (1.4) specifically includes: Based on the linear torsion spring theory, the elastic deformation of the joint and the connecting rod is concentrated at the elastic deformation of the joint. The stiffness coefficient of each joint is defined as k fa According to the relationship between torque and torsion, the torsional moment τ of each joint is obtained b With elastic deformation d qc The relationship is: t b =k fa d qc ,a,b,c=1,2,...,6 Convert to matrix form: τ=K f dth Among them, τ = [τ1, τ2, τ3, τ4, τ5, τ6], which is τ b The matrix form of τ1 is the torsional moment applied to the first joint; τ2 is the torsional moment applied to the second joint; τ3 is the torsional moment exerted on the third joint; τ4 is the torsional moment applied to the fourth joint; τ5 is the torsional moment exerted on the fifth joint; τ6 is the torsional moment exerted on the sixth joint; dθ=[d q1 ,d q2 ,d q3 ,d q4 ,d q5 ,d q6 ] T ; d q1 is the elastic deformation of the first joint under torsional moment τ1; d q2 is the elastic deformation of the second joint under torsional moment τ2; d q3 is the elastic deformation of the third joint under torsional moment τ3; d q4 is the elastic deformation of the fourth joint under torsional moment τ4; d q5 is the elastic deformation of the fifth joint under torsional moment τ5; d q6 is the elastic deformation of the sixth joint under torsional moment τ6; It is k fa The matrix form of k f1 is the stiffness coefficient of the first joint; k f2 is the stiffness coefficient of the second joint; k f3 is the stiffness coefficient of the third joint; k f4 is the stiffness coefficient of the fourth joint; k f5 is the stiffness coefficient of the 5th joint; k f6 is the stiffness coefficient of the sixth joint; The rotation matrix from the robot base coordinate system {O0} to the robot flange end coordinate system {O6} Solving for the Euler angle ψ, Where: n x is the unit vector of the X-axis of the robot flange end coordinate system in the direction of the X-axis of the robot base coordinate system; n y is the unit vector of the X-axis of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system; n z is the unit vector of the X-axis of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system; o x is the unit vector of the Y-axis of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system; o y is the unit vector of the Y axis of the robot flange end coordinate system in the Y axis direction of the robot base coordinate system; o z is the unit vector of the Y-axis of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system; α x is the unit vector of the Z-axis of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system; α y is the unit vector of the Z-axis of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system; α z is the unit vector of the Z axis of the robot flange end coordinate system in the Z axis direction of the robot base coordinate system; The solution process is: in, Among them, φ, are three Euler angles; The solution is then completed using the rotation matrix and Euler angle conversion in the MATLAB toolbox; The position coordinates of the robot flange end coordinate system relative to the robot base coordinate system are known With three Euler angles are all functions of the joint rotation angle θ, where θ is the collective name of the joint rotation angles θ1, θ2, θ3, θ4, θ5, and θ6; using P and ψ to find the partial derivative of θ, we get the robot kinematics Jacobian matrix J k (θ), that is: in: p x It is the position coordinate of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system; p y It is the position coordinate of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system; p z It is the position coordinate of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system; φ、 are three Euler angles; The robot kinematics Jacobian matrix J k The robot force Jacobian matrix J is obtained by transposing (θ) F (θ):J F (θ) = J k T (θ); The robot kinematics Jacobian matrix J is known k (θ) and the force Jacobian matrix are transposed to each other. According to the robot kinematics Jacobian matrix J k (θ) and the force Jacobian matrix J F The mutual relationship between (θ) is: in, Δp is the posture error of the robot end flange; 0 F6 is the force of the robot end workload at the origin of the robot flange end coordinate system {O6}; F is the force description of the robot end workload in the robot base coordinate system {O0}, expressed as: F=[0 0 -G 0 0 0] T ; G = mg; Where m is the load weight of the robot, and g is the acceleration due to gravity; represents the transformation matrix that converts the force of the robot end workload into the force acting on the origin of the robot flange end coordinate system; 6 P m is the coordinate description of the load center of mass in the robot flange end coordinate system {O6}, is the identity matrix; φ、 are three Euler angles; S(I) is the antisymmetric of the three-dimensional vector I, that is, when I = [I x I y I z ] T hour, Among them, I x is the first dimension component of the three-dimensional vector I; I y is the second dimension component of the three-dimensional vector I; I z is the third dimension component of the three-dimensional vector I, I = R 6 P m ; Further, the error of the robot flange end coordinate system {O6} in the robot base coordinate system {O0} is obtained for: in, J k (θ) is the robot kinematic Jacobian matrix; K f is the matrix form of the robot joint stiffness coefficient; τ is the matrix form of the torsional moment of the joint; J F (θ) is the robot force Jacobian matrix; 0 F6 is the force of the robot end workload at the origin of the robot flange end coordinate system {O6}; The robot end tool coordinate system is obtained by transformation {O T }Error in the robot base coordinate system {O0} for: in, Indicates the error of the robot flange end coordinate system {O6} in the robot base coordinate system {O0} Convert to robot end tool coordinate system T }Error in the robot base coordinate system {O0} The transformation matrix of 6 P T The robot end tool coordinate system {O T } position φ、 are three Euler angles; p Tx It is the position coordinate of the robot end tool coordinate system in the X-axis direction of the robot flange end coordinate system; p Ty It is the position coordinate of the robot end tool coordinate system in the Y-axis direction of the robot flange end coordinate system; p Tz It is the position coordinate of the robot end tool coordinate system in the Z-axis direction of the robot flange end coordinate system; The elastic deformation model of the robot joint under the robot end workload ΔP is further obtained. f for: In the formula, ΔP is the elastic deformation model of the robot joint under the robot end workload f The identification matrix of ; diag{·} means simplifying the matrix into a diagonal matrix with all elements 0 except the main diagonal.
7. A robot calibration method for digital twins according to claim 1, characterized in that: Step 2) includes: (2.1) placing the robot and the host computer in a defined working scene, wherein the robot includes a robot body and a robot controller; (2.2) Install a measuring instrument to collect the position and posture of the robot end effector, that is, the robot end tool coordinate system {O T }Based on the posture data of the robot base coordinate system {O0}, the measuring instrument is connected to the communication interface of the host computer through the bus; (2.3) The robot controller is connected to the communication interface of the host computer through the bus, receives the control signal of the host computer, and transmits the angle information of each joint of the robot body to the host computer.
8. The robot calibration method for digital twins according to claim 1, characterized in that: In step 3): Step (3.1) includes: According to the optimization algorithm, the spatial pose points of the robot end effector are found, that is, the optimal measurement pose group {t d }, d = 1, 2, ..., m, m is the number of spatial pose points of the robot end effector contained in each optimal measurement pose group, t d is the spatial pose point of the robot end effector calculated by the optimization algorithm, that is, the measurement point, t d =(P,ψ), Indicates the position coordinates of the robot flange end coordinate system relative to the robot base coordinate system; is the Euler angle; in, p x It is the position coordinate of the robot flange end coordinate system in the X-axis direction of the robot base coordinate system; p y It is the position coordinate of the robot flange end coordinate system in the Y-axis direction of the robot base coordinate system; p z It is the position coordinate of the robot flange end coordinate system in the Z-axis direction of the robot base coordinate system; φ、 are three Euler angles; The expected posture t, that is, the spatial posture point of the ideal robot end effector, is calculated as follows without error: t=A b 0 T6A T =g(q,λ) in, A b The robot base coordinate system {O0} is relative to the robot base coordinate system {O B }'s transformation matrix; g(q,λ) is A b 0 T6A T Written in the form of a vector function; 0 T6 is the total transformation of the robot flange end coordinate system {O6} relative to the robot base coordinate system {O0}; A T Represents the transformation matrix between the robot end tool coordinate system and the robot flange end coordinate system; q = {θ1, θ2, θ3, θ4, θ5, θ6} is the rotation angle of the six joints of the robot; λ is the nominal value of the robot link parameter in the robot manual; In the establishment of the robot rigid-flexible coupling error model, we know that there is an error between the nominal value of λ and the actual value of the robot link parameter, that is, the link error parameter set Δλ k , so the actual spatial position point t of the robot end effector R The calculation of is the calculation under the condition of considering the existence of error, which is expressed as: t R =g(q,λ+Δλ k )=t+J λ Dl k in, is the Jacobian matrix of the robot link parameters; The actual spatial position point t of the robot end effector R The pose error ΔP between the desired pose t t , expressed as: ΔP t =t R -t=J λ Dl k A specific spatial pose point t of the robot end effector d The pose difference ΔP d It is expressed as: ΔP d =J λd Dl k Among them, J λd is the spatial position point t of the robot end effector d The Jacobian matrix of the robot link parameters at ; The least squares method is used to rewrite the posture difference expression and obtain the connecting rod error parameter set Δλ k : Further considering the measurement noise ε d Existence of: ΔP d =J λd Dl k +e d Measurement noise ε d It is the random error caused by the measurement of the spatial pose points of the robot end effector. It is usually assumed that the measurement noise is unbiased and the standard deviation is σ. The estimate of the true link error parameter set is: in, describes the random component and provides an unbiased estimate of the required parameter, namely Where E(·) is the mathematical expectation of random values; according to the expression E(ε d )=σ 2 V, to assume that all directions of the poses of all measurement points and the robot end effector are similar, where V is the unit matrix; considering the statistical characteristics of the measurement error, the expected covariance matrix of the identification accuracy and Δλ is defined as: In order to achieve the best recognition accuracy, the rotation angle q of each joint of the robot is selected d ={θ 1d ,θ 2d ,θ 3d ,θ 4d ,θ 5d ,θ 6d }, d = 1, 2, ..., m to minimize the expected covariance matrix, the rotation angle q of each joint d The corresponding measurement point is {t d },d=1,2,...,m; where, θ 1d is the rotation angle corresponding to the first joint of the robot at the dth measurement point; θ 2d is the rotation angle corresponding to the second joint of the robot at the dth measurement point; θ 3d is the rotation angle corresponding to the third joint of the robot at the dth measurement point; θ 4d is the rotation angle corresponding to the 4th joint of the robot at the dth measurement point; θ 5d is the rotation angle corresponding to the fifth joint of the robot at the dth measurement point; θ 6d is the rotation angle corresponding to the sixth joint of the robot at the dth measurement point; According to the number of parameters to be identified, Δλ k The number of parameters in the equation plus the six joint stiffness coefficients of the robot determines the number of measurement points m to be selected; each measurement point provides six independent equations, for a total of 6m independent equations. The condition for successful identification is that the number of independent equations is greater than the number of parameters to be identified, i.e., Δλ k The number of parameters plus the stiffness coefficients of the robot's six joints must be less than 6m, thereby obtaining the minimum value of m that meets the requirements; The size of the identification error is regarded as The weighted trace of , find the optimal measurement pose group {t d },d=1,2,...,m is simplified to the following optimization problem expression: Where trace(·) is the trace of the matrix, that is, the sum of the elements on the main diagonal of the matrix from the upper left to the lower right; is the rotation angle q of each joint of the robot when the formula value is minimum d The value of The expression of the optimization problem is to find the coordinate points of the minimum value of the multivariate function. The solution is obtained by the solver of the commercial mathematical software MATLAB to obtain the rotation angle q of each joint of the robot that meets the requirements. d , substituting into the expression g(q,λ) of the desired pose t, we can get the optimal measured pose group {t d },d=1,2,...,m; The optimal measurement pose group {t d },d=1,2,...,m and the corresponding rotation angle qd of each joint of the robot, the rotation angle q of each joint of the robot is collected by the measuring instrument d The corresponding spatial pose point P of the real robot end effector r ={p rd }’s pose data p rd =(P r ,ψ r ), also called the actual posture of the robot; where Construct a base coordinate system for the robot B }, is the robot end tool coordinate system {O T }In the robot construction base coordinate system {O B }Euler angles under in, p rx The position coordinate of the robot end tool coordinate system in the X-axis direction of the robot construction base coordinate system; p ry It is the position coordinate of the robot end tool coordinate system in the Y-axis direction of the robot construction base coordinate system; p rz It is the position coordinate of the robot end tool coordinate system in the Z-axis direction of the robot construction base coordinate system; φ r , are three Euler angles; Step (3.2) includes: The measured pose P r And the optimal measurement pose group {t d } is subtracted from the spatial pose point t of the ideal robot end effector to obtain the pose error ΔP t : ΔP t =P r -t=P r -g(q,λ) ΔP t is the posture error, P r is the actual posture measured, t is the desired posture, q is the rotation angle of the six joints of the robot, is the output of the controller, and λ is the nominal value of the robot link parameter in the robot manual; Because the value of the robot rigid-flexible coupling error model ΔP is different from the posture error ΔP t The same, the obtained posture error ΔP t Substituting into the established robot rigid-flexible coupling error model ΔP, we get: ΔP t =P r -g(q,λ)=ΔP=H·Δλ Among them, H is the identification matrix of the robot rigid-flexible coupling error model ΔP, and Δλ is the error parameter set; At this time, ΔP t and H are known, first set the error value of each parameter in the error parameter set Δλ to 0, and use the least squares method to identify the error parameter set Δλ. The process is as follows: (a) Determine the identification equation as: δλ=(H T H) -1 ·H T ·ΔP t δλ is the specific value of the parameter error set Δλ obtained by identification; H is the identification matrix of the robot rigid-flexible coupling error model ΔP; ΔP t is the posture error; (b) Update the error parameter set Δλ: Δλ'=Δλ+δλ Δλ' is the updated error parameter set; (c) Update the pose error ΔP t : ΔP t '=H·Dλ' ΔP' t is the updated error parameter set; (d) Determine the updated posture error ΔP' obtained at this time t Whether the robot's position absolute accuracy requirement U is met: ||ΔP' t ||≤U?; (e) If the robot's position absolute accuracy requirement U is not met, return to step (1) and repeat the above steps; if the robot's position absolute accuracy requirement U is met, output the updated error parameter set Δλ'; Step (3.3) includes: After updating the parameter error set Δλ', the robot's posture error ΔP is calculated according to the following two situations: t To make compensation: According to the robot joint elastic deformation model ΔP f Calculate the robot end tool coordinate system {O T }Error in the robot base coordinate system {O0} The actual spatial pose point of the robot end effector to be input into the controller is calculated as t e Where t is the desired posture; (a) If the robot controller is open and supports the user to modify the control model in the controller, then directly modify the robot control model F(q,λ) in the controller: modify the λ of the robot control model F(q,λ) from the nominal value of the robot link parameter in the robot manual to the actual value λ+Δλ of the robot control model k , that is, the robot control model F(q,λ) in the controller is modified to F(q,λ+Δλ k );Δλ k Included in the updated error parameter set Δλ'; (b) If the robot controller is not open and the robot control model in the controller cannot be modified directly, the posture in the program file input to the controller must be pre-compensated, including: (b1) According to the formula: t e =g(q,λ+Δλ k ) The inverse solution obtains the rotation angle q of the six joints of the robot that the controller should output; (b2) The robot control model F(q,λ) is used to calculate the spatial pose point t of the robot end effector in the controller at this time F : t F =F(q,λ) (b3) The calculated spatial pose point t of the robot end effector F Replace the actual robot end effector spatial pose point t e , as the pose in the program file of the input controller to complete the pre-compensation.
9. A robot calibration method for digital twins according to claim 8, characterized in that: Δλ mentioned in step (3.1) k The parameters include: the deviations of the robot's six joint rotation angles Δθ1, Δθ2, Δθ3, Δθ4, Δθ5, Δθ6, the deviations of the robot's six joint moments Δd1, Δd2, Δd3, Δd4, Δd5, Δd6, the deviations of the robot's six link lengths Δa1, Δa2, Δa3, Δa4, Δa5, Δa6 and the deviations of the robot's six link torsion angles Δα1, Δα2, Δα3, Δα4, Δα5, Δα6, a total of 24 parameters.
Citation Information
Patent Citations
Robot accuracy compensation method synthesizing pose error model and rigidity compensation
CN106737855A
Industrial robot digital twin real-time job control, monitoring and precision compensation method
CN109571476A
Industrial robot calibration method considering parameter coupling
CN112318498A
Robot absolute positioning precision calibration method based on kinematics and spatial interpolation
CN112873199A
Positioning compensation method and apparatus for robot
WO2021238191A1
