A motion path planning method for a tea picking robot arm

Through the improved dung beetle optimization method and the inverse kinematics optimization model based on multi-strategy fusion, the accuracy and speed problems in the motion path planning of the tea picking robot arm were solved, and high-precision motion path planning and rapid convergence were achieved.

CN118181305BActive Publication Date: 2024-08-23SOUTH CHINA AGRICULTURAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410608571.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-23
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

The existing inverse kinematics solution method for tea picking robotic arms has problems such as low accuracy, slow convergence speed, and inability to accurately plan the movement path.

Method used

Using the improved dung beetle optimization method, based on multi-strategy fusion, combined with Circle chaos mapping, nonlinear boundary convergence factor, whale spiral search and Brownian motion, Levy flight, used to solve the inverse kinematics optimization model, the tea picking robot arm was obtained joint variable values ​​to improve the accuracy and speed of motion path planning.

Benefits of technology

It achieves high-precision planning of the motion path of the tea picking robot arm, improves picking accuracy and efficiency, avoids local optimal solutions, and has fast convergence and global search capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118181305B
    Figure CN118181305B
Patent Text Reader

Abstract

The present invention provides a motion path planning method for a tea picking robot arm, including constructing a forward kinematics model of the tea picking robot arm and constructing an inverse kinematics optimization model of the tea picking robot arm. The dung beetle optimization method is improved, and the improved dung beetle optimization method is used to solve the inverse kinematics optimization model to obtain the joint variable value of each joint of the tea picking robot arm, and the motion path of the tea picking robot arm is planned according to the joint variable value. Adjacent joints that cannot be obtained through a single D-H transformation can be used to establish transition joints to improve the accuracy of the forward kinematics model of the tea picking robot arm. The inverse kinematics optimization model does not need to consider the specific structure of the tea picking robot arm and will not fall into a situation where there is no solution. The improved dung beetle optimization method has a strong global search capability, can quickly find the global optimal solution, avoid falling into a local optimum, and the accuracy of the motion path of the tea picking robot arm planned based on the joint variable value is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of picking robots and data processing, and in particular to a motion path planning method for a tea picking robot arm. Background Art

[0002] The kinematic performance of the tea picking robot directly determines the operating capacity and efficiency of the tea picking robot. The forward kinematics and inverse kinematics of the robot are of vital importance as the basis for studying the path planning of the robot. In particular, the accuracy of the inverse kinematics solution is directly related to the performance of the path planning method. A high-precision inverse kinematics solution method can ensure that the generated path planning curve is smoother and has better continuity, thereby improving the accuracy and efficiency of the robot when performing tasks. Therefore, continuously optimizing and improving the inverse kinematics method is of great significance to improving the overall performance of the robot path planning.

[0003] At present, the methods for solving inverse kinematics are mainly divided into three categories, namely closed solution, numerical solution and intelligent method. The closed solution is fast, and the corresponding joint variables can be solved according to the corresponding mathematical method. In order to meet the Pieper principle, when designing a robotic arm, an embedded design method is used to make the three joint axes at the end of the robotic arm intersect at one point. However, this design method severely limits the rotation angle of the end. When performing refined work, the work objectives cannot be met due to the limitation of the end posture. In addition, sometimes even if there is a closed solution, the accuracy of the solution can be improved through numerical solutions. The last three joint axes of the robotic arm may not intersect at one point due to manufacturing errors and assembly errors, resulting in a large error in the closed solution. In this case, a numerical solution is required to solve the inverse kinematics.

[0004] Numerical solutions often use Jacobian matrices and iterative methods to approximate the exact solution with initial values. However, when there are singular positions, the Jacobian matrix cannot be inverted and the amount of calculation is too large. To solve this problem, researchers use intelligent methods to solve inverse kinematics, but the current intelligent methods have low solution accuracy and slow convergence speed, and cannot accurately plan the motion path of the tea picking robot arm. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the purpose of the present invention is to provide a motion path planning method for a tea picking robot arm. The method has high accuracy and fast convergence speed in solving the inverse kinematics of the tea picking robot arm, and can accurately plan the motion path of the tea picking robot arm.

[0006] A motion path planning method for a tea picking robot arm, comprising:

[0007] Constructing a forward kinematics model of a tea picking robot arm, wherein the forward kinematics model is based on transition joints;

[0008] Constructing an inverse kinematics optimization model of the tea picking robot arm;

[0009] The dung beetle optimization method is improved to obtain an improved dung beetle optimization method; wherein the improved dung beetle optimization method is based on multi-strategy fusion;

[0010] Using the improved dung beetle optimization method to solve the inverse kinematics optimization model, obtaining the joint variable value of each joint of the tea picking robot arm;

[0011] The motion path of the tea picking robot arm is planned according to the joint variable values.

[0012] In a preferred technical solution of the present invention, the construction of a forward kinematics model of a tea picking robot arm includes:

[0013] Acquire a geodetic coordinate system, and determine a first coordinate system of a base joint of the tea picking robot arm according to the geodetic coordinate system;

[0014] Using standard DH notation to establish a coordinate system on each joint of the tea picking robot arm;

[0015] The coordinate transformation relationship of adjacent joints is decomposed into four standard transformation processes using the standard DH representation;

[0016] Establishing a DH parameter table of the tea picking robot arm, wherein the DH parameter table includes real joint parameters and transition joint parameters;

[0017] According to the coordinate system transformation relationship of the adjacent joints and the DH parameter table, a transformation matrix between adjacent links is constructed; wherein the coordinate system transformation relationship includes a homogeneous transformation matrix;

[0018] The homogeneous transformation matrices of the adjacent joints are multiplied to obtain the forward kinematics equation of the tea picking robot arm.

[0019] In a preferred technical solution of the present invention, the forward kinematics equation of the tea picking robot arm is expressed as:

[0020] ;

[0021] in, T represents the forward kinematics equation of the tea picking robot arm, n x Represents the transformed coordinate system x The first component of the direction vector of the axis in the original coordinate system, n yRepresents the transformed coordinate system x The second component of the direction vector of the axis in the original coordinate system, n z Represents the transformed coordinate system x The third component of the direction vector of the axis in the original coordinate system; o x Represents the transformed coordinate system y The first component of the direction vector of the axis in the original coordinate system, o y Represents the transformed coordinate system y The second component of the direction vector of the axis in the original coordinate system, o z Represents the transformed coordinate system y The third component of the direction vector of the axis in the original coordinate system; a x Represents the transformed coordinate system z The first component of the direction vector of the axis in the original coordinate system, a y Represents the transformed coordinate system z The second component of the direction vector of the axis in the original coordinate system, a z Represents the transformed coordinate system z The third component of the direction vector of the axis in the original coordinate system; P x is the translation vector x Axis component, P y is the translation vector y Axis component, P z is the translation vector z Axis component.

[0022] In a preferred technical solution of the present invention, the inverse kinematics optimization model of the tea picking robot arm is constructed, including:

[0023] Define optimization variables, the optimization variables include the first joint variable θ or the second joint variable a ;

[0024] Setting an objective function, wherein the objective function is composed of a position error and a posture error;

[0025] Establish boundary conditions, the boundary conditions including the first joint variable θ The range of the second joint variable a range.

[0026] In a preferred technical solution of the present invention, the dung beetle optimization method is improved to obtain an improved dung beetle optimization method, comprising:

[0027] Initialize the population using the improved Circle chaos map;

[0028] Using nonlinear boundary convergence factors, the reproduction and foraging behavior of dung beetles are simulated;

[0029] Introduce the spiral search mechanism of whales into the ball rolling behavior of dung beetles, and update the ball rolling position of dung beetles;

[0030] Obtaining an optimal individual and a random individual, and generating an updated individual according to the optimal individual and the random individual;

[0031] Introduce standard Brownian motion for position update;

[0032] The Levy flight is introduced to update the position, and an improved dung beetle optimization method is obtained.

[0033] In a preferred technical solution of the present invention, the initialization of the population using the improved Circle chaotic map includes:

[0034] ;

[0035] in, mod is the modulo function, x n Indicates n Sub-chaotic mapping, x n+1 Indicates n+1 Sub-chaotic mapping.

[0036] In a preferred technical solution of the present invention, the use of a nonlinear boundary convergence factor to simulate the reproduction and foraging behavior of dung beetles includes:

[0037] The reproduction and foraging behavior of dung beetles were simulated according to the following formula:

[0038] ;

[0039] in, T is the simulation cycle, t For the current moment, R is the boundary convergence factor.

[0040] In a preferred technical solution of the present invention, the spiral search mechanism of the whale is introduced into the ball rolling behavior of the dung beetle to update the ball rolling position of the dung beetle, including:

[0041] Update the dung beetle's rolling ball position according to the following formula:

[0042] ;

[0043] ;

[0044] in, X i (t+1) for t+1 The rolling ball position of the dung beetle in the iteration, X i (t) for t The rolling ball position of the dung beetle in the iteration, X i (t-1) for t-1 The rolling ball position of the dung beetle in the iteration, α is the obstacle coefficient, k is the coefficient of deviation; b is the first constant, △X is the absolute value of the position difference, X W (t) is the position of the worst individual in the population, X p (t) is the position of the best individual in the population, K is the distance vector between the optimal individual and the current individual, β is the spiral adjustment parameter, l is the first random number, -1≤ l ≤1, e is an exponential function.

[0045] In a preferred technical solution of the present invention, the step of generating an updated individual based on the optimal individual and the random individual includes:

[0046] Generate updated individuals according to the following formula:

[0047] ;

[0048] in, X N is the updated individual, X b is the optimal individual, X r is the random individual, X W is the worst individual in the population, e is an exponential function, a is the step size factor, r 1 is the second random number, r 2 is the third random number, 0< r 1 <1,0< r 2<1.

[0049] In a preferred technical solution of the present invention, the setting of the objective function includes:

[0050] Setting a target pose matrix and an actual pose matrix of the tea picking robot arm; wherein the target pose matrix includes a target position vector of the end of the tea picking robot arm, and the actual pose matrix includes an actual position vector of the end of the tea picking robot arm;

[0051] Subtract the actual position vector from the target position vector to obtain a difference vector;

[0052] Calculating the second norm of the difference vector to obtain the position error;

[0053] Taking the rotation angle as the posture error;

[0054] The position error and the attitude error are weightedly summed to obtain an objective function.

[0055] The beneficial effects of the present invention are:

[0056] The present invention provides a motion path planning method for a tea picking mechanical arm, which includes constructing a forward kinematics model of the tea picking mechanical arm, and the forward kinematics model is based on a transition joint. When the coordinate system is established by using the standard DH parameter method, adjacent joints that cannot be obtained by a single DH transformation can be used to establish transition joints to improve the accuracy of the forward kinematics model of the tea picking mechanical arm. An inverse kinematics optimization model of the tea picking mechanical arm is constructed, and the inverse kinematics optimization model does not need to consider the specific structure of the tea picking mechanical arm. It only needs to determine that the forward kinematics model is correct, and then the solution can be performed without falling into a situation where there is no solution. The dung beetle optimization method is improved to obtain an improved dung beetle optimization method; wherein the improved dung beetle optimization method is based on multi-strategy fusion, has a strong global search capability, can quickly find the global optimal solution, and avoid falling into a local optimum. The improved dung beetle optimization method also has the advantages of high convergence accuracy and fast convergence speed. The improved dung beetle optimization method is used to solve the inverse kinematics optimization model, and the joint variable value of each joint of the tea picking mechanical arm is obtained with high accuracy and small error. The motion path of the tea picking robot arm is planned according to the joint variable values. The motion path of the tea picking robot arm has high accuracy, which makes the tea picking robot have high picking accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is a flow chart of the motion path planning method of the tea picking robot arm provided by the present invention;

[0058] Figure 2 It is a schematic diagram of a process for constructing an inverse kinematics optimization model of a tea picking robot arm provided by the present invention;

[0059] Figure 3 It is a flow chart of the improved dung beetle optimization method based on multi-strategy fusion provided by the present invention;

[0060] Figure 4 It is a schematic diagram of a DH connecting rod coordinate system established without introducing a transition joint in the prior art;

[0061] Figure 5 It is a schematic diagram of the DH connecting rod coordinate system established after the transition joint is introduced provided by the present invention;

[0062] Figure 6 It is a position error variation diagram of different methods of stability experimental test provided by the present invention;

[0063] Figure 7 It is a graph of attitude error changes of different methods of stability experimental test provided by the present invention. DETAILED DESCRIPTION

[0064] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0065] Example 1

[0066] like Figure 1 As shown, this embodiment provides a motion path planning method for a tea picking robot arm, comprising:

[0067] S1: Construct a forward kinematics model of a tea picking robot arm, wherein the forward kinematics model is based on transition joints.

[0068] Step S1 includes steps S11-S16:

[0069] S11: Acquire a geodetic coordinate system, and determine a first coordinate system of a base joint of the tea picking robot arm according to the geodetic coordinate system.

[0070] S12: Establish a coordinate system on each joint of the tea picking robot arm using standard DH representation.

[0071] S13: Use the standard DH representation to decompose the coordinate system transformation relationship of adjacent joints into four standard transformation processes.

[0072] S14: Establishing a DH parameter table of the tea picking robot arm, wherein the DH parameter table includes real joint parameters and transition joint parameters.

[0073] S15: Constructing a transformation matrix between adjacent links according to the coordinate system transformation relationship of the adjacent joints and the DH parameter table; wherein the coordinate system transformation relationship includes a homogeneous transformation matrix.

[0074] S16: Multiply the homogeneous transformation matrices of the adjacent joints to obtain the forward kinematics equation of the tea picking robot arm.

[0075] Using the standard DH representation, a coordinate system is established on each joint of the tea picking robot arm, so that each joint has a posture obtained by coordinate transformation relative to the base coordinate system.

[0076] The coordinate system established by the standard DH representation may cause some joints to be unable to be obtained through a single DH transformation. The solution to this problem is to decompose the transformation relationship between two adjacent joints into four standard transformation processes through the standard DH representation, and then establish the corresponding transition joints according to the standard transformation process. The transition joints do not conflict with the real joints because the transition joints have no degrees of freedom, and their four DH parameters are all known quantities, which does not affect the accuracy of the subsequent forward kinematics model.

[0077] The forward kinematics equation of the tea picking robot arm is expressed as:

[0078] ;

[0079] in, T represents the forward kinematics equation of the tea picking robot arm, n x Represents the transformed coordinate system x The first component of the direction vector of the axis in the original coordinate system, n y Represents the transformed coordinate system x The second component of the direction vector of the axis in the original coordinate system, n z Represents the transformed coordinate system x The third component of the direction vector of the axis in the original coordinate system; o x Represents the first component of the direction vector of the y-axis of the transformed coordinate system in the original coordinate system. o y Represents the transformed coordinate system y The second component of the direction vector of the axis in the original coordinate system, o z Represents the transformed coordinate system y The third component of the direction vector of the axis in the original coordinate system; a x Represents the transformed coordinate systemz The first component of the direction vector of the axis in the original coordinate system, a y Represents the transformed coordinate system z The second component of the direction vector of the axis in the original coordinate system, a z Represents the transformed coordinate system z The third component of the direction vector of the axis in the original coordinate system; P x is the translation vector x Axis component, P y is the translation vector y Axis component, P z is the translation vector z Axis component.

[0080] P x , P y and P z Together they form a 3×1 translation vector, which describes the position of the origin of the transformed coordinate system in the original coordinate system.

[0081] S2: Construct an inverse kinematics optimization model of the tea picking robot arm.

[0082] like Figure 2 As shown, step S2 includes the following steps S21-S23:

[0083] S21: define optimization variables, the optimization variables include the first joint variable θ or the second joint variable a .

[0084] S22: Setting an objective function, wherein the objective function is composed of a position error and a posture error.

[0085] S23: Establish boundary conditions, the boundary conditions including the first joint variable θ The range of the second joint variable a range.

[0086] In the inverse kinematics problem of the tea picking robot arm, solving the joint variables with known end pose is the core task. Therefore, the first joint variable is defined as θ or the second joint variable a are the design variables for the optimization problem.

[0087] First joint variable θRepresents the rotation angle of the robot arm's rotation joint relative to its initial position or a reference position. The second joint variable a Represents the distance that the robot arm's moving joint moves along its axis relative to its initial position or a reference position.

[0088] The motion path planning of the tea picking robot must meet the boundary conditions, which specifically determine the first joint variable. θ or the second joint variable a For the inverse kinematics solution of the tea picking robot, the first joint variable must be satisfied. θ or the second joint variable a range, i.e. boundary conditions.

[0089] S3: improving the dung beetle optimization method to obtain an improved dung beetle optimization method; wherein the improved dung beetle optimization method is based on multi-strategy fusion.

[0090] This embodiment improves the traditional dung beetle optimization method and proposes an improved dung beetle optimization method based on multi-strategy fusion, which has high convergence accuracy and fast convergence speed, and can avoid falling into the local optimum. The improved dung beetle optimization method has strong global search capabilities and the ability to jump out of the local optimum, and can quickly find the global optimal solution.

[0091] S4: using the improved dung beetle optimization method to solve the inverse kinematics optimization model, and obtaining the joint variable value of each joint of the tea picking robot arm.

[0092] S5: Planning the motion path of the tea picking robot arm according to the joint variable values.

[0093] In order to verify the accuracy and stability of the MSIDBO method, i.e., the improved dung beetle optimization method based on multi-strategy fusion, this embodiment verifies the MSIDBO through simulation experiments, as follows:

[0094] Experiment 1: Accuracy test

[0095] Eight spatial pose points are selected in the accessible workspace of the tea picking robot arm, and the inverse kinematics is solved by the method of steps S1-S5 in this embodiment. The DBO, SCA, GWO, WOA and PSO methods are used to solve them simultaneously. The results are shown in Table 1:

[0096] Table 1 Average experimental results

[0097]

[0098] It can be seen from Table 1 that the results obtained by MSIDBO have obvious advantages over other methods, and the minimum position error EP reaches 10-4 mm order of magnitude, the minimum attitude error ER reaches 10 -4 rad order of magnitude.

[0099] Experiment 1 verifies that MSIDBO has significant advantages over other intelligent optimization methods in the accuracy of inverse kinematics solution of tea picking robot arms.

[0100] Experiment 2: Stability test

[0101] Randomly select any pose point T on the workspace of the tea picking robot arm e ,The inverse kinematics of the tea picking robot arm was solved using MSIDBO, DBO, SCA, GWO, WOA and PSO, and each method was solved 50 times.

[0102] Figure 6 This is the position error change diagram of different methods in Experiment 2. Figure 7 This is the change diagram of the posture error of different methods in Experiment 2. Figure 6 and Figure 7 It can be seen that MSIDBO has the lowest position error and attitude error.

[0103] exist Figure 6 and Figure 7 On this basis, in order to more accurately measure the performance of MSIDBO, the Wilcoxon rank sum test is used to verify whether there is a significant difference between MSIDBO and the comparison method. The Wilcoxon rank sum test is performed on the position error, posture error and fitness and the p value is calculated. The assumptions made for this Wilcoxon rank sum test are shown in Table 2.

[0104] Table 2 Wilcoxon rank sum test hypothesis table

[0105]

[0106] After the Wilcoxon rank sum test, the p values ​​are shown in Table 3:

[0107] Table 3 Wilcoxon rank sum test p values ​​of different methods

[0108]

[0109] When p<0.05, H0 is rejected and H1 is accepted, which means that the stability of MSIDBO in the motion path planning of tea picking robot is significantly better than the other five comparison methods, and the smaller the p value, the less likely the observed result is to appear under the null hypothesis, so the evidence for rejecting the null hypothesis is stronger. According to Table 3, the p values ​​of all results are less than 0.05, thus verifying that the stability of MSIDBO in the motion path planning of tea picking robot is significantly better than the other five comparison methods.

[0110] It can be verified through Experiment 1 and Experiment 2 that this embodiment has high accuracy and stability in solving the inverse kinematics of the tea picking robot arm, and has significant advantages over the DBO, SCA, GWO, WOA and PSO methods.

[0111] The motion path planning method of a tea picking robot arm provided in this embodiment includes constructing a forward kinematics model of the tea picking robot arm, and the forward kinematics model is based on transition joints. When the coordinate system is established by the standard DH parameter method, the adjacent joints that cannot be obtained by a single DH transformation can be used to establish transition joints to improve the accuracy of the forward kinematics model of the tea picking robot arm. The inverse kinematics optimization model of the tea picking robot arm is constructed. The inverse kinematics optimization model does not need to consider the specific structure of the tea picking robot arm. It only needs to determine that the forward kinematics model is correct to solve it, and it will not fall into a situation where there is no solution. The dung beetle optimization method is improved to obtain an improved dung beetle optimization method; wherein, the improved dung beetle optimization method is based on multi-strategy fusion, has a strong global search capability, can quickly find the global optimal solution, and avoid falling into a local optimum. The improved dung beetle optimization method also has the advantages of high convergence accuracy and fast convergence speed. The improved dung beetle optimization method is used to solve the inverse kinematics optimization model, and the joint variable value of each joint of the tea picking robot arm is obtained with high accuracy and small error. The motion path of the tea picking robot arm is planned according to the joint variable values. The motion path of the tea picking robot arm has high accuracy, which makes the tea picking robot have high picking accuracy.

[0112] Example 2

[0113] This embodiment only describes the differences from Embodiment 1. The dung beetle optimization method is improved to obtain an improved dung beetle optimization method, including:

[0114] S31: Initialize the population using the improved Circle chaos map.

[0115] S32: Using nonlinear boundary convergence factors to simulate the reproduction and foraging behavior of dung beetles.

[0116] S33: Introduce the spiral search mechanism of whales into the rolling behavior of dung beetles and update the rolling position of dung beetles.

[0117] S34: Obtain an optimal individual and a random individual, and generate an updated individual according to the optimal individual and the random individual.

[0118] S35: Introduce standard Brownian motion for position update.

[0119] S36: Introducing Levy flight for position update, and obtaining an improved dung beetle optimization method.

[0120] In the standard dung beetle optimization method, there is no clear goal orientation. Although such a design is helpful for global search, it may also cause the method to show too much randomness, thereby limiting the information exchange between individuals and affecting the convergence of the method.

[0121] In order to solve this problem, this embodiment proposes an improved dung beetle optimization method, that is, a spiral update mechanism is incorporated into the dung beetle's ball rolling behavior. Figure 3 It is a schematic flow chart of the improved dung beetle optimization method based on multi-strategy fusion provided by the present invention. In the spiral search model, the parameter β controls the shape of the spiral formed by the individual when moving, and this parameter is usually set to 1 traditionally.

[0122] However, this static setting may cause the method to always follow a fixed spiral path to approach the target during the update, thereby weakening the ability of global optimization. In order to enhance the regional exploration capability and global search efficiency, this embodiment designs β as a dynamic variable to achieve a changing spiral path. As the iterative process proceeds, the β value will gradually increase, causing the spiral line to gradually shrink from a larger range.

[0123] The above strategy not only helps the improved dung beetle optimization method to perform a large-scale global search in the early stage, but also allows the transition to a small spiral local fine search in the later stage. Through the above improvements, this embodiment balances the ability of the improved dung beetle optimization method between global exploration and local development. Compared with the existing method, the improved dung beetle optimization method has a stronger ability to jump out of the local optimal solution.

[0124] The population is initialized using the improved Circle chaos map according to the following formula:

[0125] ;

[0126] in, mod is the modulo function, s n Indicates n Sub-chaotic mapping, s n+1 Indicates n+1 Sub-chaotic mapping.

[0127] The current definition of the safe area in the dung beetle breeding process is as follows:

[0128] ;

[0129] ;

[0130] in, X * represents the optimal position of the group in this iteration, that is, the local optimal position, Lb is the upper bound of the feasible region, Ub is the lower bound of the feasible region, Lb * is the upper bound of the safe area, Ub * is the lower bound of the safe area, R is the boundary convergence factor, and its expression is as follows:

[0131] ;

[0132] In the formula, T is the maximum number of iterations, t is the current iteration number.

[0133] In this embodiment, the boundary convergence factor is changed to:

[0134] ;

[0135] Introducing the spiral search mechanism of the whale into the rolling behavior of the dung beetle, the rolling position formula of the dung beetle becomes:

[0136] ;

[0137] ;

[0138] in, X i (t+1) for t+1 The rolling ball position of the dung beetle in the iteration, X i (t) for t The rolling ball position of the dung beetle in the iteration, X i (t-1) for t-1 The rolling ball position of the dung beetle in the iteration, α is the obstacle coefficient, k is the coefficient of deviation; b is the first constant, △X is the absolute value of the position difference, X W (t)is the position of the worst individual in the population, X p (t) is the position of the best individual in the population, K is the distance vector between the optimal individual and the current individual, β is the spiral adjustment parameter, l is the first random number, -1≤ l ≤1, e is an exponential function.

[0139] Helix adjustment parameters β The shape of the spiral line that determines the progress of the individual spiral:

[0140] ;

[0141] The step of generating an updated individual according to the optimal individual and the random individual comprises:

[0142] Generate updated individuals according to the following formula:

[0143] ;

[0144] in, X N is the updated individual, X b is the optimal individual, X r is the random individual, X W is the worst individual in the population, e is an exponential function, a is the step size factor, r 1 is the second random number, r 2 is the third random number, 0< r 1 <1,0< r 2 <1.

[0145] The step factor is calculated according to the following formula a :

[0146] ;

[0147] in, amin is the minimum value of the step factor, amax is the maximum value of the step factor.

[0148] In the early iteration, the thieving dung beetle updates its position by introducing standard Brownian motion:

[0149] ;

[0150] in, H is a random number vector that follows a normal distribution, H The size is 1× D , S is a constant, X * represents the optimal position of the group in this iteration, that is, the local optimal position, R BM is the standard Brownian motion variation parameter.

[0151] Later in the iteration, the stealing dung beetle was updated by introducing Levy flights:

[0152] ;

[0153] in, R LF Variation parameters for Levi flight.

[0154] The above method is derived from the principle of survival of the fittest in genetic methods. Introducing the survival of the fittest mechanism into the dung beetle optimization method can improve the quality of the population solution.

[0155] This embodiment improves the traditional dung beetle optimization method and proposes an improved dung beetle optimization method with multi-strategy fusion, including using an improved Circle chaos map to initialize the population and using a nonlinear boundary convergence factor to simulate the reproduction and foraging behavior of dung beetles. The spiral search mechanism of the whale is introduced into the rolling ball behavior of the dung beetle to update the rolling ball position of the dung beetle. The optimal individual and the random individual are obtained, and the updated individual is generated according to the optimal individual and the random individual. The standard Brownian motion is introduced for position update, and the Levy flight is introduced for position update to obtain the improved dung beetle optimization method. The above-mentioned improved dung beetle optimization method has high convergence accuracy and fast convergence speed, and can avoid falling into the local optimum. The improved dung beetle optimization method has a strong global search capability and the ability to jump out of the local optimum, and can quickly find the global optimal solution.

[0156] Example 3

[0157] This embodiment only describes the differences from Embodiment 1. The construction of the inverse kinematics optimization model of the tea picking robot arm includes the following steps S21-S23:

[0158] S21: define optimization variables, the optimization variables include the first joint variable θ or the second joint variable a .

[0159] S22: Setting an objective function, wherein the objective function is composed of a position error and a posture error.

[0160] S23: Establish boundary conditions, the boundary conditions including the first joint variable θ The range of the second joint variable a range.

[0161] Step S22 includes the following steps S221-S225:

[0162] S221: Setting a target pose matrix and an actual pose matrix of the tea picking robot arm; wherein the target pose matrix includes a target position vector of the end of the tea picking robot arm, and the actual pose matrix includes an actual position vector of the end of the tea picking robot arm.

[0163] S222: Subtract the actual position vector from the target position vector to obtain a difference vector.

[0164] S223: Calculate the binary norm of the difference vector to obtain the position error.

[0165] S224: Using the rotation angle as the posture error.

[0166] S225: Perform weighted summation on the position error and the attitude error to obtain an objective function.

[0167] The target pose matrix and actual pose matrix of the tea picking robot arm are set according to the following formula:

[0168] ;

[0169] ;

[0170] in, R tar is the target posture matrix of the end of the tea picking robot arm, P tar is the target position vector at the end of the tea picking robot arm, R act is the actual posture matrix of the end of the tea picking robot arm, P act is the actual position vector of the end of the tea picking robot arm, T tar is the target pose matrix of the tea picking robot arm, T act It is the actual pose matrix of the tea picking robot arm.

[0171] The position error is calculated according to the following formula:

[0172] ;

[0173] in, Ep is the position error, P tar -P act is the difference vector, and ||||2 is the two-norm operation.

[0174] Using quaternions to represent attitude errors:

[0175] ;

[0176] Among them, △ q is a quaternion, △θ is the rotation angle, n'=[x,y,z] is the rotation vector, and the rotation vector is a unit vector. Therefore, the attitude error is expressed as:

[0177] ;

[0178] in, E R is the attitude error.

[0179] The objective function is obtained by weighted summing the position error and attitude error according to the following formula:

[0180] ;

[0181] in, F obj is the objective function, λ1 is the normalized coefficient of the position error, and λ2 is the normalized coefficient of the attitude error. λ1 and λ2 are used to balance the influence of the position error and attitude error on the total error, thereby preventing the small errors from being ignored due to the difference in magnitude in the calculation, which affects the overall calculation accuracy.

[0182] Set the normalization coefficient to:

[0183] ;

[0184] ;

[0185] in, It represents the total length of the connecting rod of the tea picking robot arm; It represents the maximum posture error between the actual posture and the expected posture of the tea picking robot arm. .

[0186] This embodiment takes a five-degree-of-freedom tea-picking robot arm as an example to describe in detail the inverse kinematics solution method for the tea-picking robot arm provided by the present invention.

[0187] Figure 4This is a schematic diagram of the DH link coordinate system established in the prior art without introducing a transition joint. It can be seen that the transformation from joint 3 to joint 4 and from joint 4 to joint 5 cannot be obtained through a single DH transformation, so a transition joint needs to be introduced.

[0188] The DH link coordinate system obtained after the transition joint is introduced is as follows: Figure 5 As shown, Figure 5 The corresponding DH parameter table is shown in Table 4.

[0189] Table 4 DH parameter table

[0190]

[0191] Offset in Table 4 i Represents the joint compensation amount, which determines the initial angle of the joint. Indicates the joint range.

[0192] The obtained forward kinematic model is:

[0193] ;

[0194] in, is the transformation matrix from joint 0 to joint 7, is the transformation matrix from joint 0 to joint 1, is the transformation matrix from joint 1 to joint 2, is the transformation matrix from joint 2 to joint 3, is the transformation matrix from joint 3 to joint 4, is the transformation matrix from joint 4 to joint 5, is the transformation matrix from joint 5 to joint 6, is the transformation matrix from joint 6 to joint 7.

[0195] In robotics, the forward kinematics equations are used to describe the position and posture of the robot's end effector, such as the end of a robotic arm, in the robot coordinate system, which usually involves the multiplication of a series of joint transformation matrices. Transformation from joint 0 to joint 1 Multiply the transformation from joint 1 to joint 2 , until the transformation from joint 6 to joint 7 Each transformation matrix is ​​exact, so successive multiplications of multiple transformation matrices are exact and do not introduce errors.

[0196] This embodiment establishes a forward kinematics model and constructs an inverse kinematics optimization model. According to the required target posture, the inverse kinematics of the tea picking robot arm is solved using the improved dung beetle optimization method based on multi-strategy fusion, namely MSIDBO. The forward kinematics equation is used to describe the position and posture of the robot end effector, such as the end of the robot arm, in the robot coordinate system. The transformation matrices of multiple transition joints are continuously multiplied to obtain a forward kinematics model. Under the premise that the transformation matrix of each transition joint is accurate, the forward kinematics model can be guaranteed to have a high degree of accuracy.

[0197] Example 4

[0198] This embodiment provides an electronic device, which includes a memory and a processor.

[0199] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0200] The memory may include various types of storage units such as system memory, read-only memory (ROM), and permanent storage.

[0201] The memory stores executable codes, and when the executable codes are processed by the processor, the processor can execute part or all of the motion path planning method for the tea picking robot arm mentioned above.

[0202] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments do not limit the scope of the application. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a restriction. Therefore, other examples of exemplary embodiments can have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in the subsequent accompanying drawings.

[0203] It should be understood that spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is inverted, a device described as "above" or "above" other devices or structures would then be positioned "below" or "below" the other devices or structures. Thus, the exemplary term "above" can include both "above" and "below". The device may also be oriented in other different ways (rotated 90 degrees or at other orientations), and the spatially relative descriptions used herein should be interpreted accordingly.

[0204] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. Unless otherwise stated, the above terms have no special meaning and therefore cannot be understood as limiting the scope of protection of this application.

[0205] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A motion path planning method for a tea picking robot arm, characterized in that: include: Constructing a forward kinematics model of a tea picking robot arm, wherein the forward kinematics model is based on transition joints; Constructing an inverse kinematics optimization model of the tea picking robot arm; The dung beetle optimization method is improved to obtain an improved dung beetle optimization method; wherein the improved dung beetle optimization method is based on multi-strategy fusion; Using the improved dung beetle optimization method to solve the inverse kinematics optimization model, obtaining the joint variable value of each joint of the tea picking robot arm; Planning the motion path of the tea picking robot arm according to the joint variable values; The improved dung beetle optimization method is improved to obtain an improved dung beetle optimization method, comprising: Initialize the population using the improved Circle chaos map; Using nonlinear boundary convergence factors, the reproduction and foraging behavior of dung beetles are simulated; Introduce the spiral search mechanism of whales into the ball rolling behavior of dung beetles, and update the ball rolling position of dung beetles; Obtaining an optimal individual and a random individual, and generating an updated individual according to the optimal individual and the random individual; Introduce standard Brownian motion for position update; The Levy flight was introduced to update the position, and the improved dung beetle optimization method was obtained; The improved Circle chaotic map is used to initialize the population, including: ; in, mod is the modulo function, x n Indicates n Sub-chaotic mapping, x n+1 Indicates n+1 Sub-chaotic mapping; The method of using a nonlinear boundary convergence factor to simulate the reproduction and foraging behavior of dung beetles includes: The reproduction and foraging behavior of dung beetles were simulated according to the following formula: ; in, T is the simulation cycle, t For the current moment, R is the boundary convergence factor; The step of generating an updated individual according to the optimal individual and the random individual comprises: Generate updated individuals according to the following formula: ; in, X N is the updated individual, X b is the optimal individual, X r is the random individual, X W is the worst individual in the population, e is an exponential function, a is the step size factor, r 1 is the second random number, r 2 is the third random number, 0< r 1 <1,0< r 2 <1; The spiral search mechanism of the whale is introduced into the rolling behavior of the dung beetle, and the rolling position of the dung beetle is updated, including: Update the dung beetle's rolling ball position according to the following formula: ; ; in, X i (t+1) for t+1 The rolling ball position of the dung beetle in the iteration, X i (t) for t The rolling ball position of the dung beetle in the iteration, X i (t-1) for t-1 The rolling ball position of the dung beetle in the iteration, α is the obstacle coefficient, k is the coefficient of deviation; b is the first constant, △X is the absolute value of the position difference, X W (t) is the position of the worst individual in the population, X p (t) is the position of the best individual in the population, K is the distance vector between the optimal individual and the current individual, β is the spiral adjustment parameter, l is the first random number, -1≤ l ≤1, e is an exponential function.

2. The motion path planning method of the tea picking robot arm according to claim 1 is characterized in that: The forward kinematics model of the tea picking robot arm is constructed, including: Acquire a geodetic coordinate system, and determine a first coordinate system of a base joint of the tea picking robot arm according to the geodetic coordinate system; Using standard DH notation to establish a coordinate system on each joint of the tea picking robot arm; The coordinate transformation relationship of adjacent joints is decomposed into four standard transformation processes using the standard DH representation; Establishing a DH parameter table of the tea picking robot arm, wherein the DH parameter table includes real joint parameters and transition joint parameters; According to the coordinate system transformation relationship of the adjacent joints and the DH parameter table, a transformation matrix between adjacent links is constructed; wherein the coordinate system transformation relationship includes a homogeneous transformation matrix; The homogeneous transformation matrices of the adjacent joints are multiplied to obtain the forward kinematics equation of the tea picking robot arm.

3. The motion path planning method of the tea picking robot arm according to claim 2 is characterized in that: The forward kinematics equation of the tea picking robot arm is expressed as: ; in, T represents the forward kinematics equation of the tea picking robot arm, n x Represents the transformed coordinate system x The first component of the direction vector of the axis in the original coordinate system, n y Represents the transformed coordinate system x The second component of the direction vector of the axis in the original coordinate system, n z Represents the transformed coordinate system x The third component of the direction vector of the axis in the original coordinate system; o x Represents the transformed coordinate system y The first component of the direction vector of the axis in the original coordinate system, o y Represents the transformed coordinate system y The second component of the direction vector of the axis in the original coordinate system, o z Represents the transformed coordinate system y The third component of the direction vector of the axis in the original coordinate system; a x Represents the transformed coordinate system z The first component of the direction vector of the axis in the original coordinate system, a y Represents the transformed coordinate system z The second component of the direction vector of the axis in the original coordinate system, a z Represents the transformed coordinate system z The third component of the direction vector of the axis in the original coordinate system; P x is the translation vector x Axis component, P y is the translation vector y Axis component, P z is the translation vector z Axis component.

4. The motion path planning method of the tea picking robot arm according to claim 1, characterized in that: The inverse kinematics optimization model of the tea picking robot arm is constructed, including: Define optimization variables, the optimization variables include the first joint variable θ or the second joint variable a ; Setting an objective function, wherein the objective function is composed of a position error and a posture error; Establish boundary conditions, the boundary conditions including the first joint variable θ The range of the second joint variable a range.

5. The motion path planning method of the tea picking robot arm according to claim 4, characterized in that: The setting of the objective function comprises: Setting a target pose matrix and an actual pose matrix of the tea picking robot arm; wherein the target pose matrix includes a target position vector of the end of the tea picking robot arm, and the actual pose matrix includes an actual position vector of the end of the tea picking robot arm; Subtract the actual position vector from the target position vector to obtain a difference vector; Calculating the second norm of the difference vector to obtain the position error; Taking the rotation angle as the posture error; The position error and the attitude error are weightedly summed to obtain an objective function.