Multi-degree-of-freedom mechanism kinematics modeling method, apparatus and device, and storage medium
By constructing an overall kinematic model of a multi-degree-of-freedom mechanism and solving it using Clem's law, the problems of model complexity and redundant parameters introduced in the existing technology are solved, and the error calibration accuracy and calculation efficiency of the multi-degree-of-freedom mechanism are improved.
Patent Information
- Application Number
- PCT/CN2023/122593
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-20
- Filing Date
- 2023-09-28
- Publication Date
- 2024-09-26
AI Technical Summary
When error parameters are introduced in the existing kinematic modeling methods of multi-degree-of-freedom mechanisms, the complexity of the model increases and analytical solutions cannot be achieved. It requires the use of time-consuming numerical iteration methods or the introduction of redundant parameters, which destroys the minimum model and affects the model. Terminal error calibration accuracy.
By constructing a point coordinate system by treating the linear axis of the multi-degree-of-freedom mechanism as a whole, constructing a transformation matrix based on the homogeneous linear equations, and constructing the transformation matrix of the rotation axis separately, a forward kinematics model is constructed, and Klem's law is used to solve the inverse motion. Learn the model to avoid introducing redundant parameters and keep the model minimal.
It realizes the simplification of the kinematic model while maintaining the minimum model, and obtains the analytical solution of the inverse kinematics model through Clem's law, which improves the accuracy of error calibration and avoids the step-by-step calibration of the linear axis and the rotation axis, and directly Used for overall calibration.
Smart Images

Figure CN2023122593_26092024_PF_FP
Abstract
Description
Multi-degree-of-freedom mechanism kinematic modeling method, device, equipment and storage medium Technical Field
[0001] The present application relates to the technical field of kinematic modeling, and in particular to a kinematic modeling method, apparatus, device and storage medium for a multi-degree-of-freedom mechanism. Background Art
[0002] Multi-degree-of-freedom mechanisms used to achieve complex surface machining, such as five-axis machine tools and industrial robots, have structural dimensional errors and assembly errors during the manufacturing process, which affect the positioning error of the mechanism end and cause precision loss. Kinematic calibration is a method that can effectively improve the precision of multi-degree-of-freedom mechanisms. It aims to introduce error parameters, establish kinematic models and error models, find the relationship between the end error and the structural error and motor drive quantity, and finally perform error compensation based on the inverse kinematic model to improve absolute positioning accuracy. Since the kinematic model with the introduction of error parameters is relatively complex, existing methods cannot solve the inverse kinematic model analytically and can only use time-consuming numerical iteration methods to solve it. Or they can obtain an analytical solution, but at the cost of introducing unnecessary redundant parameters, which destroys the minimality of the model and requires separating the linear axis and the rotary axis for step-by-step kinematic calibration, which affects the error calibration accuracy of the overall end motion.
[0003] Summary of the Invention
[0004] The present application provides a method, apparatus, device and storage medium for kinematic modeling of a multi-degree-of-freedom mechanism, which is used to improve the existing technology that introduces redundant parameters at the cost of separating the linear axis and the rotary axis for step-by-step kinematic calibration, and there is a technical problem that the error calibration accuracy affects the overall motion of the end of the mechanism.
[0005] In view of this, the first aspect of the present application provides a kinematic modeling method for a multi-degree-of-freedom mechanism, comprising:
[0006] The three linear axes of the multi-degree-of-freedom mechanism are taken as a whole to construct a point coordinate system, and a transformation matrix of the point coordinate system is constructed based on a homogeneous linear equation group;
[0007] Construct the transformation matrices of the two rotation axes respectively;
[0008] Construct the transformation matrix from the end coordinate system of the multi-degree-of-freedom mechanism to the workpiece coordinate system;
[0009] Constructing a forward kinematics model based on the transformation matrix of the point coordinate system, the transformation matrices of the two rotation axes, and the transformation matrix from the end coordinate system to the workpiece coordinate system;
[0010] According to the posture representation method, the value of the rotary axis motor is obtained by solving the rotation matrix at the end of the multi-degree-of-freedom mechanism, and the translation matrix at the end of the multi-degree-of-freedom mechanism is regarded as a non-homogeneous linear equation group, and the value of the linear axis motor is solved by Cramer's rule to obtain the inverse kinematics model.
[0011] Optionally, constructing the transformation matrices of the two rotation axes respectively includes:
[0012] When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, three rotation matrices are used to construct the transformation matrix of the first rotation axis, and the transformation matrix of the second rotation axis is determined based on the modeling method;
[0013] When the multi-degree-of-freedom mechanism is a mechanism that rotates first and then translates, three rotation matrices are used to construct the transformation matrix of the second rotation axis, and the transformation matrix of the first rotation axis is determined based on the modeling method.
[0014] Optionally, constructing a forward kinematics model based on the transformation matrix of the point coordinate system, the transformation matrices of the two rotation axes, and the transformation matrix from the end coordinate system to the workpiece coordinate system includes:
[0015] When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, the transformation matrix of the point coordinate system is right-multiplied in sequence by the transformation matrix of the first rotation axis, the transformation matrix of the second rotation axis, and the transformation matrix from the end coordinate system to the workpiece coordinate system to obtain a forward kinematics model;
[0016] When the multi-degree-of-freedom mechanism is a mechanism that rotates first and then translates, the transformation matrix of the point coordinate system is used to multiply the transformation matrix of the second rotation axis and the transformation matrix of the first rotation axis on the left, and then multiplied on the right by the transformation matrix from the end coordinate system to the workpiece coordinate system to obtain the forward kinematic model.
[0017] A second aspect of the present application provides a multi-degree-of-freedom mechanism kinematic modeling device, comprising:
[0018] A linear axis modeling unit, used to construct a point coordinate system by taking the three linear axes of the multi-degree-of-freedom mechanism as a whole, and to construct a transformation matrix of the point coordinate system based on a homogeneous linear equation group;
[0019] A rotation axis modeling unit, used to construct transformation matrices of two rotation axes respectively;
[0020] Workpiece coordinate system modeling unit, used to construct the transformation matrix from the end coordinate system of the multi-degree-of-freedom mechanism to the workpiece coordinate system;
[0021] A forward kinematics model construction unit, configured to construct a forward kinematics model based on the transformation matrix of the point coordinate system, the transformation matrices of the two rotation axes, and the transformation matrix from the end coordinate system to the workpiece coordinate system;
[0022] The inverse kinematics model construction unit is used to obtain the value of the rotary axis motor by solving the rotation matrix at the end of the multi-degree-of-freedom mechanism according to the posture representation method, and to obtain the value of the linear axis motor by solving the translation matrix at the end of the multi-degree-of-freedom mechanism as a non-homogeneous linear equation group through Cramer's rule to obtain the inverse kinematics model.
[0023] Optionally, the rotation axis modeling unit is specifically used to:
[0024] When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, three rotation matrices are used to construct the transformation matrix of the first rotation axis, and the transformation matrix of the second rotation axis is determined based on the modeling method;
[0025] When the multi-degree-of-freedom mechanism is a mechanism that rotates first and then translates, three rotation matrices are used to construct the transformation matrix of the second rotation axis, and the transformation matrix of the first rotation axis is determined based on the modeling method.
[0026] Optionally, the forward kinematics model construction unit is specifically used to:
[0027] When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, the transformation matrix of the point coordinate system is right-multiplied in sequence by the transformation matrix of the first rotation axis, the transformation matrix of the second rotation axis, and the transformation matrix from the end coordinate system to the workpiece coordinate system to obtain a forward kinematics model;
[0028] When the multi-degree-of-freedom mechanism is a mechanism that rotates first and then translates, the transformation matrix of the point coordinate system is used to multiply the transformation matrix of the second rotation axis and the transformation matrix of the first rotation axis on the left, and then multiplied on the right by the transformation matrix from the end coordinate system to the workpiece coordinate system to obtain the forward kinematic model.
[0029] A third aspect of the present application provides a multi-degree-of-freedom mechanism kinematic modeling device, the device comprising a processor and a memory;
[0030] The memory is used to store program code and transmit the program code to the processor;
[0031] The processor is used to execute the multi-degree-of-freedom mechanism kinematic modeling method described in any one of the first aspects according to the instructions in the program code.
[0032] In a fourth aspect, the present application provides a computer-readable storage medium for storing program code. When the program code is executed by a processor, the multi-degree-of-freedom mechanism kinematic modeling method described in any one of the first aspects is implemented.
[0033] It can be seen from the above technical solutions that this application has the following advantages:
[0034] The present application provides a kinematic modeling method for a multi-degree-of-freedom mechanism, including: constructing a point coordinate system by taking the three linear axes of the multi-degree-of-freedom mechanism as a whole, and constructing a transformation matrix of the point coordinate system based on a homogeneous linear equation group; constructing the transformation matrices of the two rotation axes respectively; constructing a transformation matrix from the end coordinate system of the multi-degree-of-freedom mechanism to the workpiece coordinate system; constructing a forward kinematic model based on the transformation matrix of the point coordinate system, the transformation matrix of the two rotation axes, and the transformation matrix from the end coordinate system to the workpiece coordinate system; according to the posture representation method, the value of the rotary axis motor is obtained by solving the rotation matrix of the end of the multi-degree-of-freedom mechanism, and the translation matrix of the end of the multi-degree-of-freedom mechanism is regarded as a non-homogeneous linear equation group, and the value of the linear axis motor is obtained by solving the Cramer's rule to obtain an inverse kinematic model.
[0035] In this application, the linear axis is taken as a whole to establish a point coordinate system, and the transformation matrix of the point coordinate system is constructed based on the homogeneous linear equations. The kinematic model is simplified while maintaining the minimum of the model, and the analytical solution of the inverse kinematic model is obtained through Cramer's law. At the same time, this application does not introduce redundant parameters, and the parameters of the linear axis and the rotary axis are not correlated. Therefore, there is no need to separate the linear axis and the rotary axis. They can be directly used for overall calibration without affecting each other's error parameters. This improves the existing technology that separates the linear axis and the rotary axis for step-by-step kinematic calibration at the cost of introducing redundant parameters, and there is a technical problem that the error calibration accuracy of the overall motion of the end of the mechanism is affected. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0037] FIG1 is a flow chart of a kinematic modeling method for a multi-degree-of-freedom mechanism provided in an embodiment of the present application;
[0038] FIG2 is a schematic diagram of a kinematic pair of a five-axis machine tool provided in an embodiment of the present application;
[0039] FIG3 is a comparison diagram of the inverse kinematics model solution provided by an embodiment of the present application;
[0040] FIG4 is a comparison diagram of the second norm and calculation time of the forward kinematic model identification error provided by an embodiment of the present application;
[0041] FIG5 is a structural diagram of a kinematic modeling device for a multi-degree-of-freedom mechanism provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to help those skilled in the art better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0043] Existing kinematic modeling methods usually use DH (Denavit-Hartenberg), POE (Product of Exponentials Formula), CPC and other methods to establish the model, so that each axis has at least 4 error parameters. For example, in the DH model, for the i-th axis, each axis contains a i-1 ,α i-1 ,d i ,θ i The four parameters represent the movement along the x-axis of the i-1 coordinate system, the rotation around the x-axis of the i-1 coordinate system, the movement along the z-axis of the i-th coordinate system, and the rotation around the z-axis of the i-th coordinate system. These four movements can be represented by the matrix D x (a i-1 ), R x (α i-1 ), D z (d i ), R z (θ i ) description. Now use c instead of cos, s instead of sin, then this process can be expressed as the following transformation matrix H i-1,i , which represents the motion transfer from the i-1th axis to the i-th axis:
[0044] If the object of kinematic calibration is a five-axis machine tool, the kinematic model must be obtained by multiplying five such transformation matrices. It is even more difficult to obtain the inverse kinematic model from this complex kinematic model. In order to solve this problem, the kinematic model must be simplified first. The existing technology has improved the kinematic model of the linear axis. At the cost of introducing redundant parameters, the rotation part and the translation part are separated and represented by a rotation matrix and a non-homogeneous linear equation set respectively. However, this requires a step-by-step kinematic calibration in the order of the linear axis and the rotation axis. Otherwise, the redundant parameters introduced in the linear axis will affect the original parameters of the rotation axis, resulting in a poor final calibration effect. Moreover, the end error is the combined influence of all axes. Compared with the overall calibration, this step-by-step calibration cannot achieve a better calibration effect.
[0045] In order to improve the above problems, this application proposes a kinematic modeling method for a multi-degree-of-freedom mechanism of a linear equivalent linear axis, which can simplify the kinematic model while maintaining the minimization of the model, and obtain the analytical solution of the inverse kinematic model through Cramer's law; at the same time, this method does not introduce redundant parameters, and the parameters of the linear axis and the rotary axis are not correlated, so there is no need to separate the linear axis and the rotary axis, and can be directly used for overall calibration without affecting each other's error parameters.
[0046] For ease of understanding, please refer to FIG1 . An embodiment of the present application provides a kinematic modeling method for a multi-degree-of-freedom mechanism, including:
[0047] Step 101: construct a point coordinate system by taking the three linear axes of the multi-degree-of-freedom mechanism as a whole, and construct a transformation matrix of the point coordinate system based on the homogeneous linear equation group.
[0048] The embodiment of the present application takes a five-axis machine tool as an example. The schematic diagram of the kinematic pairs of the five-axis machine tool is shown in Figure 2. From bottom to top, there are five kinematic pairs, namely the Y-axis motor, X-axis motor, Z-axis motor, B-axis motor and C-axis motor. The origin O of the global coordinate system O-xyz is selected as the intersection of the B-axis motor axis and the Z-axis motor axis in the initial state. Although in actual circumstances, due to manufacturing errors, the intersection of the two motor axes does not coincide, the Z-axis motor axis can be translated to a position intersecting with the B-axis motor axis, because the Z-axis motor and its connecting parts are rigid bodies, and the movement direction of each point on the rigid body is parallel to the direction of the Z-axis motor axis, so the axis translation operation can be performed. Set the workpiece coordinate system O at the center of rotation of the C-axis motor surface w -x w y w z w , the workpiece coordinate system will move with the movement of the machine tool, while the global coordinate system O-xyz will not change.
[0049] The embodiment of the present application integrates the linear axes into a whole, such as a point, and places a coordinate system thereon, whose origin coincides with the origin of the adjacent rotating axis coordinate system, and the direction is parallel to the base coordinate system, and then a set of linear equations is used to describe the motion of the point coordinate system. Specifically, when performing kinematic modeling of a multi-degree-of-freedom mechanism, the three linear axes (X-axis, Y-axis and Z-axis) are regarded as a whole, such as a point, which is always the intersection of the Z-axis and the B-axis. It will follow the motor to move in the x, y, and z directions, and the point has its own coordinate system parallel to the global coordinate system, namely the point coordinate system. Therefore, the transformation from the global coordinate system to the point coordinate system does not rotate, but only translates. Then, a set of linear equations such as a1X+a2Y+a3Z is used to represent the motion of the point in the global coordinate system, so as to take into account the perpendicularity errors of the three linear axes. Using H i,jRepresents the transformation matrix from the i-th axis (coordinate system) to the j-th axis (coordinate system), then the transformation matrix of the point coordinate system is:
[0050] Where H O,Z is the transformation matrix of the point coordinate system, H O,X is the transformation matrix from the global coordinate system to the X axis, H X,Y is the transformation matrix from X axis to Y axis, H Y,Z is the transformation matrix from the Y axis to the Z axis, a 11 ,a 12 ,...,a 32 ,a 33 is the verticality parameter, and its initial value is
[0051] Step 102: Construct the transformation matrices of the two rotation axes respectively.
[0052] When the multi-degree-of-freedom mechanism is a mechanism that first translates and then rotates, three rotation matrices are used to construct the transformation matrix of the first rotation axis (i.e., the B axis), and the transformation matrix of the second rotation axis (i.e., the C axis) is determined based on the modeling method; when the multi-degree-of-freedom mechanism is a mechanism that first rotates and then translates, three rotation matrices are used to construct the transformation matrix of the second rotation axis, and the transformation matrix of the first rotation axis is determined based on the modeling method.
[0053] Taking the multi-degree-of-freedom mechanism that translates first and then rotates as an example, after the kinematic model of the linear axis is established, the kinematic model of the rotary axis is established next. The rotation part of the linear axis is ignored in step 101, so it needs to be reflected in the kinematic model of the rotary axis. It should be noted that the point established in step 101 is the origin of the B-axis at this time, because the Z-axis axis has been moved to a position intersecting with the B-axis axis. Therefore, the point coordinate system established in step 101 is only a rotation transformation to the coordinate system of the B-axis motor, and then it is only necessary to ensure that this rotation transformation can be achieved. Because the rotation matrix containing three parameters can guarantee any rotation, when using the POE modeling method containing three rotation parameters, its formula can be directly used. However, if DH containing two rotation parameters is used, it is necessary to add an additional rotation matrix around the Y-axis to reflect the rotation part of the linear axis here. In the embodiment of the present application, the kinematic model of the B-axis motor can be represented by an xyz Euler angle, that is:
[0054] Where H Z,B is the transformation matrix from the Z-axis motor to the B-axis motor, R x (α Z ) is the rotation matrix around the x-axis of the Z-axis motor coordinate system, α Z is the corresponding rotation amount. After the rotation, the first new coordinate system is obtained; R y (γZB ) is the rotation matrix around the y-axis of the first new coordinate system, γ ZB is the corresponding rotation amount, and the second new coordinate system is obtained after rotation; R z (θ B ) is the rotation matrix around the z-axis of the second new coordinate system. Since the z-axis direction of this coordinate system is consistent with the z-axis direction of the B-axis motor coordinate system, R z (θ B ) is also the rotation matrix around the z-axis of the B-axis motor coordinate system, where α Z =-90°,γ ZB =0°,θ B =B, where B is the rotation amount of the B-axis motor. In the embodiment of the present application, the error of the linear axis rotation matrix is transferred to the adjacent rotation axis, so that the transformation of the two coordinate systems is only a rotation transformation.
[0055] After the kinematic models of the first four motor axes are established, the kinematic model of the fifth motor axis (i.e., the C axis) can be established using conventional methods. For example, the DH method can be used. The kinematic model of the fifth motor axis can be:
[0056] Where H B,C is the transformation matrix from the B-axis motor to the C-axis motor, D x (a B ) is the matrix corresponding to the translational motion along the x-axis of the B-axis motor coordinate system, a B is the movement amount; R x (α B ) is the matrix corresponding to the rotational motion around the x-axis of the B-axis motor coordinate system, α B is the amount of rotation; D z (d C ) is the matrix corresponding to the translational motion along the z-axis of the C-axis motor coordinate system, d C is the movement amount; R z (θ C ) is the matrix corresponding to the rotational motion around the z-axis of the C-axis motor coordinate system, θ C is the rotation amount; where a B =0,α B =90°,d C =h3,θ C =C, C is the rotation amount of the C-axis motor, and h3 is the distance between the origin of the B-axis motor and the origin of the C-axis motor in the z direction.
[0057] When the multi-degree-of-freedom mechanism rotates first and then translates, the kinematic model of the rotational axis is established first, followed by the kinematic model of the B-axis. The specific process for establishing the kinematic models of the C-axis and the B-axis can be referenced above and will not be repeated here.
[0058] Step 103: Construct a transformation matrix from the end coordinate system of the multi-degree-of-freedom mechanism to the workpiece coordinate system.
[0059] After establishing the kinematic model of the five motor axes, the workpiece coordinate system is added to complete the establishment of the forward kinematic model. Since the workpiece coordinate system is parallel to the C-axis motor coordinate system, there is only translational motion. Therefore, the transformation matrix H from the end coordinate system of the multi-degree-of-freedom mechanism to the workpiece coordinate system is C,w for:
[0060] Where x w ,y w ,z w O is the origin of the workpiece coordinate system in the C-axis motor coordinate system w Coordinate values in the x, y, and z directions.
[0061] Step 104 : Construct a forward kinematics model based on the transformation matrix of the point coordinate system, the transformation matrices of the two rotation axes, and the transformation matrix from the end coordinate system to the workpiece coordinate system.
[0062] When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, the transformation matrix of the point coordinate system is multiplied by the transformation matrix of the first rotation axis, the transformation matrix of the second rotation axis, and the transformation matrix from the end coordinate system to the workpiece coordinate system in sequence to obtain the forward kinematic model. Taking the multi-degree-of-freedom mechanism that translates first and then rotates as an example, let α4 = α Z ,γ4=γ ZB ,θ4=θ B , represents the parameters of the fourth coordinate system, because according to the order of motors from bottom to top, the B-axis motor is the fourth coordinate system. Then the C-axis motor is the fifth coordinate system, so let α5 = α B ,a5=a B ,θ5=θ C ,d5=d C Finally, the forward kinematic model is as follows: n x =cBcCcγ4+sCsα5sγ4-sBsCcα5cγ4 n y =cC(sBcα4+cBsα4sγ4)+sCcα5(cBcα4-sBsα4sγ4)-sCcγ4sα4sα5 n z= cC(sBsα4 - cBcα4sγ4) + sCcα5(cBsα4 + sBcα4sγ4) + sCcγ4cα4sα5 o x = cCsα5sγ4 - cBsCcγ4 - cCsBcα5cγ4 o y = cCcα5(cBcα4 - sBsα4sγ4) - sC(sBcα4 + cBsα4sγ4) - cCcγ4sα4sα5 o z = cCcα5(cBsα4 + sBcα4sγ4) - sC(sBsα4 - cBcα4sγ4) + cCcγ4cα4sα5 a x = cα5sγ4 + sBcγ4sα5 a y = -sα5(cBcα4 - sBsα4sγ4) - cα5cγ4sα4 a z = -sα5(cBsα4 + sBcα4sγ4) - cα5cγ4cα4 p x = a 11 X + a 12 Y + a 13 Z + b1 p y = a 21 X + a 22 Y + a 23 Z + b2 p z = a 31 X + a 32 Y + a 33 Z + b3 b1 = x w n x + y w o x +(d5 + z w )a x + a5cBcγ4 b2 = x w n y + y w o y +(d5 + z w [[ID=·58]])a y + a5(sBcα4 + cBsα4sγ4) b3 = x w n z + y w o z +(d5 + z w )a z + a5(sBsα·4 - cBcα4sγ4)
[0063] In the formula, c represents cos and s represents sin. is a rotation matrix, which is an orthogonal matrix and satisfies the determinant being 1. H O,w Among them, the first column is the workpiece coordinate system O w -x w y w z w The projection of the x-axis on the global coordinate system O-xyz, is the workpiece coordinate system O w -x w y w z w The projection of the y-axis on the global coordinate system O-xyz, is the workpiece coordinate system O w -x w y w z w The projection of the z-axis on the global coordinate system O-xyz; is the workpiece coordinate system O w -x w y w z w The rectangular coordinates of the origin in the global coordinate system O-xyz, is the intermediate parameter.
[0064] When the multi-degree-of-freedom mechanism rotates first and then translates, the transformation matrix of the point coordinate system is sequentially multiplied on the left by the transformation matrix of the second rotation axis and the transformation matrix of the first rotation axis, and then multiplied on the right by the transformation matrix from the end coordinate system to the workpiece coordinate system to obtain the forward kinematic model. When the multi-degree-of-freedom mechanism rotates first and then translates, the transformation matrix of the point coordinate system is sequentially multiplied on the left by the transformation matrix of the second rotation axis and the transformation matrix of the first rotation axis, and the modeling order of the rotation axes should also be from back to front.
[0065] Step 105: According to the posture representation method, the value of the rotary axis motor is obtained by solving the rotation matrix at the end of the multi-degree-of-freedom mechanism, and the translation matrix at the end of the multi-degree-of-freedom mechanism is used as a non-homogeneous linear equation group, and the value of the linear axis motor is obtained by solving the Cramer's rule to obtain the inverse kinematics model.
[0066] The forward kinematics model can be established through the above four steps. Next, the inverse kinematics model needs to be established. This requires inversely deducing the motor value from the result derived in step 104. That is, at this time, n in the forward kinematics model is converted to x ,n y …p y ,p zThese 12 values are used as known quantities, and the 5 motor values are used as unknown quantities. To find the inverse kinematics model, it is necessary to follow the order of the rotary axis first and then the linear axis, because the movement of the linear axis will not affect the rotation of the end, but the movement of the rotary axis will affect the translation of the end. Therefore, it is necessary to first start with the rotation matrix of the end to find the B motor and the C motor. This can be obtained by solving the equation group based on the rotation matrix of the end of the multi-degree-of-freedom mechanism. If the object of the posture is a normal vector, it is also feasible to first multiply the rotation matrix of the end by a vector to convert it into a normal vector, and then derive the inverse kinematics model. This process belongs to the existing technology and will not be repeated here.
[0067] After the rotation axis motor is calculated, the value of the rotation matrix can be obtained, and then the p in the kinematic model can be obtained. x ,p y ,p z The values of b1, b2, and b3 are found here. Then we can find that the final translation matrix is a non-homogeneous linear equation system with independent variables X, Y, and Z. Then the motor movement X, Y, Z can be obtained by Cramer's law:
[0068] Where, det(Matrix) represents the determinant of the corresponding matrix.
[0069] Through the above process, the rotation matrix of the end of the multi-degree-of-freedom mechanism can be solved to obtain the values of the rotary axis motor and the linear axis motor. At this point, the inverse kinematics model is completed.
[0070] To verify the effectiveness of the method proposed in the embodiment of the present application, the inverse kinematics model was simulated 30 times using the method proposed in the embodiment of the present application and the numerical iteration method. 100 inverse kinematics models were solved in each simulation, and the solution error and calculation time were recorded. The experimental results are shown in Figure 3. As can be seen from Figure 3, the inverse kinematics model of the present application is much superior to the numerical method in terms of calculation accuracy, calculation stability, and calculation efficiency.
[0071] As for the difference between the improved forward kinematics model and the original kinematics model, the embodiment of the present application uses a five-axis serial motion platform as the research object, actually measures 60 points, randomly selects 15 points each time for parameter identification, records the identification accuracy and calculation time, and the identification effects of the model of the present application and the original model are shown in Figure 4. It can be seen from Figure 4 that the forward kinematics model of the embodiment of the present application is also higher than the original model in identification accuracy and calculation efficiency, which shows that the model of the present application not only retains the minimality of the original model, but also optimizes the error parameter representation of the original model. The method proposed in the embodiment of the present application does not need to introduce redundant parameters, and can also ensure the minimality of the model; since each parameter is independently identifiable, there is no need for step-by-step calibration, and the multi-degree-of-freedom mechanism can be directly calibrated as a whole, which can better reflect the comprehensive impact of the error of each axis on the terminal error.
[0072] In an embodiment of the present application, the linear axis is taken as a whole to establish a point coordinate system, and the transformation matrix of the point coordinate system is constructed based on the homogeneous linear equations. The kinematic model is simplified while maintaining the minimization of the model, and the analytical solution of the inverse kinematic model is obtained through Cramer's law. At the same time, the present application does not introduce redundant parameters, and the parameters of the linear axis and the rotary axis are not correlated. Therefore, there is no need to separate the linear axis and the rotary axis. They can be directly used for overall calibration without affecting each other's error parameters. This improves the existing technology that separates the linear axis and the rotary axis for step-by-step kinematic calibration at the cost of introducing redundant parameters, and there is a technical problem that the error calibration accuracy of the overall motion of the end of the mechanism is affected.
[0073] The above is an embodiment of a multi-degree-of-freedom mechanism kinematic modeling method provided by the present application, and the following is an embodiment of a multi-degree-of-freedom mechanism kinematic modeling device provided by the present application.
[0074] Referring to FIG5 , an embodiment of the present application provides a kinematic modeling device for a multi-degree-of-freedom mechanism, including:
[0075] The linear axis modeling unit is used to construct a point coordinate system by taking the three linear axes of the multi-degree-of-freedom mechanism as a whole and construct the transformation matrix of the point coordinate system based on the homogeneous linear equations;
[0076] A rotation axis modeling unit, used to construct transformation matrices of two rotation axes respectively;
[0077] Workpiece coordinate system modeling unit, used to construct the transformation matrix from the end coordinate system of the multi-degree-of-freedom mechanism to the workpiece coordinate system;
[0078] A forward kinematics model construction unit is used to construct a forward kinematics model based on the transformation matrix of the point coordinate system, the transformation matrices of the two rotation axes, and the transformation matrix from the end coordinate system to the workpiece coordinate system;
[0079] The inverse kinematics model construction unit is used to obtain the value of the rotary axis motor by solving the rotation matrix at the end of the multi-degree-of-freedom mechanism according to the posture representation method, and to obtain the value of the linear axis motor by solving the translation matrix at the end of the multi-degree-of-freedom mechanism as a non-homogeneous linear equation group through Cramer's rule to obtain the inverse kinematics model.
[0080] As a further improvement, the rotation axis modeling unit is specifically used to:
[0081] When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, three rotation matrices are used to construct the transformation matrix of the first rotation axis, and the transformation matrix of the second rotation axis is determined based on the modeling method;
[0082] When the multi-degree-of-freedom mechanism is a mechanism that rotates first and then translates, three rotation matrices are used to construct the transformation matrix of the second rotation axis, and the transformation matrix of the first rotation axis is determined based on the modeling method.
[0083] As a further improvement, the forward kinematics model building unit is specifically used to:
[0084] When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, the transformation matrix of the point coordinate system is right-multiplied by the transformation matrix of the first rotation axis, the transformation matrix of the second rotation axis, and the transformation matrix from the end coordinate system to the workpiece coordinate system in sequence to obtain the forward kinematic model;
[0085] When the multi-degree-of-freedom mechanism is a mechanism that rotates first and then translates, the transformation matrix of the point coordinate system is used to multiply the transformation matrix of the second rotation axis and the transformation matrix of the first rotation axis on the left, and then multiplied on the right by the transformation matrix from the end coordinate system to the workpiece coordinate system to obtain the forward kinematic model.
[0086] In an embodiment of the present application, the linear axis is taken as a whole to establish a point coordinate system, and the transformation matrix of the point coordinate system is constructed based on the homogeneous linear equations. The kinematic model is simplified while maintaining the minimization of the model, and the analytical solution of the inverse kinematic model is obtained through Cramer's law. At the same time, the present application does not introduce redundant parameters, and the parameters of the linear axis and the rotary axis are not correlated. Therefore, there is no need to separate the linear axis and the rotary axis. They can be directly used for overall calibration without affecting each other's error parameters. This improves the existing technology that separates the linear axis and the rotary axis for step-by-step kinematic calibration at the cost of introducing redundant parameters, and there is a technical problem that the error calibration accuracy of the overall motion of the end of the mechanism is affected.
[0087] The embodiment of the present application further provides a multi-degree-of-freedom mechanism kinematic modeling device, the device including a processor and a memory;
[0088] The memory is used to store program codes and transmit the program codes to the processor;
[0089] The processor is used to execute the multi-degree-of-freedom mechanism kinematic modeling method in the aforementioned method embodiment according to the instructions in the program code.
[0090] An embodiment of the present application further provides a computer-readable storage medium for storing program code, which, when executed by a processor, implements the multi-degree-of-freedom mechanism kinematic modeling method in the aforementioned method embodiment.
[0091] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0092] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0093] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0094] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0095] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0096] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0097] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for executing all or part of the steps of the method described in each embodiment of the present application through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), random access memory (English full name: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program code.
[0098] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A kinematic modeling method for multi-degree-of-freedom mechanisms, It is characterized in that include: The three linear axes of the multi-degree-of-freedom mechanism are used as a whole to construct a point coordinate system, and a transformation matrix of the point coordinate system is constructed based on a homogeneous linear equation group; Construct the transformation matrices of the two rotation axes respectively; Construct the transformation matrix from the end coordinate system of the multi-degree-of-freedom mechanism to the workpiece coordinate system; Constructing a forward kinematics model based on the transformation matrix of the point coordinate system, the transformation matrix of the two rotation axes, and the transformation matrix from the end coordinate system to the workpiece coordinate system; According to the posture representation method, the value of the rotary axis motor is obtained by solving the rotation matrix at the end of the multi-degree-of-freedom mechanism, and the translation matrix at the end of the multi-degree-of-freedom mechanism is used as a non-homogeneous linear equation group to solve the value of the linear axis motor through Cramer's rule to obtain the inverse kinematics model.
2. The kinematic modeling method of a multi-degree-of-freedom mechanism according to claim 1, It is characterized in that The step of constructing the transformation matrices of the two rotation axes respectively includes: When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, three rotation matrices are used to construct the transformation matrix of the first rotation axis, and the transformation matrix of the second rotation axis is determined based on the modeling method; When the multi-degree-of-freedom mechanism is a mechanism that rotates first and then translates, three rotation matrices are used to construct the transformation matrix of the second rotation axis, and the transformation matrix of the first rotation axis is determined based on a modeling method.
3. The kinematic modeling method of a multi-degree-of-freedom mechanism according to claim 2, It is characterized in that The forward kinematics model is constructed based on the transformation matrix of the point coordinate system, the transformation matrix of the two rotation axes, and the transformation matrix from the end coordinate system to the workpiece coordinate system, including: When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, the transformation matrix of the point coordinate system is right-multiplied by the transformation matrix of the first rotation axis, the transformation matrix of the second rotation axis, and the transformation matrix from the end coordinate system to the workpiece coordinate system in sequence to obtain a forward kinematics model; When the multi-degree-of-freedom mechanism is a mechanism that rotates first and then translates, the transformation matrix of the point coordinate system is used to left-multiply the transformation matrix of the second rotation axis and the transformation matrix of the first rotation axis in sequence, and then right-multiplied by the transformation matrix from the end coordinate system to the workpiece coordinate system to obtain a forward kinematics model.
4. A multi-degree-of-freedom mechanism kinematics modeling device, It is characterized in that include: A linear axis modeling unit, used for constructing a point coordinate system by taking the three linear axes of the multi-degree-of-freedom mechanism as a whole, and constructing a transformation matrix of the point coordinate system based on a homogeneous linear equation group; A rotation axis modeling unit, used to construct transformation matrices of two rotation axes respectively; A workpiece coordinate system modeling unit is used to construct a transformation matrix from the end coordinate system of the multi-degree-of-freedom mechanism to the workpiece coordinate system; A forward kinematics model construction unit, used to construct a forward kinematics model based on the transformation matrix of the point coordinate system, the transformation matrices of the two rotation axes, and the transformation matrix from the end coordinate system to the workpiece coordinate system; The inverse kinematics model building unit is used to obtain the value of the rotary axis motor by solving the rotation matrix at the end of the multi-degree-of-freedom mechanism according to the posture representation method, and to obtain the value of the linear axis motor by solving the translation matrix at the end of the multi-degree-of-freedom mechanism as a non-homogeneous linear equation group through Cramer's rule to obtain the inverse kinematics model.
5. The multi-degree-of-freedom mechanism kinematics modeling device according to claim 4, It is characterized in that The rotating axis modeling unit is specifically used for: When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, three rotation matrices are used to construct the transformation matrix of the first rotation axis, and the transformation matrix of the second rotation axis is determined based on the modeling method; When the multi-degree-of-freedom mechanism is a mechanism that rotates first and then translates, three rotation matrices are used to construct the transformation matrix of the second rotation axis, and the transformation matrix of the first rotation axis is determined based on a modeling method.
6. The multi-degree-of-freedom mechanism kinematics modeling device according to claim 5, It is characterized in that The forward kinematics model building unit is specifically used for: When the multi-degree-of-freedom mechanism is a mechanism that translates first and then rotates, the transformation matrix of the point coordinate system is right-multiplied by the transformation matrix of the first rotation axis, the transformation matrix of the second rotation axis, and the transformation matrix from the end coordinate system to the workpiece coordinate system in sequence to obtain a forward kinematics model; When the multi-degree-of-freedom mechanism is a mechanism that rotates first and then translates, the transformation matrix of the point coordinate system is used to sequentially multiply the transformation matrix of the second rotation axis, the transformation matrix of the first rotation axis, and the transformation matrix of the second rotation axis. The matrix is converted and then right-multiplied by the transformation matrix from the end coordinate system to the workpiece coordinate system to obtain the forward kinematics model.
7. A multi-degree-of-freedom mechanism kinematics modeling device, It is characterized in that The device comprises a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the multi-degree-of-freedom mechanism kinematic modeling method described in any one of claims 1-3 according to the instructions in the program code.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store program codes, and when the program codes are executed by a processor, the kinematic modeling method for a multi-degree-of-freedom mechanism according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Mechanical arm kinematics parameter calibration method based on measuring of laser tracker
CN110281241A
Inverse kinematics solving method for five-degree-of-freedom series-parallel robots with parasitic motion
CN111113425A
Inverse kinematics general solving method and device for multi-degree-of-freedom mechanical arm
CN114147720A
Multi-degree-of-freedom mechanism kinematics modeling method, device and equipment and storage medium
CN115982893A
