A control method, device and electronic device for seven-degree-of-freedom robotic arm motion
By combining the inverse solution of theoretical kinematics and the iterative solution of error kinematics in the kinematics of the seven-degree-of-freedom manipulator, the problems of kinematic modeling errors and singular configurations are solved, the accuracy and real-time performance of the solution are improved, and the solution is simplified process.
Patent Information
- Application Number
- CN202410427652.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-04-10
AI Technical Summary
The existing seven-degree-of-freedom manipulator has accuracy and real-time problems during the inverse kinematic solution process. Especially in the case of kinematic modeling errors and singular configurations, the analytical solution method cannot meet the accuracy requirements, and the numerical solution method is computationally intensive and iterative. A large number of times results in slow solution speed.
Using a method based on the inverse solution of theoretical kinematics and the inverse solution of error kinematics to the iterative equation, through the damped least squares differential kinematics equation of the Jacobian pseudo-inverse, combined with the double inverse tangent function and the minimum stroke method, the solution process is optimized and the initial optimal solution is provided. Optimize the solution and perform iterative solution to avoid the influence of dissatisfaction of the Jacobian matrix and singular positions.
The solution accuracy and real-time performance of the kinematics of the seven-degree-of-freedom manipulator are improved, the number of iterations is reduced, the fault tolerance of the input data and the accuracy of the inverse solution are enhanced, and the solution process is simplified.
Smart Images

Figure CN118143948B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical robots, and in particular to a control method, device and electronic equipment for the movement of a seven-degree-of-freedom mechanical arm. Background Art
[0002] The workspace of the robot arm has 6 degrees of freedom, including 3 positional degrees of freedom and 3 rotational degrees of freedom. The joint space of the robot arm must have at least 6 degrees of freedom to meet the position and posture control requirements of the robot arm in the workspace. Compared with ordinary six-degree-of-freedom robot arms, seven-degree-of-freedom robot arms are more flexible and can perform motion optimization work such as obstacle avoidance and singularity avoidance without affecting the end posture. Therefore, seven-degree-of-freedom robot arms have been increasingly used in fields such as medical technology.
[0003] The kinematic problem of a general manipulator includes three parts: ① establishment of a kinematic model, ② kinematic forward solution (calculating the end position and posture of the manipulator through the angle values of each joint of the manipulator), and ③ kinematic inverse solution (calculating the angle values of each joint of the manipulator through the end position and posture of the manipulator). The inverse kinematic solution is relatively complex because the structure and constraints of the manipulator make the joint angles mutually restrictive, and various constraints and possible singularities need to be considered. In practical applications, the industry usually divides the inverse problem into two categories of solution methods: analytical solution and numerical solution. The analytical solution has the advantages of fast solution speed and complete closed solution, but it usually needs to be highly coupled with the configuration of the manipulator and is very sensitive to the errors of the kinematic model. When the actual parameters of the model are inconsistent with the theoretical parameters, a large end position error will be generated; the numerical solution is essentially an iterative solution with a simple derivation process and good robustness, but the calculation is large, it will be affected by singular configurations, and it is easy to fall into a local optimal solution or no solution.
[0004] Since the joint space dimension of the seven-degree-of-freedom manipulator is larger than the workspace dimension, in theory, a single workspace posture can correspond to an infinite number of solutions in its joint space. Therefore, for analytical solutions, it is usually necessary to add constraints to solve; for numerical solutions, it is usually necessary to construct a pseudo-inverse matrix for iteration. In addition, for mass-produced seven-degree-of-freedom manipulators, kinematic model parameter errors are inevitable due to the existence of factors such as part manufacturing tolerances and assembly errors. For seven-degree-of-freedom manipulators with kinematic modeling errors, the analytical solution can only use theoretical model parameters to find the kinematic inverse solution, which cannot meet the accuracy requirements; the numerical solution cannot meet the real-time requirements due to the large amount of iterative calculations.
[0005] Existing methods usually solve the kinematics of a seven-DOF robotic arm based on a given arm angle. In some application scenarios where the arm angle input cannot be determined, solving the kinematic problem becomes more abstract and complex.
[0006] Therefore, the prior art needs to be further developed. Summary of the invention
[0007] The purpose of the present invention is to overcome the above technical deficiencies and provide a control method, device and electronic equipment for the motion of a seven-degree-of-freedom robotic arm to solve the problems existing in the prior art.
[0008] To achieve the above technical objectives, according to a first aspect of the present invention, the present invention provides a method for controlling the motion of a seven-degree-of-freedom robotic arm, the method comprising:
[0009] The seven-degree-of-freedom mechanical arm includes a first joint, a second joint, a third joint, a fourth joint, a fifth joint, a sixth joint and a seventh joint connected in sequence from a base to an end working part, and the control method includes:
[0010] Based on the theoretical kinematics model of the robot arm, a theoretical kinematics inverse solution equation is established, and based on a given end position and a specified third joint angle, an initial optimal solution is obtained according to the theoretical kinematics inverse solution equation;
[0011] Based on the error kinematics model of the robot and the damped least square differential kinematics equation based on Jacobi pseudo-inverse, an inverse iterative equation for the error kinematics of the robot is established;
[0012] Based on the initial optimal solution, the angles of each joint are solved by inversely solving the iterative equations of the error kinematics of the robot arm.
[0013] Specifically, the error kinematics model of the robot arm and the damped least squares differential kinematics equation based on Jacobi pseudo-inverse are used to establish the error kinematics inverse iterative equation of the robot arm, including:
[0014] According to the error kinematics model of the robot arm, a forward solution equation of error kinematics is established;
[0015] According to the error kinematics forward solution equation, the error differential kinematics geometric Jacobian matrix of the six joint angles except the third joint is established;
[0016] According to the error differential kinematics geometric Jacobian matrix, establishing the damped least squares differential kinematics equation based on Jacobian pseudo-inverse;
[0017] The error kinematics inverse solution iterative equation is established according to the Jacobi pseudo-inverse-based damped least square differential kinematics equation and a preset iteration coefficient.
[0018] Specifically, based on the given end position and the specified third joint angle, the initial optimal solution is obtained according to the theoretical kinematic inverse equation, including:
[0019] According to the theoretical kinematics model of the robot arm, performing theoretical kinematics inverse solution;
[0020] In the process of solving the inverse solution of the theoretical kinematics, singular configuration judgment is performed;
[0021] When the robot arm is in a singular position, each joint angle of the robot arm at the previous moment is substituted into the error kinematics inverse iterative equation of the robot arm for iterative solution;
[0022] and / or,
[0023] When the robot is in a non-singular configuration, a set of initial optimal solutions is selected from the standard solutions obtained from the theoretical kinematic inverse solution, and substituted into the error kinematic inverse solution iterative equation of the robot for iterative solution.
[0024] Specifically, the process of solving the theoretical kinematic inverse solution includes:
[0025] The solution is performed in the order of the fourth joint angle, the second joint angle, the first joint angle, the sixth joint angle, the fifth joint angle, and the seventh joint angle.
[0026] Specifically, the process of solving the theoretical kinematic inverse solution also includes:
[0027] The theoretical kinematic inverse solution is always performed using a double inverse tangent function.
[0028] Specifically, a set of optimal solutions is selected from the standard solutions obtained by the theoretical kinematic inverse solution, including:
[0029] Taking the joint angles of the robot arm at the previous moment as reference values, the minimum stroke method is used to select the standard solution to obtain the set of optimal solutions.
[0030] Specifically, a set of optimal solutions is selected from the standard solutions obtained from the theoretical kinematic inverse solution, and further includes:
[0031] The solution is selected according to the preset joint angle travel weight parameters.
[0032] Specifically, it also includes: controlling the movement of the seven-degree-of-freedom robotic arm according to the solved angles of each joint.
[0033] According to a second aspect of the present invention, there is provided a control device for the movement of a seven-degree-of-freedom robotic arm, the seven-degree-of-freedom robotic arm comprising a first joint, a second joint, a third joint, a fourth joint, a fifth joint, a sixth joint and a seventh joint connected in sequence from a base to an end working part, the control device comprising:
[0034] An initial optimal solution calculation module is used to establish a theoretical kinematics inverse solution equation based on the theoretical kinematics model of the manipulator, and obtain an initial optimal solution based on the theoretical kinematics inverse solution equation based on a given end position and a specified third joint angle;
[0035] An inverse solution iterative equation building module is used to establish an inverse solution iterative equation of the error kinematics of the robotic arm based on the error kinematics model of the robotic arm and the damped least squares differential kinematics equation of the Jacobi pseudo-inverse;
[0036] The joint angle solving module is used to solve the angles of each joint by inversely solving the iterative equations of the error kinematics of the robot arm based on the initial optimal solution.
[0037] Specifically, the inverse solution iterative equation construction module includes:
[0038] An error model forward solution module is used to establish an error kinematics forward solution equation according to the error kinematics model of the robot arm;
[0039] A first transformation module is used to establish an error differential kinematics geometric Jacobian matrix of six joint angles except the third joint according to the error kinematics forward solution equation;
[0040] A second transformation module is used to establish the damped least square differential kinematics equation based on Jacobian pseudo-inverse according to the error differential kinematics geometric Jacobian matrix;
[0041] The third transformation module is used to establish the error kinematics inverse solution iterative equation according to the damped least square differential kinematic equation based on Jacobi pseudo-inverse and the preset iteration coefficient.
[0042] Specifically, the initial optimal solution calculation module includes:
[0043] A singular position judgment module is used to perform a theoretical kinematic inverse solution according to a theoretical kinematic model of the robot arm, and to perform a singular position judgment in the process of solving the theoretical kinematic inverse solution;
[0044] A singular position solving module, when the robot arm is in a singular position, substitutes each joint angle of the robot arm at the previous moment into the error kinematics inverse iterative equation of the robot arm for iterative solution;
[0045] The non-singular configuration solving module selects a set of initial optimal solutions from the standard solutions obtained by the inverse solution of the theoretical kinematics when the robot is in a non-singular configuration, substitutes them into the inverse solution iterative equation of the error kinematics of the robot, and performs iterative solution.
[0046] Specifically, the order of solving the standard solution is:
[0047] The fourth joint, the second joint, the first joint, the sixth joint, the fifth joint, the seventh joint.
[0048] Specifically, the algorithm for selecting a set of optimal solutions from the standard solutions includes:
[0049] Minimum stroke method.
[0050] Specifically, it also includes:
[0051] The motion control module is used to control the motion of the seven-degree-of-freedom robotic arm according to the solved angles of each joint.
[0052] According to a third aspect of the present invention, there is provided an electronic device, comprising: a memory; and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the above-mentioned control method for the movement of a seven-degree-of-freedom robotic arm is implemented.
[0053] Beneficial effects:
[0054] 1. The analytical solution of the kinematics of the seven-degree-of-freedom manipulator proposed in the present invention can solve the kinematics problem of the seven-degree-of-freedom manipulator with an offset elbow joint, which is different from the prior art. In addition, the derivation of the trigonometric formulas all uses the double inverse tangent function, which has three advantages:
[0055] a) The calculation results do not require additional joint angle range judgment and adjustment;
[0056] b) Improves the error tolerance of input data, eliminating the need for additional judgment on the validity of input data;
[0057] c) During floating-point operations, the uniformity of inverse solution accuracy can be improved.
[0058] 2. The numerical solution of the kinematics of the seven-degree-of-freedom manipulator proposed in the present invention can solve the influence of the insufficient rank of the Jacobian matrix of the seven-degree-of-freedom manipulator on the iteration by using the Jacobian pseudo-inverse, and can solve the influence of the manipulator in a singular position on the iteration by setting the damping coefficient. In addition, since the initial value of the iteration is based on the initial solution of the analytical solution, it has the advantages of less iterations and high global optimal probability;
[0059] 3. Since the method proposed in the present invention combines the advantages of fast calculation speed of analytical solution and high solution accuracy of numerical solution, while offsetting the disadvantages of sensitivity of analytical solution to modeling errors and slow solution speed of numerical solution, it can improve the solution accuracy and real-time performance of the kinematics of the seven-degree-of-freedom robotic arm.
[0060] 4. The present invention solves the angles of each joint by specifying additional constraints on the third joint angle, thereby optimizing the solution process, making the solution of kinematic problems more concise and intuitive, and improving the solution speed and accuracy. The initial value of the iteration is based on the initial solution of the analytical solution, which will have a small number of iterations and a high probability of global optimality. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 A schematic diagram showing the coordinate relationship of a seven-degree-of-freedom robotic arm established based on the DH matrix method is shown;
[0062] Figure 2 A logic diagram showing a robot arm control process according to an exemplary embodiment of the present application;
[0063] Figure 3 A flow chart of a control method according to an exemplary embodiment of the present application is shown;
[0064] Figure 4 A block diagram showing the composition of a control device according to an exemplary embodiment of the present application is shown;
[0065] Figure 5 A block diagram showing the composition of an initial optimal solution calculation module according to an exemplary embodiment of the present application is shown;
[0066] Figure 6 A block diagram showing a composition of an inverse solution iterative equation building module according to an exemplary embodiment of the present application is shown;
[0067] Figure 7 A block diagram of the composition of an electronic device for motion control of a seven-degree-of-freedom robotic arm according to an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0069] The terms "first", "second", etc. of the present application are used to distinguish different objects, rather than to describe a predetermined order. 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 limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0070] Reference to "embodiment" herein means that the predetermined features, structures, or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0071] The present invention will be further described below in conjunction with the accompanying drawings and preferred embodiments.
[0072] Since the joint space dimension of the seven-degree-of-freedom manipulator is larger than the workspace dimension, in theory, a single workspace posture can correspond to an infinite number of solutions in its joint space. Therefore, for analytical solutions, it is usually necessary to add constraints to solve; for numerical solutions, it is usually necessary to construct a pseudo-inverse matrix for iteration. In addition, for mass-produced seven-degree-of-freedom manipulators, kinematic model parameter errors are inevitable due to the existence of factors such as part manufacturing tolerances and assembly errors. For seven-degree-of-freedom manipulators with kinematic modeling errors, the analytical solution can only use theoretical model parameters to find the kinematic inverse solution, which cannot meet the accuracy requirements; the numerical solution cannot meet the real-time requirements due to the large amount of iterative calculations.
[0073] Existing methods usually solve the kinematics of a seven-DOF robotic arm based on a given arm angle. In some application scenarios where the arm angle input cannot be determined, solving the kinematic problem becomes more abstract and complex.
[0074] In view of the above problems existing in the kinematic solution and control process of a seven-degree-of-freedom manipulator in the prior art, the present invention proposes a control method for the motion of a seven-degree-of-freedom manipulator. Due to the optimization of the solution process, its solution speed and accuracy are better than the prior art. The present invention proposes a numerical solution method for the kinematics of a seven-degree-of-freedom manipulator based on the initial solution of the analytical solution. This method can avoid the influence of the seven-degree-of-freedom manipulator Jacobian matrix being dissatisfied with the rank and being in a singular configuration. Compared with the general numerical solution method, this method will have fewer iterations and global optimal probability. Compared with the prior art, the method proposed by the present invention comprehensively considers the influence of kinematic modeling errors and the influence of iterative calculation speed, and improves the real-time performance and solution accuracy of the kinematics of the seven-degree-of-freedom manipulator.
[0075] To achieve the above technical objectives, according to a first aspect of the present invention, the present invention provides a control method for motion of a seven-degree-of-freedom robotic arm. Figure 1A schematic diagram of the link coordinate relationship of a seven-degree-of-freedom robotic arm established based on the DH matrix method is shown, wherein the seven-degree-of-freedom robotic arm includes a first joint, a second joint, a third joint, a fourth joint, a fifth joint, a sixth joint, and a seventh joint connected sequentially from a base to a terminal working portion, and a coordinate system of the seven-degree-of-freedom robotic arm established based on the DH matrix method includes joint coordinate systems i of 1, 2, 3, 4, 5, 6, and 7, a total of 7 joint parts, which are established sequentially at the joint parts from the starting end base to the terminal working portion, and the base coordinate system is supplemented as a reference coordinate system i=0, so The joint part 1 corresponds to the coordinate system i=1 of the first joint, the joint part 2 corresponds to the coordinate system i=2 of the second joint, the joint part 3 corresponds to the coordinate system i=3 of the third joint, the joint part 4 corresponds to the coordinate system i=4 of the fourth joint, the joint part 5 corresponds to the coordinate system i=5 of the fifth joint, the joint part 6 corresponds to the coordinate system i=6 of the sixth joint, and the joint part 7 corresponds to the coordinate system i=7 of the seventh joint. Unless otherwise specified, the coordinate systems in this application are all right-handed coordinate systems. The right-handed coordinate system is one of the methods for defining a rectangular coordinate system in space. The positive directions of the x-axis, y-axis and z-axis in this coordinate system are defined as follows: place your right hand at the origin, so that the thumb, index finger and middle finger are at right angles to each other, point the thumb to the positive direction of the x-axis, and the index finger to the positive direction of the y-axis. The direction pointed by the middle finger is the positive direction of the z-axis. The right-hand coordinate system can also be determined as follows: if the thumb of the right hand points to the positive direction of the first coordinate axis (x-axis), and the remaining fingers are clenched in the direction of the second axis (y-axis) rotating around the first axis, it coincides with the third axis (z-axis), and this coordinate system is called a right-hand coordinate system. The theoretical DH parameters of the seven-degree-of-freedom robot are shown in the following table:
[0076] Table 1 Theoretical DH parameters of seven-DOF manipulator
[0077]
[0078]
[0079] Among them, d i is the offset distance between the origins of the adjacent joint coordinate systems i-1 to i from 1 to 7; α i is the vertical distance from the adjacent coordinate system i-1 to the iz axis; a i For any two adjacent coordinate systems, the z-axis of the first coordinate system i-1 rotates around its x-axis by an angle a to coincide with the z-axis of the second coordinate system i. i 、a i d i It is related to the robot configuration and usually has a relatively fixed value, as shown in Table 1. i It is the rotation angle of each joint, which changes with the movement of the robot arm.
[0080] The position and posture of a seven-degree-of-freedom manipulator in space can usually be expressed in the form of a homogeneous transformation matrix RT:
[0081]
[0082] Among them, R 3×3 Used to indicate posture, T 3×1 Used to represent position. The homogeneous transformation matrix can also be used to represent the transformation relationship between positions in space. When used to represent the transformation relationship, R 3×3 Used to represent rotation, T 3×1 is used to represent translation, where is the rotation and translation column vector, is the translation vector, where nx, ny, and nz are used for the vector Matrix representation of , ox, oy, oz are used for vector Matrix representation of ax, ay, az for vector px, py, and pz are used for the matrix representation of vector pz.
[0083] By convention, the coordinate systems mentioned in this article refer to right-hand coordinate systems. According to the DH parameter method, the homogeneous transformation matrix of coordinate system i relative to i-1 in the seven-degree-of-freedom manipulator can be expressed as:
[0084]
[0085] Among them, the joint coordinate system i = 1, 2, ..., 7. Parameter α i 、a i d i Related to the robot configuration, generally has a relatively fixed value; θ i It is the angle of each joint, which will change as the robot moves.
[0086] From the above table, it can be seen that after considering the manufacturing error of the seven-degree-of-freedom robot, the DH parameters with error are shown in the following table:
[0087] Table 2 DH parameters of seven-DOF manipulator with error
[0088] i <![CDATA[α′ i ]]> <![CDATA[a′ i ]]> <![CDATA[θ i ]]> <![CDATA[d′ i ]]> 1 <![CDATA[-90+e_α1]]> <![CDATA[0+e_a1]]> <![CDATA[θ1]]> <![CDATA[d1+e_d1]]> 2 <![CDATA[90+e_α2]]> <![CDATA[0+e_a2]]> <![CDATA[θ2]]> <![CDATA[0+e_d2]]> 3 <![CDATA[-90+e_α3]]> <![CDATA[a3+e_a3]]> <![CDATA[θ3]]> <![CDATA[d3+e_d3]]> 4 <![CDATA[90+e_α4]]> <![CDATA[a4+e_a4]]> <![CDATA[θ4]]> <![CDATA[0+e_d4]]> 5 <![CDATA[-90+e_α5]]> <![CDATA[0+e_a5]]> <![CDATA[θ5]]> <![CDATA[d5+e_d5]]> 6 <![CDATA[90+e_α6]]> <![CDATA[0+e_a6]]> <![CDATA[θ6]]> <![CDATA[0+e_d6]]> 7 <![CDATA[0+e_α7]]> <![CDATA[0+e_a7]]> <![CDATA[θ7]]> <![CDATA[d7+e_d7]]>
[0089] Among them, e_a 1~7 、e_α 1~7 、e_d 1~7 is the error between the actual DH parameters of the robot and the theoretical parameters.
[0090] Generally, through the common DH parameter calibration method, e_a can be obtained 1~7 、e_α1~7 、e_d 1~7 The actual value of . Then the kinematic model of the i-th connecting rod with error is:
[0091]
[0092] In short:
[0093]
[0094] It means the transformation relationship from the i-1th coordinate system to the i-th coordinate system considering the modeling error, where The matrix is Transpose of a matrix.
[0095] See also Figure 2 , Figure 2 A logic diagram of a robotic arm control process according to an exemplary embodiment of the present application is shown. The high-precision kinematics solution method proposed in the present invention mainly includes two parts: a kinematics forward solution solution method and a kinematics inverse solution solution method:
[0096] When the kinematics positive solution needs to be solved, the given seven joint angle values are substituted into the error kinematics positive solution equation obtained based on the error kinematics model to obtain the end position of the seven-degree-of-freedom robot arm.
[0097] When it is necessary to solve the inverse kinematic solution, the given end position and the specified third joint angle are substituted into the theoretical kinematic inverse solution equation obtained based on the theoretical kinematic model, and 8 groups of general solutions within the standard joint angle range are calculated; the initial optimal solution is selected from the general solution according to the actual limit conditions of each joint and the minimum stroke method; the initial optimal solution is substituted into the error kinematic inverse solution iterative equation obtained based on the error differential kinematics geometric Jacobian matrix, and an iterative solution is performed to obtain the angle values of each joint of the seven-degree-of-freedom robot arm.
[0098] The above method can solve three kinematics-related problems, namely, ① kinematic model establishment, ② kinematic forward solution, and ③ kinematic inverse solution, and has a faster speed and higher accuracy than general kinematic solution methods.
[0099] Specifically, the control method of the seven-degree-of-freedom robotic arm movement includes:
[0100] Step S100: Based on the theoretical kinematics model of the robotic arm, a theoretical kinematics inverse equation is established, and based on a given end position and a specified third joint angle, an initial optimal solution is obtained according to the theoretical kinematics inverse equation.
[0101] Specifically, in step S100, the inverse solution of the theoretical kinematics equation to obtain the initial optimal solution includes:
[0102] First, the standard solution of the 4th joint angle is solved, and then the standard solutions of the 2nd and 1st joint angles are solved in sequence according to the specified 3rd joint angle. Finally, the standard solutions of the 6th, 5th, and 7th joint angles are solved in the order of general ball joint solutions. This method can solve all 8 groups of standard solutions for the 7-DOF manipulator, which is convenient for subsequent generation of multiple solutions according to the actual joint angle range of the manipulator.
[0103] Specifically, in step S100, based on the given end position and the specified third joint angle, the initial optimal solution is obtained according to the theoretical kinematic inverse equation, including:
[0104] Step S110: performing theoretical kinematic inverse solution according to the theoretical kinematic model of the robot arm.
[0105] Specifically, in step S110, the process of solving the theoretical kinematic inverse solution further includes:
[0106] The theoretical kinematic inverse solution is always performed using a double inverse tangent function.
[0107] Specifically, in step S110, the process of solving the theoretical kinematic inverse solution includes:
[0108] The solution is performed in the order of the fourth joint angle, the second joint angle, the first joint angle, the sixth joint angle, the fifth joint angle, and the seventh joint angle.
[0109] It should be noted here that the solution within the range of (-180°, 180°] is called the standard solution.
[0110] Step S120, in the process of solving the theoretical kinematic inverse solution, performing singularity position determination;
[0111] Step S130: when the robot arm is in a singular position, substitute each joint angle of the robot arm at the previous moment into the error kinematics inverse iterative equation of the robot arm for iterative solution;
[0112] and / or,
[0113] When the robot is in a non-singular configuration, a set of initial optimal solutions is selected from the standard solutions obtained from the theoretical kinematic inverse solution, and substituted into the error kinematic inverse solution iterative equation of the robot for iterative solution.
[0114] Understandably, see Figure 3 The present invention adopts the method of specifying the third joint angle to increase the working space constraint of the seven-degree-of-freedom manipulator. In addition, a small amount is set for critical calculation judgment of floating-point numbers. The theoretical kinematic inverse solution equation proposed by this method solves the joint angle in the order of 4, 2, 1, 6, 5, 7, which is consistent with the physical characteristics of the SRS configuration of the manipulator.
[0115] It should be noted here that the coordinate system fixed at the end of the first connecting rod is called the shoulder joint coordinate system; the coordinate system fixed at the end of the third connecting rod is called the elbow joint coordinate system; and the coordinate system fixed at the end of the fifth connecting rod is called the wrist joint coordinate system.
[0116] Specifically, in step S130, a set of optimal solutions is selected from the standard solutions obtained by the theoretical kinematic inverse solution, including:
[0117] Taking the joint angles of the robot arm at the previous moment as reference values, the minimum stroke method is used to select the standard solution to obtain the set of optimal solutions.
[0118] Specifically, a set of optimal solutions is selected from the standard solutions obtained from the theoretical kinematic inverse solution, and further includes:
[0119] The solution is selected according to the preset joint angle travel weight parameters.
[0120] The principle of the control method for the motion of a seven-degree-of-freedom mechanical arm proposed by the present invention is explained below by means of a specific embodiment:
[0121] When the homogeneous transformation matrix RT of the end of the robot is given, it can be
[0122]
[0123] Among them, the definition is the rotation and translation column vector, and is defined is the translation vector, where nx, ny, and nz are used for the vector Matrix representation of , ox, oy, oz are used for vector Matrix representation of ax, ay, az for vector px, py, and pz are used for the matrix representation of vector pz.
[0124] Then the origin of the wrist joint coordinate system P W And the origin coordinates (pxx pyy pzz) can be calculated according to the following formula:
[0125]
[0126] The following is the solution method for each joint angle:
[0127] (1) Solution method for the fourth joint angle:
[0128] Assume that the process parameters AsinB and AcosB are:
[0129] AsinB=d3*a4-a3*d5
[0130] AcosB=a3*a4+d3*d5
[0131] If |AsinB|<ε and |AcosB|<ε (ε is the floating point precision, generally 0.000001), it means that the configuration parameters of the seven-degree-of-freedom robot are abnormal, resulting in failure to solve, and the algorithm can return directly. Otherwise, the process parameters A and B can be set as follows:
[0132]
[0133] B=arctan2(AsinB,AcosB),∈(-180°,180°]
[0134] With c B4 =cos(θ 4,1 +B) = cos(θ 4,2 +B), then c B4 It can be expressed as follows:
[0135]
[0136] If c B4 >(1-ε) or c B4 <(-1+ε), it means that the given manipulator end homogeneous transformation matrix is outside the manipulator workspace and is unreachable, and the algorithm can return directly. B4 ≤(1-ε), then the two standard solutions for the fourth joint angle are:
[0137] θ 4,1 =arctan2(s B4 , c B4 )-B,∈(-180°,360°]
[0138] θ 4,2 =arctan2(-s B4 , c B4 )-B,∈(-360°,180°]
[0139] Among them, s B4 =Sin(θ 4,1 )=-Sin(θ 4,2 ), can be obtained by the formula: Solve. If θ 4,1 >180°thenθ 4,1 =θ 4,1 -360°; if θ 4,2 ≤-180°then θ 4,2 =θ 4,2 +360°.
[0140] (2) Solution method for the second joint angle:
[0141] At this point, the specified third joint angle (temporarily set as θ3) and the two sets of fourth joint angles solved in step (1) (for each set of fourth joint angles, temporarily set as ), the process parameters CsinD and CcosD can be set as:
[0142] CsinD=-(d5*s4-a4*c4-a3)*c3
[0143] CcosD=d5*c4+a4*s4+d3
[0144] in,
[0145] In the above formula, if |CsinD|<ε and |CcosD|<ε, it means that the given end homogeneous transformation matrix and the specified third joint angle will make the seven-degree-of-freedom robot arm in a singular position, resulting in an inability to solve, and the algorithm can return directly. Otherwise, the process parameters C and D can be set as follows:
[0146]
[0147] D=arctan2(CsinD,CcosD),∈(-180°,180°]
[0148] Features Then c D2 It can be expressed as follows:
[0149]
[0150] If c D2 >(1-ε) or c D2 <(-1+ε), it means that the given manipulator end homogeneous transformation matrix is outside the manipulator workspace and is unreachable, and the algorithm can return directly. D2 ≤(1-ε), then for each group of θ3, The two standard solutions of the second joint angle are:
[0151]
[0152]
[0153] in, like but like but when Take θ 4,1 or θ 4,2, we can use the above method to solve the two standard solutions of the second joint angles corresponding to each fourth joint angle, a total of four standard solutions of the second joint angles, recorded as The upper right subscript represents the standard solution of the corresponding 4th joint angle.
[0154] (3) Solution method for the first joint angle:
[0155] At this point, the specified third joint angle (temporarily set as θ3) and the two sets of fourth joint angles solved in step (1) (for each set of fourth joint angles, temporarily set as ), the four groups of second joint angles solved in step (2) (corresponding to each group of second joint angles, temporarily set as ), the process parameters E and F can be set as follows:
[0156] E=d3*s2-a3*c2*c3+d5*(c2*c3*s4+s2*c4)-a4*(c2*c3*c4-s2*s4)
[0157] F=-(d5*s4+a3-a4*c4)*s3
[0158] in, s3=sin(θ3), c3=cos(θ3),
[0159] In the above formula, if |E|<ε and |F|<ε, it means that the given end homogeneous transformation matrix and the specified third joint angle will cause the seven-degree-of-freedom robot to be in a singular position, resulting in an inability to solve, and the algorithm can return directly. In addition, if |pxx|<ε and |pyy|<ε, it means that the given end homogeneous transformation matrix will cause the robot to be in a shoulder singular point. This situation will result in an infinite number of standard solutions for the first joint angle θ1, and the algorithm can return directly to a singular position.
[0160] Otherwise, the process parameter G can be set as follows:
[0161] G=E 2 +F 2
[0162] Its related trigonometric functions It can be expressed as follows:
[0163]
[0164]
[0165] If G1 >(1-ε) or s G1 <(-1+ε) or cG1 >(1-ε) or c G1 <(-1+ε), it means that the given manipulator end homogeneous transformation matrix is outside the manipulator workspace and is unreachable, and the algorithm can return directly. G1 ≤(1-ε) and (-1+ε)≤c G1 ≤(1-ε), then for each group θ3, The standard solution of the first joint angle is:
[0166]
[0167] when Take θ 4,1 or θ 4,2 ,correspond Pick When , the standard solutions of the four first joint angles can be solved according to the above method, which are recorded as The upper right subscript represents the standard solution of the 2nd and 4th joint angles of the corresponding combination.
[0168] After sorting, we can get 4 sets of standard solutions for the 1st to 4th joint angles:
[0169]
[0170] Solving for the 5th to 7th joint angles:
[0171] For each set of standard solutions θ for joint angles 1 to 4 1234,k , where k = 1, 2, 3, 4, let:
[0172] θ 1234,k =(θ 1,k θ 2,k θ 3,k θ 4,k ) T
[0173] Then the calculated homogeneous transformation matrix is:
[0174]
[0175] By have:
[0176]
[0177] Among them, k=1, 2, 3, 4.
[0178] Let c k,6 =rt′ k,33 , if c k,6 >(1-ε) or c k,6<(-1+ε), it means that the standard solution of the given 1st to 4th joint angles will make the axis of the 5th joint of the robot coincide with the axis of the 7th joint. This situation will lead to an infinite number of standard analytical solutions for the 5th joint angle θ5 and the 7th joint angle θ7, and the algorithm can directly return to the singular position. If (-1+ε)≤c k,6 ≤(1-ε), then corresponding to the standard solutions of each given joint angle from 1 to 4, the two standard solutions of the 6th joint angle are:
[0179] θ k,6,1 =arctan2(s6,c k,6 ),∈(0°,180°]
[0180] θ k,6,2 =arctan2(-s6,c k,6 ),∈(-180°,0°]
[0181] Where k = 1, 2, 3, 4,
[0182] At this point, we have:
[0183] θ k,5,1 =arctan2(rt′ k,23 , rt′ k,13 ),∈(-180°, 180°]
[0184] θ k,5,2 =arctan2(-rt′ k,23 , -rt′ k,13 ),∈(-180°, 180°]
[0185] θ k,7,1 =arctan2(rt′ k,32 -t′ k,31 ),∈(-180°, 180°]
[0186] θ k,7,2 arctan2(-rt′ k,32 , rt′ k,31 ),∈(-180°, 180°]
[0187] Corresponding to each given standard solution of joint angles 1 to 4, two sets of standard solutions for joint angles 5 to 7 are summarized as follows:
[0188]
[0189] Among them, k = 1, 2, 3, 4. Finally, the standard solution θ of all 7 joints 1234567,k After sorting, we can get:
[0190]
[0191] Then the 8 sets of standard solutions for all 7 joints are:
[0192]
[0193] At this point, the theoretical kinematic inverse equation is obtained.
[0194] The following describes the minimum stroke method solution proposed by the present invention through a preferred embodiment:
[0195] Assume that the joint positions of the robot arm at the previous moment are the reference positions:
[0196]
[0197] At the current moment, the optional joint angle calculated by the given manipulator end homogeneous transformation matrix RT and the third joint angle θ3 is:
[0198]
[0199] Where i = 1, 2, 3, ..., n (when the actual joint angle range of the robot arm is equal to the standard range (-180°, 180°], it is easy to know that n = 8). Then the target optimization function of the minimum stroke method is:
[0200]
[0201] Among them, ∈ j The weight of each joint angular travel can be selected according to the actual situation, but it should ensure that:
[0202]
[0203] The minimum travel method is to select solutions by traversing each group of joint solutions. Find a set of joint solutions i = m such that V m Has the minimum value, and the solution is selected as the initial optimal solution:
[0204]
[0205] Provided to the inverse iterative solution of error kinematics equation as the initial value of the iteration.
[0206] Step S200, establishing an inverse iterative solution equation of the error kinematics of the robotic arm based on the error kinematics model of the robotic arm and the damped least squares differential kinematics equation based on Jacobi pseudo-inverse;
[0207] Specifically, in step S200, the error kinematics model of the robot arm and the damped least squares differential kinematics equation based on Jacobi pseudo-inverse are used to establish the error kinematics inverse iterative equation of the robot arm, including:
[0208] Step S210: establishing an error kinematics forward solution equation according to the error kinematics model of the robot arm.
[0209] The process of establishing the error kinematics forward solution equation proposed by the present invention in step S210 is described in detail below:
[0210] Based on the above kinematic model of a single connecting rod with error, the error kinematics positive solution equation is obtained:
[0211]
[0212] Among them, j = 1, 2, ..., 7, which represents the homogeneous transformation matrix expression of the j-th connecting rod end fixed coordinate system {j} in the basic coordinate system considering the modeling error.
[0213] When j=7, RT′7 represents the homogeneous transformation matrix of the end of the robot arm taking into account the modeling error.
[0214] Step S220: According to the error kinematics forward solution equation, the error differential kinematics geometric Jacobian matrix of the six joint angles except the third joint is established.
[0215] The process of establishing the error differential kinematics geometric Jacobian matrix proposed by the present invention in step S220 is described in detail below:
[0216] Based on the above kinematic model of a single link with error, the i-th column of the error differential kinematics geometric Jacobian matrix can be expressed as:
[0217]
[0218] Among them, i=1,2,…,7.
[0219] is the unit vector in the positive direction of the z-axis of the i-1th coordinate system of the error kinematics model, equivalent to RT′ i-1 of vector, is the antisymmetric matrix of the vector. is the origin coordinate vector of the i-1th coordinate system, equivalent to RT′ i-1 of vector. Represents the origin coordinate vector of the end-fixed coordinate system of the seven-degree-of-freedom manipulator considering modeling errors.
[0220] The complete error differential kinematics geometric Jacobian matrix is obtained as:
[0221] J=(J1 J2 J3 J4 J5 J6 J7)
[0222] Considering that the angle of the third joint is specified, when using the Jacobian matrix for numerical solution, it is necessary to eliminate the influence of the change of the angle of the third joint on the change of the end posture. There is a degenerate error differential kinematics geometric Jacobian matrix, that is, the error differential kinematics geometric Jacobian matrix of the six joint angles except the third joint is:
[0223] J res =(J1 J2 J4 J5 J6 J7)
[0224] Step S230: establishing the damped least square differential kinematics equation based on Jacobian pseudo-inverse according to the error differential kinematics geometric Jacobian matrix.
[0225] The establishment process of the damped least square differential kinematic equation based on Jacobi pseudo-inverse proposed by the present invention in step S230 is described in detail below:
[0226] Based on the degenerate error differential kinematics geometric Jacobian matrix, the damped least squares differential kinematics equation based on the Jacobian pseudo-inverse is obtained:
[0227]
[0228] in, Represents the joint space velocity vector composed of six joint velocities Represents the spatial pose vector of the end of the seven-degree-of-freedom robotic arm (vx, vy, vz, wx, wy, wz) T ; λ represents the damping coefficient, which can be selected according to actual conditions.
[0229] Step S240: establishing the error kinematics inverse iterative equation according to the Jacobi pseudo-inverse-based damped least square differential kinematic equation and a preset iteration coefficient.
[0230] Specifically, the process of establishing the error kinematics inverse solution iterative equation proposed by the present invention in step S240 is described in detail below:
[0231] Based on the above equations, the inverse iterative equation of error kinematics is obtained:
[0232]
[0233] in, Represents the joint space position vector composed of six joint angles (θ1, θ2, θ4, θ5, θ6, θ7) T , is the result of the kth iteration. When k = 1, Set as the initial value of the iteration. s is the iterative solution step acceleration coefficient, which can be selected according to the actual situation.
[0234] Step S300: Based on the initial optimal solution, the angles of each joint are solved by inversely solving the iterative equations of the error kinematics of the robot arm.
[0235] Specifically, the process of solving the angles of each joint by inversely solving the iterative equations of the error kinematics of the robot arm in step S300 based on the initial optimal solution is described below:
[0236] Assume that the given homogeneous transformation matrix of the end of the robot arm is RT, It can be obtained by the following formula:
[0237] Expand the joint space position vector by the specified third joint angle θ3 make:
[0238]
[0239] have:
[0240]
[0241] set up:
[0242]
[0243]
[0244]
[0245] Where Δpx, Δpy, Δpz, Δoz, Δax, Δny are The expressions represent the corresponding differential variables of px, py, pz, oz, ax, and ny. In the actual iteration process, the maximum number of iterations n needs to be set at the same time. max With permission Error margin When the number of iterations exceeds n max or Less than The iteration calculation can be exited when . It is easy to know that through the iteration equation, can gradually converge to near zero, then Compared to The change in the amount will tend to stabilize and converge to Finally, the end position error can be controlled within the allowable error range. The optimal solution within
[0246] Specifically, the method for controlling the movement of the seven-degree-of-freedom robotic arm further includes: controlling the movement of the seven-degree-of-freedom robotic arm according to the solved angles of each joint.
[0247] It can be understood that the present invention proposes an analytical solution for the kinematics of a seven-degree-of-freedom manipulator. Due to the optimization of the solution process, its solution speed and accuracy are better than the existing technology; the present invention proposes a numerical solution for the kinematics of a seven-degree-of-freedom manipulator based on the initial solution of the analytical solution. This method can avoid the influence of the seven-degree-of-freedom manipulator Jacobian matrix being dissatisfied with the rank and being in a singular configuration. And compared with the general numerical solution, this method will have fewer iterations and global optimal probability; compared with the existing technology, the method proposed by the present invention comprehensively considers the influence of kinematic modeling errors and the influence of iterative calculation speed, and improves the real-time performance and solution accuracy of the kinematics of the seven-degree-of-freedom manipulator.
[0248] See also Figure 4-Figure 6 The present invention provides another embodiment. This embodiment provides a control device 500 for a seven-degree-of-freedom robot arm. The control device 500 for a seven-degree-of-freedom robot arm includes:
[0249] The seven-degree-of-freedom robotic arm includes a first joint, a second joint, a third joint, a fourth joint, a fifth joint, a sixth joint and a seventh joint connected in sequence from a base to an end working part, and the control device includes:
[0250] The initial optimal solution calculation module 510 is used to establish a theoretical kinematics inverse solution equation based on the theoretical kinematics model of the manipulator, and obtain an initial optimal solution according to the theoretical kinematics inverse solution equation based on a given end position and a specified third joint angle;
[0251] An inverse solution iterative equation building module 520 is used to build an inverse solution iterative equation of the error kinematics of the robotic arm based on the error kinematics model of the robotic arm and the damped least square differential kinematics equation of the Jacobi pseudo-inverse;
[0252] The joint angle solving module 530 is used to solve the angles of each joint by inversely solving the iterative equations of the error kinematics of the robot arm based on the initial optimal solution.
[0253] Specifically, the inverse solution iterative equation construction module 520 includes:
[0254] The error model forward solution module 5210 is used to establish an error kinematics forward solution equation according to the error kinematics model of the robot arm;
[0255] The first transformation module 5220 is used to establish the error differential kinematics geometric Jacobian matrix of the six joint angles except the third joint according to the error kinematics forward solution equation;
[0256] A second transformation module 5230 is used to establish the damped least square differential kinematics equation based on Jacobian pseudo-inverse according to the error differential kinematics geometric Jacobian matrix;
[0257] The third transformation module 5240 is used to establish the error kinematics inverse solution iterative equation according to the damped least square differential kinematic equation based on Jacobian pseudo-inverse and the preset iteration coefficient.
[0258] Specifically, the initial optimal solution calculation module 510 includes:
[0259] The singular position judgment module 5110 is used to perform a theoretical kinematic inverse solution according to the theoretical kinematic model of the robot arm, and perform a singular position judgment in the process of solving the theoretical kinematic inverse solution;
[0260] A singular configuration solving module 5120, when the robot arm is in a singular configuration, substitutes each joint angle of the robot arm at the previous moment into the error kinematics inverse iterative equation of the robot arm for iterative solution;
[0261] The non-singular configuration solving module 5130 selects a set of initial optimal solutions from the standard solutions obtained by the theoretical kinematic inverse solution when the robot is in a non-singular configuration, substitutes them into the error kinematic inverse solution iterative equation of the robot, and performs iterative solution.
[0262] Specifically, the order of solving the standard solution is:
[0263] The fourth joint, the second joint, the first joint, the sixth joint, the fifth joint, the seventh joint.
[0264] Specifically, the algorithm for selecting a set of optimal solutions from the standard solutions includes:
[0265] Minimum stroke method.
[0266] Specifically, it also includes:
[0267] The motion control module is used to control the motion of the seven-degree-of-freedom robotic arm according to the solved angles of each joint.
[0268] It can be understood that the present invention proposes an analytical solution for the kinematics of a seven-degree-of-freedom manipulator. Due to the optimization of the solution process, its solution speed and accuracy are better than the existing technology; the present invention proposes a numerical solution for the kinematics of a seven-degree-of-freedom manipulator based on the initial solution of the analytical solution. This method can avoid the influence of the seven-degree-of-freedom manipulator Jacobian matrix being dissatisfied with the rank and being in a singular configuration. And compared with the general numerical solution, this method will have fewer iterations and global optimal probability; compared with the existing technology, the method proposed by the present invention comprehensively considers the influence of kinematic modeling errors and the influence of iterative calculation speed, and improves the real-time performance and solution accuracy of the kinematics of the seven-degree-of-freedom manipulator.
[0269] See also Figure 7In a preferred embodiment, the present application further provides an electronic device 800, the electronic device 800 comprising:
[0270] A memory; and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the control method for the movement of the seven-degree-of-freedom robotic arm is implemented. Figure 7 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0271] like Figure 7 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include but are not limited to: at least one processing unit 810, at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), etc.
[0272] The storage unit 820 stores program codes, and the program codes can be executed by the processing unit 810, so that the processing unit 810 executes the control method according to the embodiment of the present application described in this specification.
[0273] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 8201 and / or a cache memory unit 8202 , and may further include a read-only memory unit (ROM) 8203 .
[0274] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0275] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0276] The electronic device 800 may also communicate with one or more external devices 8001 (e.g., a touch screen, a keyboard, a pointing device, a Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 850. In addition, the electronic device 800 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 860. The network adapter 860 may communicate with other modules of the electronic device 800 through a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0277] The present application also provides a computer-readable storage medium having a computer program stored thereon, and the program implements the above-mentioned control method when executed by a processor.
[0278] It can be understood that the present invention proposes an analytical solution for the kinematics of a seven-degree-of-freedom manipulator. Due to the optimization of the solution process, its solution speed and accuracy are better than the existing technology; the present invention proposes a numerical solution for the kinematics of a seven-degree-of-freedom manipulator based on the initial solution of the analytical solution. This method can avoid the influence of the seven-degree-of-freedom manipulator Jacobian matrix being dissatisfied with the rank and being in a singular configuration. And compared with the general numerical solution, this method will have fewer iterations and global optimal probability; compared with the existing technology, the method proposed by the present invention comprehensively considers the influence of kinematic modeling errors and the influence of iterative calculation speed, and improves the real-time performance and solution accuracy of the kinematics of the seven-degree-of-freedom manipulator.
[0279] The various technical features described above can be combined arbitrarily. Although all possible combinations of these technical features are not described, any combination of these technical features should be considered to be covered by this specification as long as there is no contradiction in such combination.
[0280] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A control method for the movement of a seven-degree-of-freedom robotic arm, wherein the seven-degree-of-freedom robotic arm comprises a first joint, a second joint, a third joint, a fourth joint, a fifth joint, a sixth joint and a seventh joint connected in sequence from a base to an end working part, characterized in that: The control method comprises: Based on the theoretical kinematics model of the robot arm, a theoretical kinematics inverse solution equation is established, and based on a given end position and a specified third joint angle, an initial optimal solution is obtained according to the theoretical kinematics inverse solution equation; Based on the error kinematics model of the robot and the damped least square differential kinematics equation based on Jacobi pseudo-inverse, an inverse iterative equation for the error kinematics of the robot is established; Based on the initial optimal solution, the angles of each joint are solved by inversely solving the iterative equations of the error kinematics of the robot arm; First, solve the standard solution of the fourth joint angle, then solve the standard solutions of the second and first joint angles in sequence according to the specified third joint angle, and finally solve the standard solutions of the sixth, fifth, and seventh joint angles according to the general ball joint solution sequence; The method of obtaining the initial optimal solution based on the given end position and the specified third joint angle according to the theoretical kinematic inverse equation includes: According to the theoretical kinematics model of the robot arm, performing theoretical kinematics inverse solution; In the process of solving the inverse solution of the theoretical kinematics, singular configuration judgment is performed; When the robot arm is in a singular position, each joint angle of the robot arm at the previous moment is substituted into the error kinematics inverse iterative equation of the robot arm for iterative solution; and / or, When the manipulator is in a non-singular configuration, a set of initial optimal solutions is selected from the standard solutions obtained from the theoretical kinematic inverse solution, and substituted into the error kinematic inverse solution iterative equation of the manipulator for iterative solution; The second joint angle solution method: The specified third joint angle is known, temporarily set as θ3, and the fourth joint angle solved in the previous step, for each group of fourth joint angles, temporarily set as The process parameters CsinD and CcosD can be set as: CsinD=-(d5*s4-a4*c4-a3)*c3; CcosD=d5*c4+a4*s4+d3; Where, c3 = cos(θ3), In the above formula, if |CsinD|<ε and |CcosD|<ε, it means that the given end homogeneous transformation matrix and the specified third joint angle will cause the seven-degree-of-freedom robot to be in a singular position, resulting in an inability to solve. The algorithm can return directly. Otherwise, the process parameters C and D can be set as follows: D=arctan2(CsinD,CcosD),∈(-180°,180°]; Features Then c D2 It can be expressed as follows: If c D2 >(1-ε) or c D2 <(-1+ε), it indicates that the given manipulator end homogeneous transformation matrix is outside the manipulator workspace and is unreachable, and the algorithm can return directly; if (-1+ε)≤c D2 ≤(1-ε), then for each group of θ3, The two standard solutions of the second joint angle are: in, like but like but when Take θ 4,1 or θ 4,2 , we can solve the two second joint angle standard solutions corresponding to each fourth joint angle according to the above method, a total of four second joint angle standard solutions, recorded as The upper right subscript represents the standard solution of the corresponding fourth joint angle.
2. The control method for the motion of a seven-degree-of-freedom robot arm according to claim 1, characterized in that: The error kinematics model of the robot arm and the damped least squares differential kinematics equation based on Jacobi pseudo-inverse are used to establish the error kinematics inverse iterative equation of the robot arm, including: According to the error kinematics model of the robot arm, a forward solution equation of error kinematics is established; According to the error kinematics forward solution equation, the error differential kinematics geometric Jacobian matrix of the six joint angles except the third joint is established; According to the error differential kinematics geometric Jacobian matrix, establishing the damped least square differential kinematics equation based on Jacobian pseudo-inverse; The error kinematics inverse solution iterative equation is established according to the Jacobi pseudo-inverse-based damped least square differential kinematics equation and a preset iteration coefficient.
3. The control method for the motion of a seven-degree-of-freedom robot arm according to claim 1, characterized in that: The process of solving the theoretical kinematic inverse solution includes: The solution is performed in the order of the fourth joint angle, the second joint angle, the first joint angle, the sixth joint angle, the fifth joint angle, and the seventh joint angle.
4. The control method for the motion of a seven-degree-of-freedom robot arm according to claim 3, characterized in that: The process of solving the theoretical kinematic inverse solution also includes: The theoretical kinematic inverse solution is always performed using a double inverse tangent function.
5. The control method for the motion of a seven-degree-of-freedom robot arm according to claim 1, characterized in that: A set of optimal solutions is selected from the standard solutions obtained from the theoretical kinematic inverse solution, including: Taking the joint angles of the robot arm at the previous moment as reference values, the minimum stroke method is used to select the standard solution to obtain the set of optimal solutions.
6. The control method of the seven-degree-of-freedom robot arm motion according to claim 1, characterized in that: Selecting a set of optimal solutions from the standard solutions obtained from the theoretical kinematic inverse solution also includes: The solution is selected according to the preset joint angle travel weight parameters.
7. The control method of the seven-degree-of-freedom robot arm motion according to claim 1, characterized in that: Also includes: The movement of the seven-degree-of-freedom robotic arm is controlled according to the solved angles of each joint.
8. A control device for the movement of a seven-degree-of-freedom robotic arm, the seven-degree-of-freedom robotic arm comprising a first joint, a second joint, a third joint, a fourth joint, a fifth joint, a sixth joint and a seventh joint connected in sequence from a base to an end working portion, characterized in that: The control method for the motion of a seven-degree-of-freedom robot arm according to any one of claims 1 to 7 is adopted, wherein the control device comprises: An initial optimal solution calculation module is used to establish a theoretical kinematics inverse solution equation based on the theoretical kinematics model of the manipulator, and obtain an initial optimal solution based on the theoretical kinematics inverse solution equation based on a given end position and a specified third joint angle; An inverse solution iterative equation building module is used to establish an inverse solution iterative equation of the error kinematics of the robotic arm based on the error kinematics model of the robotic arm and the damped least squares differential kinematics equation of the Jacobi pseudo-inverse; The joint angle solving module is used to solve the angles of each joint by inversely solving the iterative equations of the error kinematics of the robot arm based on the initial optimal solution.
9. The control device for the motion of a seven-degree-of-freedom robot arm according to claim 8, characterized in that: The inverse solution iterative equation building module includes: An error model forward solution module is used to establish an error kinematics forward solution equation according to the error kinematics model of the robot arm; A first transformation module is used to establish an error differential kinematics geometric Jacobian matrix of six joint angles except the third joint according to the error kinematics forward solution equation; A second transformation module is used to establish the damped least square differential kinematics equation based on Jacobian pseudo-inverse according to the error differential kinematics geometric Jacobian matrix; The third transformation module is used to establish the error kinematics inverse solution iterative equation according to the damped least square differential kinematic equation based on Jacobi pseudo-inverse and the preset iteration coefficient.
10. The control device for the motion of a seven-degree-of-freedom robot arm according to claim 8, characterized in that: The initial optimal solution calculation module includes: A singular position judgment module is used to perform a theoretical kinematic inverse solution according to a theoretical kinematic model of the robot arm, and to perform a singular position judgment in the process of solving the theoretical kinematic inverse solution; A singular position solving module, when the robot arm is in a singular position, substitutes each joint angle of the robot arm at the previous moment into the error kinematics inverse iterative equation of the robot arm for iterative solution; The non-singular configuration solving module selects a set of initial optimal solutions from the standard solutions obtained by the inverse solution of the theoretical kinematics when the robot is in a non-singular configuration, substitutes them into the inverse solution iterative equation of the error kinematics of the robot, and performs iterative solution.
11. The control device for the motion of a seven-degree-of-freedom robot arm according to claim 10, characterized in that: The order of solving the standard solution is: The fourth joint, the second joint, the first joint, the sixth joint, the fifth joint, the seventh joint.
12. The control device for the motion of a seven-degree-of-freedom robot arm according to claim 10, characterized in that: An algorithm for selecting a set of optimal solutions from the standard solutions includes: Minimum stroke method.
13. The control device for the motion of a seven-degree-of-freedom robot arm according to claim 8, characterized in that: Also includes: The motion control module is used to control the motion of the seven-degree-of-freedom robotic arm according to the solved angles of each joint.
14. An electronic device, characterized in that: include: Memory; and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the control method for the movement of a seven-degree-of-freedom robotic arm according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Inverse solution solving method for redundancy mechanical arm accessibility analysis
CN108789406A
Seven-degree-of-freedom mechanical arm motion control method and device and electronic equipment
CN116141302A
