Ultrasonic robot energy optimal trajectory planning method

Through 5-7-5 polynomial joint space trajectory planning and CDE-GRO algorithm, the trajectory planning of the ultrasonic robot is optimized, which solves the problem of insufficient optimization of energy consumption and dynamic characteristics, achieves more efficient and safer trajectory planning, and improves detection Efficiency and safety.

CN118769246APending Publication Date: 2024-10-15NANCHANG UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410894689.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing ultrasonic robot trajectory planning methods have deficiencies in energy consumption management and dynamic characteristics optimization, resulting in reduced trajectory accuracy and smoothness, and unreasonable energy consumption, affecting detection efficiency and safety.

Method used

Using 5-7-5 polynomial joint space trajectory planning combined with the improved gold mine search optimization algorithm (CDE-GRO), through piecewise polynomial interpolation, chaotic sequence, elite reverse learning and other technologies, the robot arm motion parameters are optimized to achieve energy optimization. Optimal trajectory planning.

Benefits of technology

It effectively solves the problems of dynamic characteristics optimization and reasonable energy allocation, improves the accuracy and smoothness of trajectory planning, reduces energy waste, and improves the efficiency and safety of ultrasonic robot detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118769246A_ABST
    Figure CN118769246A_ABST
Patent Text Reader

Abstract

The invention discloses an optimal energy trajectory planning method for an ultrasonic robot. The method comprises the following steps: (1) setting simulation parameters and initializing a robot model; (2) setting initial and final position states of the mechanical arm; (3) constructing a 5-7-5 piecewise polynomial interpolation function; and (4) core optimization is conducted through a CDE-GRO algorithm, and optimal mechanical arm motion parameters are obtained. An improved joint space trajectory planning method and a gold mine search optimization algorithm are used for realizing the optimal trajectory planning of the energy of the ultrasonic robot, and the optimal trajectory planning of the energy of the ultrasonic robot is realized through three motion stages: a constant speed stage, an acceleration stage and a deceleration stage. The problems of dynamic characteristic optimization and reasonable energy distribution in a traditional joint space planning method are effectively solved, meanwhile, by introducing an elite reverse learning and dynamic exploration balance mechanism into the CDE-GRO algorithm, compared with a traditional GRO algorithm, the convergence speed is higher, the obtained energy optimal solution is more accurate, and the joint space planning method has the beneficial effects that the joint space planning method is suitable for large-scale popularization and application. And the quality of an algorithm solution is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to energy optimal trajectory planning of an ultrasonic robot, in particular to an energy optimal trajectory planning algorithm integrating 5-7-5 polynomial joint space trajectory planning and an improved gold mine search optimization algorithm (CDE-GRO). Background Art

[0002] The main content of the ultrasonic robot control algorithm is to study the robot arm trajectory planning and control problems. The main function is to finely control the speed and acceleration of the movement, as well as to manage energy consumption reasonably, reduce the damage to mechanical parts due to wear or unnecessary energy loss, and ensure stability and efficiency during the movement. The robot arm trajectory planning method plays a vital role in maintaining efficient and high-precision operation of the ultrasonic robot and improving motion performance. The main idea involved in the robot arm trajectory planning is to effectively design the path that the robot arm moves from one position to another. Because the application scenario of the ultrasonic robot is in the hospital testing room, and it is moving towards the patient's chest, therefore, accurate trajectory planning can ensure the safety and reliability of ultrasonic testing. If the trajectory planning route is better, the accuracy and safety of ultrasonic testing will be higher, and the energy consumption will be more reasonable and efficient, ensuring the detection efficiency and quality of the ultrasonic robot and reducing energy consumption.

[0003] At present, there are two methods for trajectory planning: joint space planning method, which refers to determining the motion trajectory of each joint of the robot in the joint space. Combining the kinematic and dynamic characteristics of the robot and the constraints of the joints, a smooth trajectory is generated through interpolation and optimization. This method simplifies the calculation of kinematics and dynamics, but the control accuracy is unstable and the smoothness of motion needs to be optimized. Cartesian space trajectory planning method, which refers to determining the motion trajectory of the robot end effector in the Cartesian coordinate system. Motion control is achieved by describing the position and posture of the robot. In Cartesian space, it is described by two degrees of freedom, translation and rotation, where the translation degree of freedom includes the robot position information and the rotation degree of freedom includes the robot posture information. This method converts the task requirements into the position and posture requirements of the end effector, and then generates a smooth trajectory through interpolation and optimization. However, this method may have a mechanism singularity problem, which affects the normal realization of the trajectory. Trajectory planning methods, whether joint space planning method or Cartesian space trajectory planning method, do not take into account that the robot will be damaged by wear or unnecessary energy loss during the movement of the mechanical parts, resulting in reduced trajectory accuracy and smoothness and energy waste. Khan et al. (Khan AT, Li S, Kadry S, et al. Control framework for trajectory planning of soft manipulator using optimized RRT algorithm [J]. IEEE Access, 2020, 8: 171730-171743.) proposed a weighted Jacob fast exploration random tree algorithm to effectively plan the trajectory, which can effectively explore in the Cartesian space of the end effector of the manipulator and guide it to approach the target position, realizing the design of the model-free control framework, but considering issues such as energy consumption. Yang Fan (Yang Fan. Energy-optimal trajectory planning of a seven-degree-of-freedom manipulator based on an improved wolf pack algorithm [D]. Suzhou University, 2022.) proposed an energy-optimal trajectory planning method for a seven-degree-of-freedom manipulator based on an improved wolf pack algorithm based on information interaction and adaptive step size, transforming the trajectory planning problem into a parameter optimization problem, and constructing a dynamics-based energy consumption mathematical model as the optimization objective function. Compared with other methods, the joint space trajectory planning method based on polynomials is simple and efficient, but the smoothness of the motion is poor and the energy consumption planning is weak. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention proposes an ultrasonic robot energy optimal trajectory planning method, which integrates the 5-7-5 polynomial joint space trajectory planning and the CDE-GRO algorithm, and uses the improved joint space trajectory planning method and the gold mine search optimization algorithm to realize the ultrasonic robot energy optimal trajectory planning.

[0005] The present invention is achieved through the following technical solutions.

[0006] The method for planning an energy optimal trajectory of an ultrasonic robot according to the present invention comprises the following steps:

[0007] Step 1, set simulation parameters and initialize the robot model;

[0008] The robot device has N rotatable joints J1, J2...J N , the corresponding N joint angles are θ1, θ2…θ N The DH parameter table includes the link length (a) between each joint, the joint offset (d), the rotation angle between adjacent joint axes (α), and the joint angle (θ); set the DH parameter table of the robot and the motion parameters of N joints.

[0009] Step 2, setting the starting and ending position states of the robot arm;

[0010] According to actual needs, set the starting and ending position information of N joints, the initial position is θ0, and the ending position is θ e The inverse kinematics theory is used to calculate the angle values ​​of each joint. The angle functions of N joints are: angle θ1(t), θ2(t)…θ N (t).

[0011] Step 3, construct a 5-7-5 piecewise polynomial interpolation function;

[0012] The robot motion trajectory is divided into three sections, namely the uniform speed stage, the acceleration stage, and the deceleration stage, using 5th-order polynomial, 7th-order polynomial, and 5th-order polynomial respectively.

[0013] ① Polynomial representation of the uniform speed stage;

[0014] Fp1=@(t)a15*t 5 +a14*t 4 +a13*t 3 +a12*t 2 +a11*t 1 +a10*t 0 Among them, Fp1 represents the polynomial of the position changing with time in the uniform speed stage, a10, a11, a12, a13, a14, a15 represent the polynomial coefficients of the uniform speed stage, and t is the time variable.

[0015] ② Polynomial representation of the acceleration phase;

[0016] Fp2=@(t)a27*t 7 +a26*t 6 +a25*t5 +a24*t 4

[0017] +a23*t 3 +a22*t 2 +a21*t 1 +a20*t 0

[0018] Among them, Fp2 represents the polynomial of the position change with time in the acceleration stage, and a20, a21, a22, a23, a24, a25, a26, and a27 represent the polynomial coefficients of the acceleration stage.

[0019] ③ Polynomial representation of the deceleration phase;

[0020] Fp3=@(t)a35*t 5 +a34*t 4 +a33*t 3 +a32*t 2 +a31*t 1 +a30*t 0

[0021] Among them, Fp3 represents the polynomial of the position change with time in the deceleration stage, and a30, a31, a32, a33, a34, and a35 represent the polynomial coefficients of the deceleration stage.

[0022] By taking the first, second, third and fourth derivatives of the position polynomial function, the polynomial expressions of velocity (Fv1, Fv2, Fv3), acceleration (Fa1, Fa2, Fa3), jerk (Fj1, Fj2, Fj3) and acceleration (Fk1, Fk2, Fk3) are obtained respectively.

[0023] Step 4: Use the CDE-GRO algorithm to perform core optimization and obtain the optimal robot arm motion parameters;

[0024] (a): Introduce chaotic sequences, use sine functions to increase the diversity of parameters in the initial stage, add chaotic variables to the algorithm's control parameter sigma_initial, and enhance the algorithm's early exploration capabilities by changing the collaboration_rate and mining_rate parameters and gradually reducing the sigma_initial value. The algorithm is expressed as:

[0025]

[0026] (b): Introduce a diversity mechanism, check the diversity every ten iterations, and when the exploration process is found to be stagnant, randomly reset 10% of the prospector positions to reduce the risk of falling into a local optimum. The algorithm is:

[0027] idx=randperm(N,floor(N*0.1))

[0028] Positions(idx,∶)=initialization(length(idx),dim,lb,ub)

[0029] (c): Introduce an elite reverse learning strategy, by identifying the worst performing individuals and updating them in the opposite direction of the current best individual. Sort all individuals in ascending order according to fitness, quickly find the best and worst performing individuals, and the elite individual determination formula is as follows:

[0030] [sortedFit,sortedIdx]=sort(Fit,′ascend′)

[0031] Starting from the worst performing individual, the formula for determining the individual index for reverse update is as follows:

[0032] reverseIdx=sortedIdx(end-i+1)

[0033] Based on the current best position, add a direction vector of random proportion, pointing to the direction between the worst individual and the best individual, update the position of the worst performing individual, and explore the area around the best solution that may not be fully explored. The formula is as follows:

[0034] Positions(reverseIdx,∶)

[0035] =best pos +rand(1,dim).*(best pos -Positions(reverseIdx,∶))

[0036] (d): Set the CDE-GRO algorithm parameters. Population size; maximum number of iterations; initial and end positions;

[0037] ① Initialize the search agent position of the CDE-GRO algorithm, the number of prospectors SdearchAgents_no, the gold mine explorer position Positions, the search boundary [lb ub], the number of iterations, and the energy value;

[0038] ②Cooperative behavior: two or more prospectors share information and cooperate to find the optimal solution. New search points are formed by combining the location information of different prospectors. The cooperative behavior algorithm is:

[0039] r1=rand

[0040] D3=Positions(digger2,d)-Positions(digger1,d)

[0041] X NEW(i,d) =Positions(i,d)+r1*D3

[0042] Where D3 represents the difference in position between two randomly selected prospectors (codenamed digger1 and digger2) on dimension d, X NEW(i,d) Represents the new position of the current prospector i.

[0043] ③ Mining behavior, conduct local search around the current position, try to discover more solutions, and generate new positions near the current position of the prospector. The mining behavior algorithm is:

[0044] r1=rand

[0045] A2=2*l2*r1-l2

[0046] D2=Positions(i,d)-Positions(digger1,d)

[0047] X NEW(i,d) =Positions(digger1,d)+A2*D2

[0048] A2 is an adjustment calculation factor that allows the new position to be explored near the current position, and contains a certain degree of randomness.

[0049] ④ Migration behavior: the prospector moves to the currently known best position, which is achieved by adjusting the search agent position in the direction of the global optimal solution. The random factor is used to maintain the exploratory nature. The migration behavior algorithm is:

[0050] r1=rand

[0051] r2=rand

[0052] C1=2*r2

[0053]

[0054] D1=C1*best pos(d) -Positions(i,d)

[0055] X NEW(i,d) =Positions(i,d)+A1*D1

[0056] Among them, C1 is a random factor used to increase exploration and avoid directly skipping the best position, and A1 is an adjustment factor that allows the prospector to move closer to the best position more finely during the migration process.

[0057] ⑤ Evaluation and selection: evaluate the performance of each prospector (i.e., the quality of the solution) and select the prospector with the best performance for the next round of exploration.

[0058] ⑥ Search update, when the prospector finds a better solution than the currently known one, the global optimal solution is updated. At the same time, the prospector updates its position based on the current position, historical information, and other position information.

[0059] ⑦ Determine whether the algorithm meets the conditions and perform iterative search by repeating the above process until the termination conditions are met. Within the maximum number of iterations, the convergence curve of the algorithm records the changes in the global optimal solution during the iteration process.

[0060] Compared with the prior art, the present invention has the following beneficial effects:

[0061] The present invention effectively solves the problems of dynamic characteristic optimization and reasonable energy allocation existing in traditional joint space planning methods through three motion stages: uniform speed stage, acceleration stage, and deceleration stage. Compared with the traditional GRO algorithm, the CDE-GRO algorithm introduces elite reverse learning and dynamic exploration balance mechanism. Not only is the convergence speed faster, but the energy optimal solution obtained is also more accurate, thereby improving the quality of the algorithm's solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 This is a flow chart of an improved gold mine search optimization algorithm (CDE-GRO).

[0063] Figure 2 The optimal energy value curves of various algorithms after 50 iterations, where (a) is the optimal energy value curve of PSO, (b) is the optimal energy value curve of SSA, (c) is the optimal energy value curve of SNSA, (d) is the optimal energy value curve of HPO, (e) is the optimal energy value curve of GRO, and (f) is the optimal energy value curve of CDE-GRO of the present invention.

[0064] Figure 3 The curves of total torque change over time for various algorithms in the same application scenario. Among them, (a) is the total torque curve of the PSO algorithm, (b) is the total torque curve of the SSA algorithm, (c) is the total torque curve of the SNSA algorithm, (d) is the total torque curve of the HPO algorithm, (e) is the total torque curve of the GRO algorithm, and (f) is the total torque curve of the CDE-GRO algorithm of the present invention. The vertical axis Torque is the torque, and the horizontal axis time is the time.

[0065] Figure 4 This is the actual torque diagram of each joint in the actual movement of the CDE-GRO algorithm. The vertical axis Torque is the torque, and the horizontal axis time is the time.

[0066] Figure 5 Simulation of the Franka robot model.

[0067] Figure 6 It is the optimal trajectory diagram of 5-7-5 polynomial energy based on CDE-GRO algorithm. DETAILED DESCRIPTION

[0068] The present invention will be further described through the following embodiments with reference to the accompanying drawings.

[0069] An ultrasonic robot energy optimal trajectory planning method comprises the following steps:

[0070] Step 1, set simulation parameters and initialize the robot model;

[0071] The robot device has N rotatable joints J1, J2...J N , the corresponding N joint angles are θ1, θ2…θ N The DH parameter table includes the link length (a) between each joint, the joint offset (d), the rotation angle between adjacent joint axes (α), and the joint angle (θ); set the DH parameter table of the robot and the motion parameters of N joints.

[0072] This embodiment takes the Franka robot arm as an example, and specifically sets the DH parameters of Franka as follows:

[0073] Link Length:

[0074] Joint offset:

[0075] Rotation Angle:

[0076] Joint Angle:

[0077] According to the above DH parameters, the specific Franka robot model simulation is shown in the attached Figure 5 .

[0078] In order to obtain the position and posture of link n relative to link 0, first, the transformation relationship between the coordinate systems of adjacent links is established to determine the corresponding link parameters. Secondly, the transformation matrix of each link is calculated by solving the kinematic equations. Finally, the independent transformation relationships are combined to obtain the complete transformation matrix of coordinate system {N} relative to coordinate system {0}. The coordinate system of each link is The general expression is:

[0079]

[0080] Wherein, c represents cosine, and s represents sin.

[0081] The expression of the complete transformation matrix is:

[0082]

[0083] Step 2, setting the starting and ending position states of the robot arm;

[0084] According to actual needs, set the starting and ending position information of N joints, the initial position is θ0, and the ending position is θ e The inverse kinematics theory is used to calculate the angle values ​​of each joint. The angle functions of N joints are: angle θ1(t), θ2(t)…θ N (t).

[0085] Step 3, construct a 5-7-5 piecewise polynomial interpolation function;

[0086] The robot motion trajectory is divided into three sections, namely the uniform speed stage, the acceleration stage, and the deceleration stage, using 5th-order polynomial, 7th-order polynomial, and 5th-order polynomial respectively.

[0087] ① Polynomial representation of the uniform speed stage;

[0088] Fp1=@(t)a15*t 5 +a14*t 4 +a13*t 3 +a12*t 2 +a11*t 1 +a10*t 0 Among them, Fp1 represents the polynomial of the position changing with time in the uniform speed stage, a10, a11, a12, a13, a14, a15 represent the polynomial coefficients of the uniform speed stage, and t is the time variable.

[0089] ② Polynomial representation of the acceleration phase;

[0090] Fp2=@(t)a27*t 7 +a26*t 6 +a25*t 5 +a24*t 4

[0091] +a23*t 3 +a22*t 2 +a21*t 1 +a20*t 0

[0092] Among them, Fp2 represents the polynomial of the position change with time in the acceleration stage, and a20, a21, a22, a23, a24, a25, a26, and a27 represent the polynomial coefficients of the acceleration stage.

[0093] ③ Polynomial representation of the deceleration phase;

[0094] Fp3=@(t)a35*t 5 +a34*t 4 +a33*t 3 +a32*t 2 +a31*t 1 +a30*t 0

[0095] Among them, Fp3 represents the polynomial of the position change with time in the deceleration stage, and a30, a31, a32, a33, a34, and a35 represent the polynomial coefficients of the deceleration stage.

[0096] By taking the first, second, third and fourth derivatives of the position polynomial function, the polynomial expressions of velocity (Fv1, Fv2, Fv3), acceleration (Fa1, Fa2, Fa3), jerk (Fj1, Fj2, Fj3) and acceleration (Fk1, Fk2, Fk3) are obtained respectively.

[0097] Step 4: Use the CDE-GRO algorithm to perform core optimization and obtain the optimal robot arm motion parameters;

[0098] (a): Introduce chaotic sequences, use sine functions to increase the diversity of parameters in the initial stage, add chaotic variables to the algorithm's control parameter sigma_initial, and enhance the algorithm's early exploration capabilities by changing the collaboration_rate and mining_rate parameters and gradually reducing the sigma_initial value. The algorithm is expressed as:

[0099]

[0100] (b): Introduce a diversity mechanism, check the diversity every ten iterations, and when the exploration process is found to be stagnant, randomly reset 10% of the prospector positions to reduce the risk of falling into a local optimum. The algorithm is:

[0101] idx=randperm(N,floor(N*0.1))

[0102] Positions(dx,∶)=initialization(length(idx),dim,lb,ub)

[0103] (c): Introduce an elite reverse learning strategy, by identifying the worst performing individuals and updating them in the opposite direction of the current best individual. Sort all individuals in ascending order according to fitness, quickly find the best and worst performing individuals, and the elite individual determination formula is as follows:

[0104] [sortedFit,sortedIdx]=sort(Fit,′ascend′)

[0105] Starting from the worst performing individual, the formula for determining the individual index for reverse update is as follows:

[0106] reverseIdx=sortedIdx(end-i+1)

[0107] Based on the current best position, add a direction vector of random proportion, pointing to the direction between the worst individual and the best individual, update the position of the worst performing individual, and explore the area around the best solution that may not be fully explored. The formula is as follows:

[0108] Positions(reverseIdx,∶)

[0109] =best pos +rand(1,dim).*(best pos -Positions(reverseIdx,∶))

[0110] (d): Set the CDE-GRO algorithm parameters. Population size is 50; maximum number of iterations is 50; initial and end positions;

[0111] ① Initialize the search agent position of the CDE-GRO algorithm, the number of prospectors SearchAgents_no, the gold mine explorer position Positions, the search boundary [lbub], the number of iterations, and the energy value;

[0112] ②Cooperative behavior: two or more prospectors share information and cooperate to find the optimal solution. New search points are formed by combining the location information of different prospectors. The cooperative behavior algorithm is:

[0113] r1=rand

[0114] D3=Positions(digger2,d)-Positions(digger1,d)

[0115] X NEW(i,d) =Positions(i,d)+r1*D3

[0116] Where D3 represents the difference in position between two randomly selected prospectors (codenamed digger1 and digger2) on dimension d, X NEW(i,d) Represents the new position of the current prospector i.

[0117] ③ Mining behavior, conduct local search around the current position, try to discover more solutions, and generate new positions near the current position of the prospector. The mining behavior algorithm is:

[0118] r1=rand

[0119] A2=2*l2*r1-l2

[0120] D2=Positions(i,d)-Positions(digger1,d)

[0121] X NEW(i,d) =Positions(digger1,d)+A2*D2

[0122] A2 is an adjustment calculation factor that allows the new position to be explored near the current position, and contains a certain degree of randomness.

[0123] ④ Migration behavior: the prospector moves to the currently known best position, which is achieved by adjusting the search agent position in the direction of the global optimal solution. The random factor is used to maintain the exploratory nature. The migration behavior algorithm is:

[0124] r1=rand

[0125] r2=rand

[0126] C1=2*r2

[0127]

[0128] D1=C1*best pos(d) -Positions(i,d)

[0129] X NEW(i,d) =Positions(i,d)+A1*D1

[0130] Among them, C1 is a random factor used to increase exploration and avoid directly skipping the best position, and A1 is an adjustment factor that allows the prospector to move closer to the best position more finely during the migration process.

[0131] ⑤ Evaluation and selection: evaluate the performance of each prospector (i.e., the quality of the solution) and select the prospector with the best performance for the next round of exploration.

[0132] ⑥ Search update, when the prospector finds a better solution than the currently known one, the global optimal solution is updated. At the same time, the prospector updates its position based on the current position, historical information, and other position information.

[0133] ⑦ Determine whether the algorithm meets the conditions and perform iterative search by repeating the above process until the termination conditions are met. Within the maximum number of iterations, the convergence curve of the algorithm records the changes in the global optimal solution during the iteration process.

[0134] As attached Figure 2 The optimal energy value change curves of various algorithms after 50 iterations. Among them, (a) is the optimal energy value curve of PSO, (b) is the optimal energy value curve of SSA, (c) is the optimal energy value curve of SNSA, (d) is the optimal energy value curve of HPO, (e) is the optimal energy value curve of GRO, and (f) is the optimal energy value curve of CDE-GRO of the present invention. It can be seen from the legend that compared with other algorithms, the optimal energy value of CDE-GRO algorithm is the lowest, and the algorithm can quickly converge to a state with a lower energy value in the early stage of iteration.

[0135] In order to avoid coincidence in a single experiment, ten experiments were conducted on each algorithm. The starting and ending positions were kept unchanged in the ten experiments. The population size and maximum number of iterations of each algorithm were set to 50 times. The final optimal energy value of the ten experiments of each algorithm was recorded and the average value was taken. The results are shown in Table 1:

[0136] Table 1 Optimal energy values ​​of each algorithm after 10 experiments

[0137]

[0138] From Table 1, we can see that when the starting and ending positions of the robot arm are fixed, the CDE-GRO algorithm can obtain a smaller energy value in each experiment, and the average energy value of ten experiments is the lowest. Compared with other algorithms, the CDE-GRO algorithm can complete the motion trajectory planning of the robot arm with less energy consumption. Through the test of actual optimization problems, the CDE-GRO algorithm has a faster convergence speed and higher solution quality than the original algorithm, which improves the algorithm's optimization ability and shows great potential in practical applications.

[0139] As attached Figure 3The curves of total torque change over time for various algorithms in the same application scenario. Among them, (a) is the total torque curve of the PSO algorithm, (b) is the total torque curve of the SSA algorithm, (c) is the total torque curve of the SNSA algorithm, (d) is the total torque curve of the HPO algorithm, (e) is the total torque curve of the GRO algorithm, and (f) is the total torque curve of the CDE-GRO algorithm of the present invention. It can be seen from the legend that the changes in the initial and final stages of the movement of the robotic arm are relatively gentle compared to the intermediate stages, which proves the effectiveness of the proposed 5-7-5 polynomial. As shown in Table 2, it can be seen that the proposed CDE-GRO algorithm has the lowest integral value of the total torque of each joint in the energy optimal trajectory planning in the actual scenario, which proves the effectiveness of the CDE-GRO algorithm. The actual torque of each joint of the CDE-GRO algorithm in the entire movement is shown in the attached figure. Figure 4 shown.

[0140] Table 2 Total torque integral values ​​of each algorithm

[0141] algorithm PSO SSA SNSA HPO GRO CDE-GRO Total torque integral 75.68 88.82 88.33 82.42 77.78 72.58

[0142] In MATLAB, the CDE-GRO algorithm is used to plan the energy-optimal trajectory for the joint space motion of the Franka Emika Panda robot based on the 5-7-5 polynomial. First, set the simulation parameters and initialize the robot model to configure the necessary environment for the optimization process. Secondly, define the start and end positions of the motion. In this experiment, set the robot's start position to [0, 0, -π, -π / 6, -π / 6, π, 0] and the end position to [π / 4, -π / 4, -π, -π / 2, -π / 6, π, 0]. Finally, the CDE-GRO algorithm is used for core optimization to efficiently search the solution space and find the optimal robot arm motion parameters. The energy-optimal path of the simulated robot arm is shown in the attached figure. Figure 6 .

[0143] The above only expresses the preferred embodiments of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present invention, several modifications, improvements and substitutions can be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. An energy-optimal trajectory planning method for ultrasonic robots, The method is characterized by the following steps: Step 1, set simulation parameters and initialize the robot model; The robot device has N rotatable joints J 1 , J 2 …J N , the corresponding N joint angles are θ 1 ,θ 2 …θ N ; The DH parameter table includes the link length (a) between each joint, the joint offset (d), the rotation angle between adjacent joint axes (α), and the joint angle (θ); Set the DH parameter table of the robot and the motion parameters of N joints; Step 2, setting the starting and ending position states of the robot arm; According to actual needs, set the starting and ending position information of N joints, and the initial position is θ 0 , the end point is θ e ; Use inverse kinematics theory to calculate the angle value of each joint. The angle function of N joints is: Angle θ 1 (t),θ 2 (t)…θ N (t); Step 3, construct a 5-7-5 piecewise polynomial interpolation function; The robot motion trajectory is divided into three stages, namely, the uniform speed stage, the acceleration stage, and the deceleration stage, using 5th-order polynomial, 7th-order polynomial, and 5th-order polynomial respectively; ① Polynomial representation of the uniform speed stage; Fp1=@(t)a15*t 5 +a14*t 4 +a13*t 3 +a12*t 2 +a11*t 1 +a10*t 0 Among them, Fp1 represents the polynomial of the position changing with time in the uniform speed stage, a10, a11, a12, a13, a14, a15 represent the polynomial coefficients in the uniform speed stage, and t is the time variable; ② Polynomial representation of the acceleration phase; Fp2=@(t)a27*t 7 +a26*t 6 +a25*t 5 +a24*t 4 +a23*t 3 +a22*t 2 +a21*t 1 +a20*t 0 Wherein, Fp2 represents the polynomial of the position variation with time in the acceleration phase, and a20, a21, a22, a23, a24, a25, a26, and a27 represent the polynomial coefficients in the acceleration phase; ③ Polynomial representation of the deceleration phase; Fp3=@(t)a35*t 5 +a34*t 4 +a33*t 3 +a32*t 2 +a31*t 1 +a30*t 0 Among them, Fp3 represents the polynomial of the position change with time in the deceleration stage, a30, a31, a32, a33, a34, a35 represent the polynomial coefficients in the deceleration stage; By taking the first, second, third and fourth derivatives of the position polynomial function, the polynomial expressions of velocity (Fv1, Fv2, Fv3), acceleration (Fa1, Fa2, Fa3), jerk (Fj1, Fj2, Fj3) and jerk (Fk1, Fk2, Fk3) are obtained respectively; Step 4: Use the CDE-GRO algorithm to perform core optimization and obtain the optimal robot arm motion parameters; (a): Introduce chaotic sequence, use sine function to improve the diversity of parameters in the initial stage, add chaotic variables to the algorithm's control parameter sigma_initial, and enhance the algorithm's early exploration ability by changing the collaboration_rate and mining_rate parameters and gradually reducing the sigma_initial value; the algorithm is expressed as: (b): Introduce a diversity mechanism and check the diversity every ten iterations. When the exploration process is found to be stagnant, randomly reset 10% of the prospector positions to reduce the risk of falling into a local optimum. The algorithm is: idx=randperm(N, floor(N*0.1)) Positions(idx,:)=initialization(length(idx),dim,lb,ub) (c): Introduce an elite reverse learning strategy, by identifying the worst performing individuals and updating them in the opposite direction of the current best individual; sort all individuals in ascending order according to fitness, quickly find the best and worst performing individuals, and the elite individual determination formula is as follows: [sortedFit, sortedIdx] = sort(Fit, 'ascend') Starting from the worst performing individual, the formula for determining the individual index for reverse update is as follows: reverseIdx=sortedIdx(end-i+1) Based on the current best position, add a direction vector of random proportion, pointing to the direction between the worst individual and the best individual, update the position of the worst performing individual, and explore the area around the best solution that may not be fully explored; according to the following formula: Positions(reverseIdx,:) =best pos +rand(1,dim).*(best pos -Positions(reverseIdx,:)) (d): Set CDE-GRO algorithm parameters; population size; maximum number of iterations; initial and end positions; ① Initialize the search agent position of the CDE-GRO algorithm, the number of prospectors SearchAgents_no, the gold mine explorer position Positions, the search boundary [lb ub], the number of iterations, and the energy value; ② Cooperation behavior: two or more prospectors share information and cooperate to find the optimal solution; new search points are formed by combining the location information of different prospectors; the cooperation behavior algorithm is: r1=rand D3=Positions(digger2,d)-Positions(digger1,d) X NEW(i,d) =Positions(i,d)+r1*D3 Where D3 represents the difference in position between two randomly selected prospectors (codenamed digger1 and digger2) on dimension d, X NEW(i,d) represents the new position of the current prospector i; ③ Mining behavior, conduct local search around the current position, try to discover more solutions, and generate new positions near the current position of the prospector; the mining behavior algorithm is: r1=rand A2=2*l2*r1-l2 D2=Positions(i,d)-Positions(digger1,d) X NEW(i,d) =Positions(digger1,d)+A2*D2 A2 is an adjustment calculation factor that allows the new location to be explored near the current location, which contains a certain degree of randomness. ④ Migration behavior: the prospector moves to the currently known best position, which is achieved by adjusting the search agent position in the direction of the global optimal solution. The random factor is used to maintain the exploratory nature. The migration behavior algorithm is: r1=rand r2=rand C1=2*r2 D1=C1*best pos(d) -Positions(i,d) X NEW(i,d) =Positions(i,d)+A1*D1 Among them, C1 is a random factor used to increase exploration and avoid directly skipping the best position, and A1 is an adjustment factor that makes the prospector move closer to the best position more finely during the migration process; ⑤ Evaluation and selection: evaluate the performance of each prospector (i.e., the quality of the solution) and select the prospector with the best performance for the next round of exploration; ⑥ Search update: when the prospector finds a better solution than the currently known one, the global optimal solution is updated; at the same time, the prospector updates its position based on the current position, historical information, and other position information; ⑦ Determine whether the algorithm meets the conditions and perform iterative search by repeating the above process until the termination conditions are met. Within the maximum number of iterations, the convergence curve of the algorithm records the changes in the global optimal solution during the iteration process.

Citation Information

Cited By

  • Coordinated motion planning method for double-arm robot under multiple constraints

    CN120080321A