Abstract
To address issues of local optimization, slow convergence, and poor accuracy, this work introduces a time-optimal trajectory planning method using the Adaptive Gold Search algorithm (AGS). The method enhances algorithm diversity and escapes local optima through elite reverse strategy population initialization. It employs an adaptive nonlinear decreasing factor for a balance between linearity and nonlinearity, improving accuracy and convergence speed. The golden sinusoidal variation technique enhances global search capabilities and robustness in robot arm trajectory planning. Experimental results show that the AGS algorithm produces smooth joint angular displacement, acceleration, velocity, and jerk curves. It outperforms the GA, PSO, GOOSE, and GWO algorithms in time optimization by 13.31%, 13.61%, 5.34%, and 4.73%, respectively, effectively reducing trajectory planning time.
Introduction
By defining the joint states of the end-effector, the robotic arm can move efficiently in accordance with the trajectory and precisely reach the target point, ensuring that the entire movement process takes the least amount of time, provided that the dynamic constraints and safety requirements of the system are met. This is known as time-optimal trajectory planning.
Intelligent optimization algorithms are applied to study and optimize various engineering problems because of their generality and parallel processing.1–3 Meta-heuristic algorithms are typical of intelligent optimization algorithms because they can usually find the optimal solution of a problem in a relatively short time with high efficiency and flexibility. Metaheuristic algorithms are categorized into three types: evolutionary algorithms, swarm intelligence algorithms, and emergent metaheuristics. The proposal of evolutionary algorithms such as Genetic Algorithms (GA), 4 Differential Evolution Algorithms (DE), 5 and Tabu Search Algorithms (TS), 6 pioneered the application of meta-heuristic algorithms in optimization. These algorithms solve problems like path planning 7 and damage detection 8 by simulating natural evolutionary processes. However, with the increasing complexity of practical engineering problems, evolutionary algorithms have shown limitations in addressing issues involving complex structures and forms. Subsequent research has consistently proposed Particle Swarm Optimization (PSO), 9 Ant Colony Algorithm (ACA), 10 Grey Wolf Optimizer (GWO), 11 Monkey Algorithm (MA), 12 and other swarm intelligence algorithms. These meta-heuristic algorithms are highly general and independent of the particular form and structure of the problem. In the study of PSO algorithms, it was discovered that swarm intelligent algorithms are easily prone to local optimization problems, 13 while in the study of nonlinear optimization search problems, Jiang et al. 14 discovered that the inability of swarm intelligent algorithms to adapt to complex nonlinear optimization search results in a decrease in algorithmic convergence accuracy. As a result, the traditional swarm intelligence algorithm finds it challenging to achieve optimal results for high-dimensional, nonlinear, multi-polar, objective function that cannot be deduced, and other complex global optimization problems. Spider Wasp Optimizer Algorithm (SWO), 15 Nutcracker Optimization Algorithm (NOA), 16 Zebra Optimization Algorithm (ZOA), 17 and other emerging meta-heuristic algorithms proposed to solve the global optimization problem and convergence accuracy provides a new approach, but these algorithms lack adaptive adjustment mechanism and are sensitive to parameters. For this reason, researchers typically enhance the mechanism of meta-heuristic algorithms. Wu and Luo 18 expand the search space by adding the enhanced mutation operator in the DE algorithm to the inertia weights of the PSO algorithm. Wu et al. 19 enhance the PSO method by implementing the Gaussian mutation strategy and greedy strategy, which may guarantee that the process is difficult to fall into the local optimum by limiting the likelihood of particle mutation within a manageable range; Wang et al. 20 used the initialization strategy combining Fuch chaos mapping and optimized dyadic learning to generate a well-diversified population, which improves the global exploration ability of the Whale Optimization Algorithm (WOA) in dealing with high-dimensional optimization problems. However, the research of the above algorithms still suffers from the defects of poor convergence accuracy and slow convergence speed, and the advantages and disadvantages of the convergence effect directly affect the accuracy of the results of the search for optimization. For this purpose, Long et al. 21 used a nonlinear control parameter convergence strategy to introduce random perturbations to enhance the robustness, which accelerated the convergence speed of the GWO algorithm; Bai and Liu 22 combined the decomposition strategy with the Artificial Bee Colony Algorithm (ABC) to decompose the original multi-objective optimization into multiple single-objective optimization subproblems, which improved the convergence speed of the ABC algorithm; Liu et al. 23 combined local pheromone diffusion with geometric optimization on the basis of ACA algorithm, which reduces the average number of iterations in order to guarantee the algorithm’s convergence accuracy and speed; However, the above algorithms could not maintain global optimization and have stable convergence speed and accuracy at the same time. To solve this problem, Tanyildizi and Demir proposed a new meta-heuristic algorithm mechanism-Golden Sine Search (Golden-SS), 24 which guarantees both convergence speed and accuracy and global search during the optimal position search, however, the mechanism is statically designed and may not be able to adapt to changes in the characteristics of different optimization problems and lacks dynamic adaptive adjustment.
This paper introduces an Adaptive Gold Search Algorithm (AGS) for time-optimal trajectory planning in robotic arms. It addresses challenges like slow convergence, accuracy issues, and local optima. The method uses a time-optimized mathematical model and a 3-5-3 segmented polynomial interpolation function. An elite inverse strategy is employed for population initialization to avoid local optima, while a gold sinusoidal variation strategy enhances global search accuracy. An adaptive nonlinear descent factor is also used to adjust population positions and speed up convergence. Experiments with a six-axis robotic arm demonstrate the algorithm’s superior convergence accuracy, speed, and global optimization capability.
Interpolating polynomials and mathematical models for time optimization
Trajectory planning based on 3-5-3 mixed polynomials
Existing trajectory planning methods include Cubic Polynomials, 25 Cubic Splines Curve, 26 and NURBS Curve, 27 etc. The Cubic Polynomials can only ensure that the displacement and velocity remain continuous, and the acceleration curves of the joints of the Cubic Polynomials have a sudden change at the starting point; although the Cubic Splines Curve and the NURBS Curve adopt the uniform segmentation to ensure the continuity of the displacement, velocity, and acceleration, the global coupling leads to the need of local adjustment. The global coupling leads to the local adjustment needing overall iteration, and the computational efficiency is low, which can’t achieve the real-time trajectory updating.
Therefore, this paper uses 3-5-3 hybrid interpolating polynomials for trajectory planning, which retains the advantages of low-order polynomials’ high computational efficiency through asymmetric segment order and dynamically enhances trajectory’s local adjustment ability through high-order polynomials in the middle segment, improving real-time performance while ensuring trajectory quality.
The trajectory using 3-5-3 hybrid interpolation polynomials requires the following assumptions:
(1) Four interpolation points must be selected, with known joint angles at these points;
(2) The joint velocity and acceleration at the trajectory’s starting and ending points should be zero;
(3) The joint velocity and acceleration must maintain third-order continuity throughout the trajectory.
The schematic diagram of the 3-5-3 hybrid interpolating polynomial is shown in Figure 1:

3-5-3 interpolating polynomial schematics.
The four known robot arm interpolation points in space are shown in Figure 2 xj0, xj1, xj2, xj3, the whole planning process is divided into three segments, and the three polynomial interpolation times are t1, t2, and t3, respectively. Generally, the existence of the first-order derivatives of the polynomial interpolation function at the interpolation points represents the continuity of the velocity, the second-order derivatives represent the continuity of the acceleration, and the existence of the third-order derivatives represents the continuity of the impulse. The ith joint 3-5-3 hybrid interpolation polynomial is shown in equation (1):
where lj1, lj2, and lj3 represent the angular displacements of the jth joint of the 3-5-3 interpolating polynomial, respectively, and ajk denotes the kth coefficient in the jth section of the function, and the following equation can be constructed from the above conditions:
The following equation shows the transformation matrix A of the 3-5-3 hybrid interpolating polynomials, the value of whose expression is related to the three polynomial interpolation times t1, t2, and t3:
The b matrix in the following equation is the position matrix during the trajectory planning process of the robotic arm and represents the position of the jth joint:
The C matrix in the following equation is the coefficient matrix of the polynomial interpolation function:
According to the above derivation and mathematical model, each coefficient ajk of the 3-5-3 hybrid interpolating polynomial can be solved, so that the three motion trajectories of the robotic arm in the joint space can be obtained, which can effectively ensure the smoothness and continuity of the velocity and acceleration curves of the robotic arm in the joint space.

AGS algorithm trajectory planning flowchart.
Time-optimized model
In industrial production, in order to improve the efficiency, several factors such as energy consumption, time, speed, and resistance need to be considered, among which time is a frequently concerned factor. To study the time optimization problem in robotic arm trajectory planning, firstly, based on the establishment of polynomial interpolation model with the consideration of constraints, the core time optimization mathematical model is proposed as shown in equation (6):
Where ti1, ti2, ti3 are the planning time of the i (i = 1, 2, …, 6) joints of the robotic arm with three-segment multiform interpolation, where
Adaptive Gold Search algorithm with trajectory optimization
Elite reverse population initialization
Meta-heuristic optimization algorithms first need population initialization to confirm the initial position of each population. Opposition-based Learning (OBL)
28
is an effective method to improve the searching ability of stochastic search algorithms, the core of which is: Assuming
where δ is a moderating factor and is a random value on the interval [0, 1]. Although this method enlarges the search space, it is not applicable to local exploitation and global equilibrium. Therefore, on this basis, this paper introduces the Elite Inverse Strategy (EIS) to improve it, and when the required inverse solution
where
(1) After completing the initialization operation of the population S, screen the N/2 individuals with optimal fitness from the population S based on the fitness evaluation criterion.
(2) Solve the inverse population
(3) Combine population S with the reverse population
This strategy can improve the ability of the algorithm to search globally and realize global convergence.
Adaptive inertia weights
Early after population initiation, individual patterns concentrate around high-fitness individuals, causing fast velocity decreases. If the inertia weight is persistently low, the population has limited exploitation capacity, causing early convergence and failure to escape local optima. To assure convergence speed, a nonlinear adaptive inertia weight is used to help individuals quickly reach ideal regions.
In order to describe the change of the overall fitness value during the evolution of the population, the definition of evolutionary dispersion is given. The ratio of the standard deviation of the fitness value of the population in generation n to that of the population in generation (n−1) is defined as the evolutionary dispersion k(n):
In meta-heuristic algorithms, commonly used inertia weights include Exponential Decreasing Inertia Weight (EDIW), 29 Cosine Decreasing Inertia Weight (CDIW), 30 etc., which use exponential function and cosine function to construct the inertia weights respectively, but there is a lack of a balanced transition mechanism between the early stage of the algorithm and the late stage of the algorithm, and it is easy to lack of dynamic feedback on the actual state of the algorithm. Sigmoid function is commonly used in neural networks to construct neuron activation function, 31 which can realize adaptive switching between global exploration and local development, so this paper introduces the Sigmoid function to construct a balanced transition mechanism, which is defined as:
Jointly evolve the dispersion k(n) and S function, set the maximum and minimum inertia weights
where n is the number of iterations. The traditional algorithm 33 needs to set the variable α for improving the result of the new position Xi in the search space before finding the optimal position through iteration, set the iteration to end after Imax times, and introduce a loop counter p to record the number of iterations, whose expression is:
where the variable α takes values ranging from 0 to 2. This value decreases sharply with each iteration in the loop. This α-scheduling described above for the complex high-dimensional optimization problem of optimal robot arm trajectory planning time, in addition to the ease of falling into the local optimum, the accuracy of the later search is also difficult to be solved by the traditional meta-heuristic. Therefore, the adaptive search weight α is changed to that shown in equation (13):
where r is the damping factor taken between [0, 1]. This strategy ensures that the group position is adjusted while speeding up the convergence rate and ensuring the efficiency of the computation.
Gold global optimal position search
The convergence accuracy and speed of the swarm intelligence algorithm may be significantly impacted by an overly aggressive search strategy or an improper parameter setting, which fails to fully investigate the entire search space despite the introduction of adaptive inertia weights. The traditional algorithm uses a random search for the optimal individual position in the search space, introduces a random search parameter λ based on the product of the minimum search time Tmin and the variable α, and then derives the optimal position search expression from the optimal position Pb found in the search area during the development phase as shown in equation (14):
where λ is a random value between [1, m] and m is the variable dimension. The Golden Search Optimization Algorithm (GSO) 34 can effectively explore the whole search space by adjusting the search behavior through adaptive step size and transfer operator, but this mechanism combines two functions, sine and cosine, to calculate the step size, which leads to high computational complexity and affects the algorithm’s optimization efficiency.
To address this problem, the algorithm in this paper adopts the golden sinusoidal variation strategy to improve the convergence accuracy of the algorithm. First only the better synergistic sinusoidal function is used for the position search, and at the same time, the introduction of the golden section coefficients x1, x2, to narrow down the search range and guide the individual to approach the optimal solution, so as to improve the search mechanism of the optimal position, and set the representation coefficients of the distance and direction, R1 and R2, respectively, to take the value between
where
where τ is the golden section number, and the irrational number of
AGS algorithm trajectory planning process
According to the above theoretical basis, the steps of AGS algorithm applied to robotic arm time-optimal trajectory planning are as follows:
Step 1: The elite inverse strategy initializes the population overall, initializes the positions of the population as well as the individuals, and initializes the values of the variables lb, ub, dim, and sets the maximum iteration value;
Step 2: Enter the loop, calculate the fitness value h(t) of the population according to equation (6), compare the velocity and acceleration that satisfy the condition, and then update the optimal fitness of the population and record it;
Step 3: Calculate the adaptive search weights according to equation (13);
Step 4: Perform adaptive gold optimal position search according to equations (14) and (15);
Step 5: Calculating the fitness for the optimal position, comparing the fitness that meets the constraints with the optimal fitness recorded in step 2, and recording the better fitness value with the velocity and acceleration values;
Step 6: According to the maximum iteration value set in step 1, determine whether the current maximum iteration value has been reached, and if it has been reached, exit the iteration, and output the optimal population fitness value and the optimal time value of the robotic arm in the trajectory planning process, and plan the optimal trajectory of the robotic arm according to the optimal time.
The algorithm trajectory planning process is shown below:
Algorithm validation and experimental analysis
Algorithm validation results
To validate the reliability and correctness of the AGS algorithm, the simulation experiments in this paper are based on Windows 10 with 64-bit operating system, 3. 2 GHz main frequency and 16GB RAM, and programmed with MATLAB R2020a software. This study conducts a comparative analysis of PSO algorithm, GWO algorithm, GA algorithm, GOOSE algorithm, and AGS algorithm using four benchmark functions from CEC2005, Set the PSO algorithm as follows: the number of population clusters is 30, the weight coefficient ω = 0.7, the learning factor c1 = 4, c2 = 3; set the parameters of GA algorithm as follows: the crossover probability pc = 0.7, and the mutation probability pm = 0.05; set the parameters of GWO algorithm as follows: the convergence factor a = 2; set the initial parameters of the Goose algorithm as follows: p = r = c = 0.5, and the variable dimensions are 3; and the parameters of golden sinusoidal mutation strategy is parameterized by x1 = −0.741 and x2 = 0.741. Each separate run uses a distinct random seed to reflect algorithm randomness. Based on 30 independent runs’ final fitness values, the optimum, worst, mean, and standard deviation are determined, and convergence curves are presented to show convergence performance. Finally, the optimal, worst, mean, and standard deviation values are compared to evaluate performance. Table 1 lists selected test functions and Table 2 summarizes comparison results:
Standard test function.
Algorithm test result.
The single-peak function mainly tests the convergence speed and accuracy of the algorithm, while the multi-peak function mainly tests the global optimization ability of the function. By analyzing Table 2, it can be seen that in the F1 function, the optimal value and the worst value of AGS are extremely close to the theoretical optimal value of 0, and the average value and the standard deviation are in a very low order of magnitude; in contrast, the precision of the results of PSO, GA, GWO, GOOSE is lower than that of other algorithms by dozens of orders of magnitude; also in the F2 function, the optimal value, the worst value, the average value, and the standard deviation of AGS are also tens of orders of magnitude smaller than those of other algorithms, which proves the advantages of AGS in terms of convergence accuracy and convergence speed. In the multi-peak function F6, the optimal value, the worst value, and the average value of AGS are very close to each other, and all of them are negative, and the standard deviation is also in a very low order of magnitude, indicating that the algorithms can always find very similar, high-quality solutions, and GOOSE also finds a negative solution, but the difference between its optimal value and the worst value is relatively large, and the stability is not as good as that of AGS, and the results of PSO, GA, and GWO are all positive, and the precision and stability are tens of orders of magnitude worse than AGS; also in function F7, the optimal value, mean, and standard deviation of AGS are significantly better than those of other algorithms, and although the worst value is positive, its absolute value is extremely small and is in the same order of magnitude as the optimal value. In the multi-peak function AGS is the only algorithm whose average performance is better than 0, and the very small absolute value and very low standard deviation indicate that AGS can find a solution very close to or even better than 0 in most cases, which proves that AGS has a good global optimization ability in the complex search space. The benchmark function image and the convergence curve of the algorithm are shown in Figure 3:

Reference function convergence curve: (a) F1 convergence curve, (b) F2 convergence curve, (c) F6 convergence curve, and (d) F7 convergence curve.
By analyzing Figure 3, it can be seen that at the beginning of iteration, the AGS algorithm has a faster descent speed, and has a better optimization accuracy compared with the remaining four algorithms. And the application of population initialization elite inverse strategy and nonlinear descent strategy makes the AGS algorithm converge faster, and it is not easy to fall into the local optimum, as can be seen from the curves of PSO, GA, GOOSE, and GWO in the figure, the four algorithms are easy to fall into the local optimum. In the late iteration, the results of the AGS algorithm tend to stabilize, and finally converge to an optimal value, which indicates that the introduction of the gold sinusoidal variation strategy improves the algorithm’s optimization ability, so that the results do not fluctuate. In summary, the AGS algorithm has better optimization ability and convergence accuracy.
Experimental design
The experimental system in this paper mainly consists of three parts: Upper computer, Communication module, and Driver module. The Upper computer is responsible for the key tasks of control program writing and signal processing, and its output value is transmitted to the CAN bus through the CAN intelligent adapter. The Upper computer adopts Windows system, the control program writing and communication interface are realized by Python, and the CAN intelligent adapter selects the USBCAN driver card, the rate reaches 1 Mbps. The Driver module selects the Cyber-Gear micromotor, and builds the CyberGear six-axis tandem robotic arm body through modeling, and its specific parameters are shown in Table 3:
Basic parameters of robotic arm.
The experimental platform constructed is shown in the Figure 4:

Robotic arm experiment platform.
In this paper, we use the standard DH method to analyze the kinematics of the robotic arm, and solve the length ai of the connecting rod, the torsion angle αi of the connecting rod, the offset distance di of the connecting rod, and the joint angle θi. Meanwhile, in order to ensure the stability and safety of the robotic arm in the process of the actual trajectory planning, as well as to ensure the accuracy of the experiment, the maximum speed limitations of the various joints of the robotic arm are: 148, 109, 214, 368, 385, 462°/s. The resulting kinematic parameters of the robotic arm are shown in Table 4:
DH parameter table.
From the 3-5-3 hybrid interpolating polynomial schematic diagram, we can see that we need to select four path points in the joint space as the four interpolation points for trajectory planning, and the angle of the corresponding joint position of each interpolation point is shown in Table 5, as well as the corresponding actual location is shown in Figure 5:
Joint position.

Physical location: (a) position 1, (b) position 2, (c) position 3, and (d) position 4.
Figure 5(a) figure for the zero position of the robot arm, is the entire trajectory planning process of the mechanical zero point, (b), (c) figure for the movement process of the two interpolation points, as shown in the figure of the two positions of the robot arm are smooth to reach the predetermined position, and the joints have not exceeded the range of joint movement, (d) figure for the movement of the termination point, at this time, the speed of all the joints and acceleration are 0. The entire movement process of the robot arm is smooth and jitter free, and the stability of the robot is good.
Test results and analysis
In order to effectively verify the reliability and effectiveness of the AGS algorithm in robotic arm trajectory planning, the optimized optimal time value of the AGS algorithm is compared and verified with the optimized optimal time value of the AGS algorithm, GA algorithm, GWO algorithm, and GOOSE algorithm. The periods of time before optimization are t1 = t2 = t3 = 2 s, meanwhile, in order to ensure the correctness of the experimental results and to avoid chance, the experiment will be repeated for five times, and the average value of the five experimental values will be taken for comparison, and the experimental results are shown in Table 6:
Time optimization results (unit: s).
As can be seen from the data in Table 6, the optimization effect of the AGS algorithm shortens the optimization time value of the remaining four algorithms by an average of 13.31%, 13.61%, 5.34%, and 4.73%, respectively, and the time optimization effect is significant. In order to further verify the advantages of AGS algorithm with high convergence accuracy and not easy to fall into local optimum, the adaptation curves of the six joints in the trajectory planning process are compared with the AGS algorithm, GOOSE algorithm, GA algorithm, GWO algorithm, and PSO algorithm, respectively, and the comparison is shown in Figure 6:

Joint fitness curve.
The change contours of joint fitness are compared in Figure 6 when five algorithms, namely AGS, GOOSE, GA, GWO, and PSO, are optimized for robotic arm trajectory planning. The analysis shows that: the AGS curve exhibits the steepest descending slope at the beginning of the iteration and takes the lead to reach a steady state between 10 and 20 generations into a low adaptation level, in contrast, the GOOSE, GA, GWO, and PSO curves reach a steady state with a delay of about 5, 30, 10, and 30 generations, respectively, which verifies that the AGS has a faster convergence speed, and the AGS is finally stabilized at the lowest adaptation value between 0.8 and 2.0, which is significantly lower than the adaptation level of other algorithms after stabilization, the PSO and GA curves stagnate in the middle of the iteration, around the higher adaptation level of 1.4–2.6, and the GOOSE and GWO curves also fluctuate slightly around the level close to 0.8, which shows the characteristic of falling into the local optimum, whereas the AGS overcomes the problem of being prone to falling into the local optimum. According to quantitative calculations, the convergence accuracy of AGS is enhanced by 55.1%, 16.03%, 16.53%, and 53.06% on average when compared to PSO, GOOSE, GA, and GWO. This supports the assertion that AGS has a stronger global optimization ability, a faster convergence speed, and a higher convergence accuracy.
Meanwhile, under the constraints of joint velocity, joint acceleration, and joint jerk of the robotic arm, the convergence of angular displacement, velocity, acceleration, and jerk curves of the robotic arm after optimization as well as the time needed for convergence are used to verify the convergence effect of the AGS algorithm, and the curves of angular displacement, angular velocity, angular acceleration, and angular jerk are shown in Figures 7 to 10 after optimization:

Joint position curve of each joint.

Joint velocity curve of each joint.

Joint acceleration curve of each joint.

Joint jerk curve of each joint.
As can be seen from Figures 7 to 10, the displacement curves of all six joints are smooth and continuous single-valued functions without any breakpoints or non-conductive cusps, and the curve morphology conforms to the typical smooth trajectory characteristics, which ensures the coherence of the joint motions. Secondly, the velocity curves of each joint are continuous and change gently, and all the velocity curves do not have instantaneous jumps, which avoids the theoretical infinite acceleration. The acceleration curves also maintain continuity, and the curve changes relatively gently without violent pulse-type spikes, indicating that the motion process has little impact. Although the acceleration curve has abrupt changes at the time nodes, the overall trajectory planning process is relatively smooth and there is no joint jitter. Finally, the displacement, velocity, acceleration, and jerk constraints of the robotic arm satisfy the constraints of the temporal optimization model, implying that the motion of the robotic arm is within the safety range, thus verifying the feasibility and accuracy of the proposed algorithm optimization scheme.
Obstacle avoidance performance test
In order to further verify the applicability and accuracy of the AGS algorithm in the offline programming system of the robotic arm, the real environment of the robotic arm is constructed in the V-REP software through the URDF file, and an ordinary cylinder is used as an obstacle, and obstacle avoidance trajectory planning is carried out by using the AGS algorithm, so as to validate the obstacle avoidance performance of the AGS algorithm applied in the offline programming system.
Set the coordinates of the obstacle as well as the coordinates of the robot arm’s obstacle avoidance path point as shown in the Table 7 below:
Keypoint coordinate values.
By planning the same obstacle avoidance path without AGS (only 3-5-3 trajectory planning) and with AGS, the water bottle is used as a cylindrical obstacle, the parameter settings and environment configuration are the same as in the previous section, and the number of experiments is set to 30, and the data comparison between the two cases is shown in Table 8, and the optimal obstacle avoidance obtained by AGS is shown in Figures 11 and 12:
Comparison of two types of scene data.

Simulation experiment obstacle avoidance effect: (a) path point 1, (b) path point 2, and (c) path point 3

Physical experiments obstacle avoidance effects: (a) path point 1, (b) path point 2, and (c) path point 3.
Analyzing Table 8 shows that the minimum collision distance with AGS is significantly more stable and farther away and safer than without AGS, and the end error with AGS is smaller than without AGS, which indicates that the former has a higher trajectory accuracy and a more stable performance, and the number of collisions with obstacles with AGS is much smaller than without AGS, which indicates that the algorithmic searching ability of AGS is stronger and can ensure the efficient as well as safe operation tasks.
As can be seen from Figures 11 and 12, the robotic arm is at zero position at path point 1, and when the robotic arm moves from zero position to path point 2 near the obstacle, the obstacle is detected, and the trajectory of the robotic arm changes, running smoothly from the left front of the robotic arm to the right front, and finally arriving at the target position, and the whole process has no collision with the obstacle and the trajectory is smooth and continuous. The path effects of Figure 11(a) to (c) diagrams also keep correspondence with Figure 12(a) to (c) diagrams. It is proved that the AGS algorithm can adapt to the complex environment in the offline programming system of the robotic arm and make the robotic arm have better obstacle avoidance performance, which further verifies the high applicability of the AGS algorithm in practical applications.
Conclusions
In order to solve the problem of timeliness of robotic arm trajectory to efficiently complete complex industrial production tasks, an AGS algorithm is proposed to optimize the robotic arm trajectory planning time to solve the optimal time of robotic arm joint trajectory planning to achieve the following effects:
(1) The proposed algorithm accomplishes global optimization, which guarantees high efficiency in robotic arm operations. The AGS algorithm generates an average total planning time of 6.0103 s, whereas PSO, GOOSE, GA, and GWO generate average times of 6.9338, 6.3091, 6.9577, and 6.3496 s, respectively. As a result, the proposed algorithm exhibits average performance enhancements of 13.31%, 13.61%, 5.34%, and 4.73% over PSO, GOOSE, GA, and GWO in the optimization of the total planning time for the three-segment robotic arm.
(2) In this paper, the AGS algorithm optimizes the adaptability curve of each robotic arm joint with a faster convergence speed and higher convergence accuracy than the PSO algorithm, the GOOSE algorithm, the GA algorithm, and the GWO algorithm. The convergence accuracy of the AGS algorithm is improved by 55.1%, 16.03%, 16.53%, and 53.0%, respectively.
(3) The algorithm in this paper has good convergence speed, and the optimized angular displacement, velocity, acceleration, and jerk curves of the AGS algorithm are continuous, smooth, and mutation-free, so the robotic arm does not have velocity mutation during movement, improving safety and stability. In the robotic arm offline programming system, it can improve obstacle avoidance and adapt to complex environments.
The AGS algorithm is capable of effectively resolving the timeliness issue in robotic arm trajectory planning when the motion constraints are satisfied, as evidenced by the experimental results. It effectively mitigates the conventional optimization algorithms’ common deficiencies, including a propensity to converge to local optima, a sluggish convergence speed, and low convergence accuracy, while simultaneously reducing the operation time. The adaptive golden search algorithm was implemented in subsequent research to optimize obstacle avoidance strategies and reduce trajectory energy consumption for robotic arms, with an emphasis on enhancing the algorithm’s search capabilities and enhancing the efficacy of robotic arm joints.
Footnotes
Handling Editor: Hsiu-Ming Wu
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The paper was funded by the Hunan Provincial Natural Science Foundation of China (Grants Nos. 2024JJ8275 and 2024JJ2031).
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
