Next Article in Journal
Research on Bolt Loosening Mechanism Under Sine-on-Random Coupling Vibration Excitation
Previous Article in Journal
Research and Mechanism Design Analysis of Leg Lifting Device Based on Human Body Stretching
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Robotic Arm Trajectory Planning Based on Improved Slime Mould Algorithm

by
Changyong Li
*,
Hao Xing
and
Pengbo Qin
College of Mechanical Engineering, Xinjiang University, Urumqi 830047, China
*
Author to whom correspondence should be addressed.
Machines 2025, 13(2), 79; https://doi.org/10.3390/machines13020079
Submission received: 26 December 2024 / Revised: 14 January 2025 / Accepted: 15 January 2025 / Published: 22 January 2025
(This article belongs to the Topic Digital Manufacturing Technology)

Abstract

:
The application of robotic arms in the industrial field is continuously becoming greater and greater. The impact force generated by a robotic arm in a gripping operation leads to vibration and wear. To address this problem, this paper proposes a trajectory planning method based on the improved Slime Mould Algorithm. An interpolation curve under the joint coordinate system is constructed by using seven non-uniform B-spline functions, with time and impact force as the optimization objectives and angular velocity, angular acceleration, and angular acceleration as the constraints. The original algorithm introduces Bernoulli chaotic mapping to increase the diversity of the population, adaptively adjusts the feedback factor, improves the crossover operator to accelerate the global convergence, and combines the original algorithm with an improved artificial bee colony search strategy guided by the global optimal solution, adding a quadratic interpolation method to increase the diversity of the population and to accelerate the global convergence speed. Combined with the improved artificial swarm search strategy guided by the global optimal solution, the quadratic interpolation method is added to enhance the local utilization ability. The simulation and real-machine experimental results show that the improved algorithm shortens the movement time of the robotic arm, reduces the joint impacts, minimizes the vibration and wear, and prolongs the service life of the robotic arm.

1. Introduction

With the rapid development of science and technology, robotics has become a hot spot in today’s technological field, and its technology and applications have been gradually improved and popularized. Robotic arms, due to their high efficiency, good safety, good adaptability to harsh conditions, and other characteristics, have transcended into industry, agriculture, medical care, and many other fields, enhancing productivity for economic development and social construction [1,2,3]. In modern industrial automation, robotic arms, as important actuators, are widely used in various production lines and machining scenarios, and their efficient and accurate movement capabilities bring great convenience and benefits to the production process [4,5]. However, robotic arms must follow a specific pathway when performing a task to ensure that the workpiece can be accurately grasped, placed, or processed. Therefore, trajectory planning algorithms are one of the key technologies for robotic arm control, and are of great significance for improving the efficiency and accuracy of robotic arm motion [6,7].
The study of robotic arm trajectory planning algorithms aims to solve the problem of how to make a robotic arm efficiently plan the motion trajectory in complex environments [8,9,10]. Robotic arm trajectory planning, at present, mainly adopts B-spline curve and polynomial interpolation as the optimization objective function of the robotic arm trajectory; polynomial interpolation is mainly based on cubic polynomials, quintic polynomials, and 3-5-3 polynomials, and B-spline interpolation is mainly based on five-times B-spline and seven-times B-spline [11], Particle Swarm Optimization [12], Cuckoo Search [13], and Tuna swarm optimization [14] for trajectory optimization.
With the deepening of the research on robot trajectory planning, the variety of algorithms has become more and more diverse in order to adapt to different needs. Zhao et al. [15] examined the jitter problem generated by a robotic arm during the working process, and proposed a time-seeking optimization algorithm for improved sparrow search optimization, which effectively improves the convergence efficiency of the algorithm and the solution accuracy. On the other hand, Youmin Wang et al. [16] found that the B-spline function has the characteristics of high computational efficiency and low memory consumption when using the B-spline curve for trajectory planning of the robotic arm. Xuhua Yuan et al. [17] optimized the B-spline curve by incorporating multiple control points and optimized the curve using a swarm search strategy algorithm as a way of enhancing the accuracy of the curve fitting and reducing the time required for planning. By incorporating dynamic interference coefficients into the traditional bat algorithm for the local search process, Sun and Diem et al. [18] optimized the conversion strategy between the local and global search of the bat algorithm, and then optimized the trajectory profile of the robotic arm by optimizing the bat algorithm. Liu et al. [19] used 3-5-3 spline polynomials to generate smooth curves with continuous velocity, acceleration, and additive acceleration, and used an improved multivariate universe algorithm to optimize the performance for time and energy consumption. Additionally, they constructed an objective function using a weighting method to select the desired optimum from the set of Pareto solutions to improve the efficiency of the robotic arm motion and reduce energy consumption. The Slime Mould Algorithm (SMA) was proposed by Li et al. [20] in 2020, and was inspired by the diffusion and foraging behaviors of Sticky Mushroom and belongs to the meta-inspired algorithms. It is characterized by its fast convergence speed and strong optimization-seeking ability. Although this algorithm is widely used, there are still many areas that need to be improved. Xiong et al. [21] examined the problem of the search process of the SMA, which has high randomness and easily converges to the local optimum with decreasing accuracy. They proposed an effective global optimization method via an improved Slime Mould Algorithm (EISMA) combining multiple strategies.
This paper proposes a trajectory optimization method for robotic arms based on an improved Slime Mould Algorithm. For the position and time series of each joint of the robotic arm in the joint coordinate system, a seventh-order non-uniform B-spline function is used to construct interpolation curves in the joint coordinate system. The time and impact are considered as optimization objectives, and the angular velocity, angular acceleration, and angular acceleration of the robotic arm joints are used as constraints. The improved Slime Mould Algorithm is used to optimize the objectives. Firstly, Bernoulli chaotic mapping is added to improve the diversity of the population. Then, adaptive adjustable feedback factors, crossover operators, and improved search strategies for artificial bee colonies are added to the global search process to enhance the algorithm’s convergence accuracy and speed, as well as its ability to escape from local optima. Finally, the effectiveness and practicality of the proposed method are verified through simulation and real-machine experiments, providing new ideas and methods for the trajectory planning of robot arms in complex environments.

2. Relevant Knowledge

2.1. Optimal Objective Function Model for Trajectory Planning

When the robotic arm moves in the operation space, the end-effector of the robotic arm will move to the middle trajectory point one by one in the Cartesian coordinate system of the operation space; { O i } is the collection of trajectory points during the movement of the end-effector of the robotic arm, i = 0 , 1 , , m in the collection, O 0 in the collection indicates the initial trajectory point of the end-effector of the robotic arm, while O m indicates the trajectory point of the target point of the end-effector of the robotic arm, and then the inverse is applied. Then, by using inverse kinematics to solve for each joint of the robotic arm, it can be concluded that each trajectory point corresponds to each joint of the robotic arm under the joint coordinate system; the position coordinate set is { θ j } , the set of j = 0 , 1 , , n , and n represents the number of joints of the robotic arm. The parameters of the optimization objective of the robotic arm are determined as follows:
F 1 = i = 1 m t i
F 2 = j = 1 N 1 T 0 T θ j 2 d t
where F 1 represents the total time for the movement of the robot arm from the starting point to the target point, t i represents the time taken by the end-effector of the robot arm to move from the trajectory point O i to the trajectory point O i + 1 , i = 1 , 2 , L , , m 1 , F 2 represents the impacts suffered by the joints of the robot arm, and θ j denotes the additive acceleration of the rotation of the joint j. The optimization objective is normalized and the optimization objective function obtained is as follows:
F f = K t F 1 + K j F 2 + K p F p
In the formula, K t denotes the time coefficient, K j denotes the impact coefficient, and K p denotes the penalty coefficient, and then each coefficient is assigned a value, such as K t = 0.4 , K j = 0.6 , and K p = 0.5 , respectively, where F p denotes the penalty term, which is set to an initial value of 0, and when the joints in the robotic arm exceed a certain constraint in the process of movement, it will cause the value of F p to increase by one.
The following three constraints are to be satisfied by the robotic arm joints when the robotic arm performs the movement:
g 1 = θ ˙ j θ ˙ j max 0 g 2 = θ ¨ j θ ¨ j max 0 g 3 = θ j θ j max 0
where g 1 denotes the angular velocity constraint of the robotic arm joint, g 2 denotes the angular acceleration constraint of the robotic arm joint, and g 3 denotes the angular additive acceleration constraint of the robotic arm joint; θ ˙ j denotes the angular velocity of the rotation of the robotic arm joint j, whereas θ ˙ j m a x denotes the maximum angular velocity of the rotation of the robotic arm joint j; θ ¨ j denotes the angular acceleration of the rotation of the robotic arm joint j, whereas θ ¨ j m a x denotes the maximum angular acceleration of the rotation of the robotic arm joint j; and θ j denotes the impact of the rotation of the robotic arm joint j, whereas θ j m a x denotes the maximum additive acceleration of the rotation of the joint j.

2.2. Seven-Times B-Spline Interpolation Curve Model

The basic B-spline curve has many good characteristics; its high flexibility is the most important feature, and the local parameters inside the B-spline curve can be modified. Under the constraints of the joint angle, joint angular velocity, joint angular acceleration, and joint impact of each joint of the robotic arm, the trajectories of each rotating joint of the robotic arm can be interpolated and fitted in the joint coordinate system through the use of the seventh B-spline curve, so that the resulting joint angle, joint angular velocity, joint angular acceleration, and joint impact of the robotic arm are all continuous and smooth function curves. The following is the formula for calculating the P-sub B-spline curve:
A ( u ) = i = 0 n N i p ( u ) d i , a u b
where d i is the distance to the control vertex in the sense of a scalar; { N i , p ( u ) } is a p-times B-spline curve basis function; u is a parametric variable; and A ( u ) denotes a scalar.
The equation defined by the recursive method of the basis functions of the B-spline curve is as follows:
N i , 0 ( u ) = 1 , u i u u i + 1 0 , o t h e r N i , p ( u ) = ( u u i ) N i , p 1 ( u ) u i + 1 u i + ( u i + k + 1 u ) N i + 1 , p 1 ( u ) ( u i + k + 1 u i + 1 )
where p denotes the number of B-spline curves; i denotes the ordinal number of the B-spline curve. The interval of N i , p u is u i , u i + k + 1 . The node vector of the B-spline curve basis function N i , p u is U = u 0 , u 1 , u , , u 2 k . A point u i in the interval can have at most k + 1 non-zero k-times B-spline curves B r , k u , where r i 1 , i and all the other k-times B-spline basis functions are 0. Therefore, the B-spline curve is transformed to be represented by the following equation:
p ( u ) = r = i k i d r B r , k ( u ) , u [ u i , u i + 1 ]
The domain of definition of the B-spline interpolation curve is then transformed to the canonical domain of definition, resulting in a set of nodal vector equations as follows:
u [ u k , u n + k ] = [ 0 , 1 ] u 0 = u 1 = u k = 0 u n + k = u n + k + 1 = u n + 2 k = 1
After that, the normalization of the time nodes starts, resulting in the formula for its calculation as follows:
u i = u i 1 + | Δ t i k 1 | r = 0 n 1 | Δ t r |
This results in an equation that satisfies the constraints of the B-spline interpolation curve:
p ( u i + k ) = r = i i + k d r B r , k ( u i + k ) = P i
Here, u i + k u k , u n + k and i = 0 , 1 , , n , where p denotes the number of B-spline curves; i denotes the ordinal number of the B-spline curve.
The k 1 additional constraints can be obtained by means of tangential vector boundary constraints. Thus, they can be obtained through seven B-spline curves:
p ˙ ( u s ) = v s , p ¨ ( u s ) = a s p ˙ ( u e ) = v e , p ¨ ( u e ) = a e
where v s denotes the angular velocity of the robotic arm joint start, while v e denotes the angular velocity of the robotic arm joint stop; a s denotes the angular acceleration of the robotic arm joint start, while a e denotes the angular acceleration of the robotic arm joint stop; and p ˙ and p ¨ represent the first derivative and second derivative of the spline curve, respectively.
The vectorial derivatives of each order can be found based on the De Boor recursion formula:
p l ( u ) = r = i k + 1 i d r l B r , k l ( u )
d r l = d r , l = 0 ( k + 1 + l ) ( d r l 1 d r 1 l 1 ) ( u r + k + 1 l u r ) , l = 1 , 2 , 3 , , r ; j = i k + 1 , , i
In accordance with the above obtained formulae, n + 7 equations can be derived and the equations are represented according to the following matrix:
A j d j = p j
A j R ( n + 7 ) × ( n + 7 ) d j = [ d j , 0 d j , 1 · · · d j , ( n + 6 ) ] T p j = [ p j , 0 p j , 1 · · · p j , ( n + 6 ) · · · v j , s v j , e a j , s a j , e ]
The control points can be solved inversely from Equation (14):
d j = A j 1 p j
The time node vectors can be obtained by Equation (9); the control vertex vectors can be obtained by Equation (16); the basis functions of the B-spline curves can be obtained by Equation (6); the trajectory curves of the joints of the robotic arm in the intervals t t 0 , t n can be obtained by Equation (7); and the trajectory curve of the robotic arm in the intervals can be obtained by Equation (12), which can obtain the curves of any order derivative, and thus can be constructed to construct the constraints when the optimal trajectory curves of the robotic arm are being solved.

3. Research Content

3.1. Fundamentals of the Standard Slime Mould Algorithm

3.1.1. Proximity to Food

The process of realizing the individual convergence behavior of slime moulds can be represented through the use of mathematical modeling, and the mathematical model developed with Equation (17) is also proposed to simulate the contraction of slime moulds when they are performing convergence behavior:
X ( t + 1 ) = X b ( t + 1 ) + v b ( w X A ( t ) X B ( t ) ) , r < p v c X ( t ) , r p
In the formula, the value of v b is a randomly selected number in the interval a , a , the value of v c is a parameter that is continuously oscillated in the interval 1 , 1 and finally converges to zero infinitely, and t denotes the number of iterations of the Slime Mould Algorithm in the current search space, where X b t is the position of the individual with the optimal fitness value generated by the iteration in the current search space, and X t is the position of the new slime mould individual generated by the iteration in the current search space, while X A t and X B t , respectively, denote the position of two random slime mould individuals generated by iteration in the space; W is the weight of the random slime mould individual in the new slime mould individual.
The update formula for the control parameter P during the iteration process is as follows:
p = tan S ( i ) D F
where i = 1 , 2 , , n , S i denotes the fitness value of the ith slime mould individual, and D F denotes the fitness value of the current optimal individual; the parameters v b and a and the weight coefficients W in the iterative process position updating formulae are computed as follows, respectively:
v b = a , a
a = arctan h ( t T + 1 )
W ( S m e l l I n d e x ( i ) ) = 1 + r log ( b F S ( i ) b F w F + 1 ) , i < N 2 1 r log ( b F S ( i ) b F w F + 1 ) , i N 2
S m e l l I n d e r = s o r t ( N )
where N is the initialized population size of the slime moulds, S t denotes the individual fitness of the ith slime mould during the iteration process, r denotes a random number within the interval [0,1], T denotes the maximum number of iterations, i < N / 2 denotes the slime mould individual in the first half of S i , b F denotes the optimal fitness value obtained when iterating within the current search space, and w F denotes the worst fitness value obtained when iterating within the current search space; meanwhile, SmellInder denotes the initialization of the slime moulds.

3.1.2. Proximity to Food

In the search space, each slime mould individual performs a position update with the position update equation:
X ( t + 1 ) = r a n d U B L B = L B , r a n d < z X b ( t ) + v b ( W X A ( t ) X B ( t ) ) , r < p v c X ( t ) , r p
where U B and L B are the upper and lower bounds of the search space, the value of r a n d is a randomly selected number between the interval [0,1], and z is a custom parameter and is optimal with a value of z of 0.04 after several experiments.

3.1.3. Access to Food

Here, the value of v b is oscillating randomly between the interval a , a , and the value of v b is also gradually converging to zero as the number of iterations of the viscous bacteria optimization algorithm increases. Meanwhile, the value of v c is randomly oscillating between the interval [−1,1], and finally it constantly converges to zero, and the formula of v b is as follows:
v b = a , a
v b = 1 t T

3.2. Population Initialization Based on Bernoulli Chaotic Mapping

The Slime Mould Algorithm has the problem of over-dependence on the initial population position when iteratively updating, and the use of the original random position updating formula for population initialization produces an uneven distribution of the initial population, which affects the solution accuracy and convergence speed of the Slime Mould Algorithm. Therefore, chaos mapping is added to the population initialization of the Slime Mould Algorithm to improve the diversity and traversal of the initial population, and most of the intelligent optimization algorithms currently use Tent mapping, circle mapping, and logistic mapping for the initial population mapping, and Tent mapping and Circle mapping when taking values within [0, 2]. There is a phenomenon of small periods, and it is easy to fall into the fixed point, and logistic mapping has more stringent requirements when initializing the population, which can easily produce an uneven distribution and less diversity of the slime mould population during initialization, so the improved Slime Mould Algorithm adopts the Bernoulli chaotic map to increase the diversity of the initial population of slime mould and the uniformity of the location distribution, and the formula of the Bernoulli chaotic map is as follows:
X ( t + 1 ) = X t 1 μ , 0 < X ( t ) ( 1 μ ) X ( t ) 1 + μ μ , ( 1 μ ) < X ( t ) < 1
where u is the chaos parameter, and it is experimentally concluded that Bernoulli chaotic mapping has the best performance when the value of u is 0.4.
Let the number of iterations t of the slime mould population be 5000, and initialize the population using Logistic Chaos Mapping and Bernoulli Chaos Mapping, respectively, as shown in Figure 1 and Figure 2.

3.3. Adaptive Adjustable Feedback Factors

In the Slime Mould Algorithm, the feedback factor v c mainly reflects the feedback relationship between the food concentration and the quality of the slime mould individuals, because the value of v c will oscillate randomly in the interval [−1, 1], and finally converge to zero, and the feedback factor can not accurately reflect the feedback relationship between the quality of the individual slime moulds and the food concentration, so the slime mould algorithm is slower and less precise when converging. Therefore, this paper adds an adaptive adjustable feedback factor into the original algorithm: when the algorithm is in the early stage of the iteration phase, because the slime mould individual is in the global search space to complete the exploration, and at this time the slime mould individual food concentration will be relatively small, the value of the feedback factor should be rapidly reduced to reduce the feedback relationship between the two, so as to enhance the global exploration ability of the slime mould optimization algorithm; when the algorithm is in the iteration phase, the feedback factor cannot accurately reflect the feedback relationship between slime mould individual quality and food concentration. When the algorithm is in the late iteration stage, because the food concentration in the search space has increased, the feedback factor should be maintained in a relatively stable state, so as to improve the speed of the mucilaginous individuals in finding the highest concentration of food in the local search. The adaptive adjustable feedback factor is calculated as follows:
v c = ( e ( t max t ) ( t max 1 ) 1 ( e 1 ) ) k
In the formula, t denotes the number of iterations in the current iteration process, while t max denotes the maximum number of iterations in the iteration process; k in the formula denotes the adjustable factor, and the values of the adjustment parameter k were tested and compared, as shown in Figure 3.
As can be seen from Figure 3, the speed of change in the optimized feedback factor change curve will be accelerated with the increase in the adjustment factor k. And it can be concluded from the analysis of the experimental data that, when the value of k is too large, it will result in the convergence of the slime mould optimization algorithm in the pre-iterative period to be too fast, which leads to the algorithm easily falling into the local optimal solution, and the global search capability will be reduced; when the value of k is too small, it will lose the role of the feedback factor, and cannot play the role of balancing the search ability of the viscous bacteria optimization algorithm, and the convergence speed of the global search will be reduced. After a large number of experiments and analyses, it is concluded that when k = 4, the feedback factor plays a relatively optimal feedback role.

3.4. Intersection Operators

In order to improve the convergence speed of the Slime Mould Algorithm, an improved crossover operator is added to update the position of the slime mould individual; that is, the current slime mould individual and the optimal individual in the population are cross-operated with a certain probability P t , and the mathematical model formula of the crossover operator is as follows:
X A 1 ( t + 1 ) = L X A ( t ) + ( 1 L ) X b e s t ( t ) X A 2 ( t + 1 ) = L X b e s t ( t ) + ( 1 L ) X A ( t )
where t denotes the number of iterations in the iterative process, while X A 1 and X A 2 denote the location information of the two newborn individuals generated through the crossover operation, respectively, where X A denotes the location information of the individual in the current iterative process, and X b e s t denotes the location information of the optimal slime mould individual in the population of the current iterative process, and L is a random number in the interval (0, 1).
It can be concluded from Equation (28) that the location information of the generated offspring is mainly determined by the parents and the parameter L, where the parameter L is used to regulate the proportion of information that the newborn individuals can obtain from the two parents, so that there are relatively more genes of the excellent parents in the newborn individuals, and also so that the mucus individuals in the newborn individuals’ populations can maintain the diversity that the original populations have. Therefore, in this paper, the original stochastic parameters were optimized, mainly by incorporating the Laplace coefficients into the stochastic parameters, and the optimized parameter L is given by the following equation:
L = μ λ log e ( r ) , r 1 2 μ + λ log e ( r ) , r > 1 2
where μ and λ are Laplace coefficients, λ is a number greater than 0 that controls the scale, the value of μ is a natural number, and r is a random number within the interval [0, 1]. It can be concluded through Equation (29) that the modified coefficient L uses the newly quoted gravitational coefficient λ to regulate the relative distance between the parent and the offspring, and a smaller value of λ indicates that the relative distance between the offspring and the parent is shorter and the population is richer, and under the regulation of the Laplace coefficient μ and the Laplace coefficient λ both together, the newly generated offspring can obtain a better parent in the process of updating the location information.

3.5. Improving Search Strategies for Artificial Swarms

In this paper, an artificial bee colony search strategy is introduced into the Slime Mould Algorithm in the global search process, and some improvements are obtained; the original mathematical model of the artificial bee colony search strategy formula is as follows:
Z i , j = x i , j + ϕ i , j ( x i , j x k , j )
where Z i , j denotes the candidate solution, x i , j denotes the current slime mould individual, x k , j denotes a random slime mould individual, k and j are random parameters, k 0 , 1 , , M and j 0 , 1 , , d , and are fixed values, where d denotes the dimension and the value of k is unequal to i, and the value of ϕ i , j is a random number in the interval of [−1, 1]; it can be concluded from Equation (30) that the candidate solution is obtained by randomly generating the two individuals in the search space and performing a difference operation on the two individuals in the iteration process.
In this paper, the original artificial bee colony search strategy is optimized, mainly introducing the guidance of the global optimal position, and its optimized search strategy is formulated as follows:
Z i , j = x i , j + ϕ i , j ( x i , j x k , j ) + Ω i , j ( p g , j x i , j )
Ω in the equation is a random number within the interval [0, 1.5] and p g , j is the optimal position in the search space.

3.6. Secondary Interpolation

The principle of the algorithm is as follows: Suppose X and Y are two random positions of the population in a D-dimensional problem, where X = ( x 1 , x 2 , K , x D ) , Y = ( y 1 , y 2 , K , y D ) and Z = ( z 1 , z 2 , K , z D ) are the optimal positions iterated to the current one in the process of performing the local search, and the fitness values corresponding to X, Y, and Z are, respectively, F ( X ) , F ( y ) , and F ( Z ) . Then, the position updating formula of the viscous bacterial optimization algorithm with the addition of quadratic interpolation is shown as follows (32), which results in the resulting position updating to produce a new individual X = ( x 1 , x 2 , K , x D )
x q = ( z q 2 y q 2 ) F ( X ) + ( x q 2 z q 2 ) F ( Y ) + ( y q 2 x q 2 ) F ( Z ) 2 [ ( z q y q ) F ( X ) + ( x q z q ) F ( Y ) + ( y q x q ) F ( Z ) ]
where q is an integer within the intervals [1, D].

4. Analysis of Experimental Results

4.1. Comparison Algorithm Initialization Parameter Settings

In order to verify the performance of the improved slime mould optimization algorithm, this paper selects the Butterfly Optimization Algorithm (BOA), the Slime Mould Algorithm (SMA), the Gray Wolf Algorithm (GWO), and the Sparrow Search Algorithm (SSA) for comparison with the improved Slime Mould Algorithm (ISMA). Six different test functions were selected to test the above five optimization algorithms to analyze the performance and effectiveness of the improved slime mould optimization algorithm. F 1 and F 2 are single-modal benchmark functions, F 3 and F 4 are multimodal benchmark functions, and F 5 and F 6 are composite benchmark functions. In order to ensure the fairness of the experiment, all five algorithms used the same experimental conditions, and all algorithms were run 30 times under each test function. The specific information of the benchmark test functions is shown in Table 1. The initialization parameters were also set uniformly, with the maximum number of iterations all set to t max = 5000 , the size of the population set to N = 50 , and the dimension D = 30 .

4.2. Comparative Simulation Analysis

The improved slime mould optimization algorithm was tested with benchmark functions and compared to the other four algorithms. Table 2 shows the comparison results of the mean values, and Table 3 shows the comparison results of the standard deviations. In order to visualize the optimization speed and performance of the ISMA, the convergence curves of some basic test functions are given in this paper, as shown in Figure 4, Figure 5, Figure 6. Through the convergence curve, it can be more intuitively concluded that the convergence accuracy of the ISMA is higher than that of the SMA, BOA, GWO, and SSA, and the convergence speed is also faster than that of the other four algorithms. As a test function to test the development performance of the algorithm, the convergence curves of the F 1 and F 2 test functions show that the ISMA has indeed improved the convergence accuracy; the convergence curves of the F 3 and F 4 test functions show that the convergence speed of the ISMA is faster; and the convergence curves of F 5 and F 6 are the convergence curves of the composite benchmark test functions, which illustrate the fact that the improved viscous optimization algorithm not only improves the optimality search of the original algorithm, but also increases the convergence accuracy of the original algorithm. The improved algorithm not only improves the optimization accuracy of the original algorithm, but also improves the convergence speed of the algorithm.
In MATLAB R2023b, using the Robot toolbox, the improved Slime Mould Algorithm is used to plan the trajectory of the robotic arm, and the coordinates of the starting point of the robotic arm are set to be 450, −100, 821, and the coordinates of the target point are set to be −508, −601, 244. A part of the node positions are selected on the path from the start point to the target point to find out the corresponding angles of each joint of the robotic arm, as shown in Table 4. The motion diagram of some nodes during the movement of the robot arm from the starting point to the target point in three-dimensional space, as shown in Figure 7; The time-varying curves of the angle, angular velocity, angular acceleration, and angular acceleration of each joint are shown in Figure 8.
As shown in Figure 8. This paper adopts a seven-times B-spline curve function to interpolate the motion curves of each joint of the robotic arm, so as to obtain the higher-order smooth continuity, velocity, and acceleration with no obvious sudden change, and the motion trajectory of each joint of the robotic arm is relatively smooth, which demonstrates the improvement of the viscous bacterial optimization algorithm for the optimization of the objective function.

4.3. Real-Machine Experimental Verification

In order to verify the validity of the experiment, the trajectory optimization experiment is verified by using an ER3A-C60 model industrial robotic arm from China and Anhui Erfurt Intelligent Equipment Co., Ltd. (Wuhu City, China), as shown in Figure 9 below in the real environment. Six obstacles are set up in the working area of the robotic arm, which are cylinders and rectangles, and the starting point is set to be Position 1, and the termination point to be Position 6, and the robotic arm moves from Position 1 to Position 6 in order to achieve a reasonable trajectory optimization. After the completion of trajectory optimization in Matlab, the host computer sends the coordinate information of the key points in the optimization process to the robotic arm controller, and it can be concluded from Figure 9 that the algorithm of this paper is relatively smooth for the movement of each link in the process of the real-machine experiments and there is no phenomenon of sudden change in speed and acceleration, which proves the effectiveness of the algorithm of this paper.

5. Conclusions

In this paper, a robotic arm trajectory optimization method based on the improved viscous mode optimization algorithm is proposed.
1.
Firstly, the population is initialized by Bernoulli chaotic mapping, and then an adaptive adjustable feedback factor and an improved artificial bee colony search strategy are added to the global search process to improve the convergence accuracy and convergence speed of the algorithm, as well as the ability of jumping out of the locally optimal solution.
2.
The improved Slime Mould Algorithm is integrated into the trajectory curve of each joint of the robotic arm to optimize its trajectory. And test function experiments are carried out to compare it with the four algorithms of the sparrow algorithm, butterfly algorithm, standard viscous mode algorithm, and Gray Wolf Algorithm. By comparing the results produced by the test function, it can be concluded that the improved viscous mode optimization algorithm not only has a high convergence speed, but also has a relatively high convergence accuracy.
3.
Using MATLAB R2023b software to carry out simulation experiments, the improved Slime Mould Algorithm is integrated into the movement of the robotic arm, and it is concluded through simulation experiments that the improved Slime Mould Algorithm reduces the maximum impact force of the joints of the robotic arm, and the trajectory curves of the joints of the robotic arm also become smoother.
4.
In order to further verify the effectiveness of the algorithm, the algorithm is experimentally verified in a real environment, based on an industrial robotic arm, and the experimental results show that the algorithm of this paper has a relatively smooth motion of each link in the process of the real experiment, and there is no phenomenon of sudden changes in speed and acceleration. The effectiveness and feasibility of the algorithm are proved.

Author Contributions

C.L. completed the correction and proofreading of the article. H.X. and P.Q. were responsible for programming and article writing. All authors have read and agreed to the published version of the manuscript.

Funding

This study was funded by the Xinjiang Uygur Autonomous Region Central Guided Local Science and Technology Development Funds Project, Project No. ZYYD2025QY17.

Data Availability Statement

The data presented in this study are available on request from the corresponding author, within reasonable limits.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
BOAButterfly Optimization Algorithm
SMASlime Mould Algorithm
GWOGray Wolf Algorithm
SSASparrow Search Algorithm
ISMAImproved Slime Mould Algorithm

References

  1. Sathish, K.A.; Naveen, S.; Vijayakumar, A. An intelligent fuzzy-particle swarm optimization supervisory-based control of robot manipulator for industrial welding applications. Sci. Rep. 2023, 13, 8253. [Google Scholar] [CrossRef] [PubMed]
  2. Yoshida, T.; Onishi, Y.; Kawahara, T. Automated harvesting by a dual-arm fruit harvesting robot. ROBOMECH J. 2022, 9, 19. [Google Scholar] [CrossRef]
  3. Chen, W.; Al-Taezi, K.A.; Chu, C.H. Accuracy of dental implant placement with a robotic system in partially edentulous patients: A prospective, single-arm clinical trial. Clin. Oral Implant. Res. 2023, 34, 707–718. [Google Scholar] [CrossRef] [PubMed]
  4. Gowda, D.; Naveen, S.; Ranjan, A. Industrial Automated Multipurpose Robot Using WIFI. In Proceedings of the 2023 4th International Conference for Emerging Technology (INCET), Belgaum, India, 26–28 May 2023; IEEE: Piscataway, NJ, USA, 2023; Volume 1, p. 8. [Google Scholar]
  5. Hernandez, J.; Sunny, M.S.H.; Sanjuan, J.; Rulik, I.; Zarif, M.I.I.; Ahamed, S.I.; Ahmed, H.U.; Rahman, M.H. Current designs of robotic arm grippers: A comprehensive systematic review. Robotics 2023, 12, 5. [Google Scholar] [CrossRef]
  6. Carbajal-Espinosa, O.; Campos-Macías, L.; Díaz-Rodriguez, M. FIKA: A Conformal Geometric Algebra Approach to a Fast Inverse Kinematics Algorithm for an Anthropomorphic Robotic Arm. Machines 2024, 12, 78. [Google Scholar] [CrossRef]
  7. Yu, J.; Wu, J.; Xu, J.; Wang, X.; Cui, X.; Wang, B.; Zhao, Z. A Novel Planning and Tracking Approach for Mobile Robotic Arm in Obstacle Environment. Machines 2024, 12, 19. [Google Scholar] [CrossRef]
  8. Zhang, S.; Xia, Q.; Chen, M. Multi-objective optimal trajectory planning for robotic arms using deep reinforcement learning. Sensors 2023, 13, 5974. [Google Scholar] [CrossRef] [PubMed]
  9. Feng, H.; Jiang, J.; Ding, N. Multi-objective time-energy-impact optimization for robotic excavator trajectory planning. Autom. Constr. 2023, 156, 105094. [Google Scholar] [CrossRef]
  10. Li, X.; Gu, Y.; Wu, L. Time and energy optimal trajectory planning of wheeled mobile dual-arm robot based on tip-over stability constraint. Appl. Sci. 2023, 13, 3780. [Google Scholar] [CrossRef]
  11. Wen, W.B.; Jian, K.L.; Luo, S.M. An explicit time integration method for structural dynamics using septuple B-spline functions. Int. J. Numer. Methods Eng. 2014, 97, 629–657. [Google Scholar] [CrossRef]
  12. Ekrem, Ö.; Aksoy, B. Trajectory planning for a 6-axis robotic arm with particle swarm optimization algorithm. Eng. Appl. Artif. Intell. 2023, 122, 106099. [Google Scholar] [CrossRef]
  13. Liu, R.; Pan, F. A Multi-Objective Trajectory Planning Method of the Dual-Arm Robot for Cabin Docking Based on the Modified Cuckoo Search Algorithm. Machines 2024, 12, 64. [Google Scholar] [CrossRef]
  14. Wu, J.; Zhang, Z.; Yang, Y.; Zhang, P.; Fan, D. Time optimal trajectory planning of robotic arm based on improved tuna swarm algorithm. Comput. Integr. Manuf. Syst. 2024, 30, 4292–4301. [Google Scholar]
  15. Zhao, W. Robotic arm trajectory planning with improved sparrow search algorithm. Comb. Mach. Tools Autom. Mach. Technol. 2024, 49, 53. [Google Scholar]
  16. Wang, Y.M. Robotic arm joint space B-spline curve trajectory planning. J. Anhui Inst. Mech. Electr. Eng. 2000, 21, 26. [Google Scholar]
  17. Yuan, X.H. Spline curve fitting and intelligent planning for time-optimal trajectories of robotic arms. Mech. Des. Manuf. 2022, 162, 167. [Google Scholar]
  18. Sun, Y.; Guo, W. Robotic arm trajectory optimization based on adaptive transform bat algorithm. Mech. Drive 2022, 46, 35–41. [Google Scholar]
  19. Liu, J.; Wang, H.; Li, X.; Chen, K.; Li, C. Robotic arm trajectory optimization based on multiverse algorithm. MBE 2022, 46, 35–41. [Google Scholar] [CrossRef] [PubMed]
  20. Li, S.; Chen, H.; Wang, M. Slime mould algorithm: A new method for stochastic optimization. Future Gener. Comput. Syst. 2020, 111, 300–323. [Google Scholar] [CrossRef]
  21. Xiong, W.; Zhu, D.; Li, R.; Yao, Y. An effective method for global optimization—Improved slime mould algorithm combine multiple strategies. Egypt. Inform. J. 2024, 25, 100442. [Google Scholar] [CrossRef]
Figure 1. (a) Shows the distribution of Logistic chaotic mapping; (b) shows the frequency distribution of Logistic chaotic mapping.
Figure 1. (a) Shows the distribution of Logistic chaotic mapping; (b) shows the frequency distribution of Logistic chaotic mapping.
Machines 13 00079 g001
Figure 2. (a) Shows the distribution of Bernoulli chaotic mapping; (b) shows the frequency distribution of Bernoulli chaotic mapping.
Figure 2. (a) Shows the distribution of Bernoulli chaotic mapping; (b) shows the frequency distribution of Bernoulli chaotic mapping.
Machines 13 00079 g002
Figure 3. Plot of feedback factor.
Figure 3. Plot of feedback factor.
Machines 13 00079 g003
Figure 4. (a) Shows F1 convergence curve; (b) shows F2 convergence curve.
Figure 4. (a) Shows F1 convergence curve; (b) shows F2 convergence curve.
Machines 13 00079 g004
Figure 5. (a) Shows F3 convergence curve; (b) shows F4 convergence curve.
Figure 5. (a) Shows F3 convergence curve; (b) shows F4 convergence curve.
Machines 13 00079 g005
Figure 6. (a) Shows F5 convergence curve; (b) shows F6 convergence curve.
Figure 6. (a) Shows F5 convergence curve; (b) shows F6 convergence curve.
Machines 13 00079 g006
Figure 7. Shows the mechanical arm movement diagram: (a) threshold, (b) Intermediate point 1, (c) Intermediate point 2, (d) Intermediate point 3, (e) Intermediate point 4, and (f) target point.
Figure 7. Shows the mechanical arm movement diagram: (a) threshold, (b) Intermediate point 1, (c) Intermediate point 2, (d) Intermediate point 3, (e) Intermediate point 4, and (f) target point.
Machines 13 00079 g007
Figure 8. Shows the variation curve of each joint of the robotic arm: angle curves for each joint, angular velocity curves for each joint, angular acceleration curves for each joint, and angular plus acceleration curves for each joint.
Figure 8. Shows the variation curve of each joint of the robotic arm: angle curves for each joint, angular velocity curves for each joint, angular acceleration curves for each joint, and angular plus acceleration curves for each joint.
Machines 13 00079 g008
Figure 9. Shows the mechanical arm movement diagram: (a) threshold, (b) Intermediate point 1, (c) Intermediate point 2, (d) Intermediate point 3, (e) Intermediate point 4, and (f) target point.
Figure 9. Shows the mechanical arm movement diagram: (a) threshold, (b) Intermediate point 1, (c) Intermediate point 2, (d) Intermediate point 3, (e) Intermediate point 4, and (f) target point.
Machines 13 00079 g009
Table 1. Benchmark functions.
Table 1. Benchmark functions.
FunctionDimRange F min
F 1 ( X ) = i = 1 n 1 100 ( x i + 1 x i 2 ) 2 + ( x i 1 ) 2 30[−30, 30]0
F 2 ( X ) = i = 1 n ( x i + 0.5 ) 2 30[−100, 100]0
F 3 ( X ) = 20 exp ( 0.2 1 n i = 1 n x i 2 ) exp ( 1 n i = 1 n cos ( 2 π x i ) ) + 20 + e 30[−32, 32]0
F 4 ( X ) = i = 1 n x i sin ( x i ) 30[−500, 500]−12,569.5
F 5 ( X ) = 0.1 sin 2 ( 3 π x 1 ) + i = 1 n ( x i 1 ) 2 1 + sin 2 ( 3 π x i + 1 ) + ( x n 1 ) 2 [ 1 + sin 2 ( 2 π x n ) ] + i = 1 n u ( x i , 5 , 100 , 4 ) 30[−50, 50]0
F 6 ( X ) = 1 4000 i = 1 n x i 2 i = 1 n cos ( x i i ) + 1 30[−600, 600]0
Table 2. Comparison of the average test results of five algorithms.
Table 2. Comparison of the average test results of five algorithms.
Function F 1 F 2 F 3 F 4 F 5 F 6
BOA28.91275.44960.0138−3382.51322.83400.0033
GWO27.91151.26081.505 × 10 5 −6046.70611.09840.0110
SSA28.52362.88981.007 × 10 15 −9807.08342.26390
SMA29.54654.51331.007 × 10 15 −3977.02572.41015.07 × 10 15
ISMA0.05840.00088.882 × 10 16 −7496.79030.00750
Table 3. Comparison of standard deviations of test results for five algorithms.
Table 3. Comparison of standard deviations of test results for five algorithms.
Function F 1 F 2 F 3 F 4 F 5 F 6
BOA0.02300.59470.0027211.02520.24310.0016
GWO0.89000.44736.225 × 10 6 575.49460.264680.0199
SSA0.51050.75896.4863 × 10 16 1447.66170.44810
SMA2.68470.38996.4863 × 10 16 340.86530.30082.7749 × 10 14
ISMA0.08850.000601832.02430.01160
Table 4. Position coordinates and joint angles of path nodes.
Table 4. Position coordinates and joint angles of path nodes.
Node(x, y, z)/mm θ 1 /rad θ 2 /rad θ 3 /rad θ 4 /rad θ 5 /rad θ 6 /rad
1(450, −100, 821)1.9698−95.3302−52.5182−109.9252−85.60021.9698
2(458, −280, 762)−12.6766−100.2120−53.7348−104.2469−65.9316−1.5196
3(396, −413, 724)−40.5661−109.2507−56.2990−92.4981−38.4071−8.6572
4(274, −580, 640)−29.4233−103.5337−55.7650−96.7164−78.2400−5.8801
5(89, −700, 517)−51.5939−112.3181−57.7720−88.0456−52.5424−10.9649
6(−129, −726, 422)−73.2598−118.2951−59.9670−78.477513.9345−17.0033
7(−354, −687, 330)−101.4153−128.6296−63.0296−66.934214.9857−22.9221
8(−508, −601, 243)−117.7092−133.2772−64.8753−59.329241.8628−27.2202
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, C.; Xing, H.; Qin, P. Robotic Arm Trajectory Planning Based on Improved Slime Mould Algorithm. Machines 2025, 13, 79. https://doi.org/10.3390/machines13020079

AMA Style

Li C, Xing H, Qin P. Robotic Arm Trajectory Planning Based on Improved Slime Mould Algorithm. Machines. 2025; 13(2):79. https://doi.org/10.3390/machines13020079

Chicago/Turabian Style

Li, Changyong, Hao Xing, and Pengbo Qin. 2025. "Robotic Arm Trajectory Planning Based on Improved Slime Mould Algorithm" Machines 13, no. 2: 79. https://doi.org/10.3390/machines13020079

APA Style

Li, C., Xing, H., & Qin, P. (2025). Robotic Arm Trajectory Planning Based on Improved Slime Mould Algorithm. Machines, 13(2), 79. https://doi.org/10.3390/machines13020079

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop