Next Article in Journal
Multiple-Input-Multiple-Output Filtered Multitone Time Reversal Acoustic Communications Using Direct Adaptation-Based Turbo Equalization
Next Article in Special Issue
Analysis of Differences in Single-Joint Movement of Dominant and Non-Dominant Hands for Human-like Robotic Control
Previous Article in Journal
CBIR-SAR System Using Stochastic Distance
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Particle Swarm Algorithm Path-Planning Method for Mobile Robots Based on Artificial Potential Fields

1
School of Automation and Electrical Engineering, Chengdu Technological University, Chengdu 611730, China
2
School of Automation, Chengdu University of Information Technology, Chengdu 610225, China
3
Chengdu Shengke Information Technology Co., Ltd., Chengdu 610017, China
4
Sichuan Research Institute of Chemical Quality and Safety Inspection, Chengdu 610031, China
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(13), 6082; https://doi.org/10.3390/s23136082
Submission received: 24 April 2023 / Revised: 25 June 2023 / Accepted: 27 June 2023 / Published: 1 July 2023

Abstract

:
Path planning is an important part of the navigation control system of mobile robots since it plays a decisive role in whether mobile robots can realize autonomy and intelligence. The particle swarm algorithm can effectively solve the path-planning problem of a mobile robot, but the traditional particle swarm algorithm has the problems of a too-long path, poor global search ability, and local development ability. Moreover, the existence of obstacles makes the actual environment more complex, thus putting forward more stringent requirements on the environmental adaptation ability, path-planning accuracy, and path-planning efficiency of mobile robots. In this study, an artificial potential field-based particle swarm algorithm (apfrPSO) was proposed. First, the method generates robot planning paths by adjusting the inertia weight parameter and ranking the position vector of particles (rPSO), and second, the artificial potential field method is introduced. Through comparative numerical experiments with other state-of-the-art algorithms, the results show that the algorithm proposed was very competitive.

1. Introduction

With the rapid development of science and technology, mobile robotics has been widely applied in many fields due to its high efficiency, independence from environmental restrictions, and strong anti-interference ability [1]. In practical environments, when a mobile robot receives a given task, it must be able to move autonomously from the target starting point to the target endpoint and avoid obstacles to find the shortest path. This makes the path planning of mobile robots one of the key research problems in robot applications [2].
The feasibility of mobile robot path planning is determined by three factors: the accuracy of the environment, the accuracy of the robot’s positioning, and the certainty of the number and locations of the obstacles [3]. When a mobile robot decides its movement, it needs to plan the optimal path according to its task, saving as much time, energy, distance, etc., as possible. The most necessary capability of a mobile robot in path planning is the ability to enable the robot to plan a path in its surrounding environment that prevents collision with other objects and accomplishes the task of moving from the target starting point to the target ending point. If a reasonable path can be planned, it can greatly improve its efficiency and reduce energy consumption [4].
Robot path planning can be divided into single-robot and multi-robot path planning according to the number of robots. The path-planning problem for mobile robots can be formulated as the planning of collision-free paths between specified points without satisfying the optimization criterion, given a description of the robot’s target starting point, target ending point, and surrounding environment [5]. Path planning is closely linked to whether a mobile robot can achieve autonomy, and the planned path also determines whether the mobile robot is energy efficient and reduces losses. Multi-robot path planning involves the path planning of several robots and the collaboration between them, which is more complex [6,7,8,9]. However, single-robot path planning is the basis of multi-robot path planning. At the same time, the information about the robot’s working environment is often complex and changeable. According to the degree of mastery of environmental information, path planning can also be divided into global path planning with all environmental information known and local path planning with environmental information completely unknown or partially known [10]. From the planning results, both types of algorithms need to find the path from the starting point to the target. However, global path planning involves finding a feasible path on an established global map, with the purpose of evaluating the optimal criteria, while local path planning refers to the robot using carried sensors to construct a local map and plan a local feasible path. The primary goal is to avoid dynamic obstacles and has higher real-time flexibility.
The global path planning of a single robot is a more basic problem and is also the most universal. Since 1980, scholars have been working on global path planning. In the beginning, it was only necessary to study a path that would lead to the target endpoint. However, with further research, the requirement goal has changed from just needing to find a path that leads to the target endpoint to a comprehensive design that combines the consideration of optimization criteria, such as how to make the path shorter or cover a larger area, among other problems [6].
To solve the path-planning problem, scholars proposed various mobile robot path-planning algorithms. Traditional path-planning algorithms mainly include the artificial potential field method (APF) [11], element decomposition method [12], and graph search algorithm [13]. However, when the obstacles are complex, there are many drawbacks, such as the algorithm requires a large number of calculations; can easily fall into a local optimum; and produces a path that is not smooth and can easily have sharp points, which does not conform to the actual situation and increases the workload of mobile robots [14,15].
Among the metaheuristic algorithms, PSO has a relatively simple structure and is easy to implement, and thus, it is widely used [16]. The improvement of PSO generally focuses on the adjustment of the population structure and the optimization of the velocity and position update formulas [17]. Burman R. et al. [18] proposed a democratic-inspired particle swarm optimizer that uses the concept of companion groups to improve the convergence speed. Zhao et al. [19] introduced a nonlinear recursive function to adjust the inertia weight to avoid falling into local optimal solutions and increase the diversity of the particles. Yu et al. [20] proposed a new type of hybrid particle swarm optimization (PSO) algorithm, namely, SDPSO. Pozna et al. [21] proposed a hybrid metaheuristic optimization algorithm that combines particle filter (PF) and particle swarm optimization (PSO) algorithms. Mohammed Hussein et al. [22] proposed an improved particle swarm optimization (PSO) algorithm named MPSO. Liu et al. [23] proposed a hybrid path-planning algorithm based on optimized reinforcement learning (RL) and improved particle swarm optimization (PSO). However, the improved algorithms still have some limitations, such as low convergence accuracy and early maturity.
Due to the increasingly complex working environment of mobile robots, many existing path-planning methods have certain problems, such as long paths and low efficiency [24,25]. Previous related research work mostly used traditional path optimization methods. Although there was also related path-planning research based on the particle swarm algorithm, the classical particle swarm algorithm can easily fall into a local optimal solution and the path-planning effect is not good. In order to fully plan the collision-free, shortest, and optimal path of mobile robots, this study first adjusted the inertia weight parameter of particle swarm algorithm and sorted the position vectors of particles to improve the global optimization ability of the algorithm. Second, artificial potential field method is introduced to combine traditional methods with heuristic algorithms and meet actual obstacle avoidance needs to generate more reasonable mobile robot planning paths. The main contributions of this study were as follows:
  • First, a particle swarm algorithm based on sorting optimization was proposed. By dynamically adjusting the inertia weight and sorting the position vectors of particles, the global and local optimization ability of the algorithm was balanced and the search performance of the algorithm was enhanced.
  • Second, the artificial potential field method was introduced to combine this method with the improved particle swarm algorithm, improve the convergence speed and accuracy of the algorithm, and make the optimal path found more in line with actual needs.
  • Third, this study conducted a comparative analysis of various path algorithms, demonstrated the effectiveness of the proposed algorithm, and experimentally analyzed the influence of the number of algorithm populations on the optimization effect, obtaining a suitable number of population settings.
The other parts of this paper are written as follows. The second part describes the construction of the path-planning model for mobile robots. The third part introduces the particle swarm algorithm, improved sequential particle swarm algorithm, and artificial potential-field-based particle swarm algorithm for path planning. The fourth part discusses the conducted experiments and analysis. Finally, the conclusion of this paper is presented.

2. Environmental Modeling and Problem Formulation

Mobile robot path planning is divided into two stages. The first stage involves building an environment model of the mobile robot motion space based on environmental information. The second stage involves using a path search algorithm based on the built environment model to find a path that can avoid obstacles and ensure that the robot moves from the target starting point to the target endpoint.
The common methods of environment modeling are the raster method, visual map method, and free space method. In comparison, the visual map method can obtain the shortest path. However, when the target starting point and target endpoint change, it is necessary to re-establish the viewable view. The algorithm is inflexible. At the same time, if there are more obstacles, the required amount of computation will be super large. The search efficiency is low and the searched path is not guaranteed to be optimal [26]. Therefore, the amount of research on path planning using this method is lower [27]. The free space method is a popular approach for modeling simple environments due to its simplicity and ease of implementation. It also has the advantage of not requiring the reconstruction of free space when the target starting point and target endpoint change. However, in complex environments, the modeling of the free space method can be challenging. As a result, academic research conducted on using the free space method for environmental modeling has been lower compared with the previous two methods. The raster method was selected for this study due to its low computational effort and its ability to provide a more intuitive representation of the barrier environment. This method overcomes the disadvantages of the previous two methods.
The raster method is a technique used to describe the mobile robot motion environment using a raster map. Each raster in the raster map can be assigned either free or obstacle attributes. The raster method typically partitions the mobile robot’s surroundings into grid cells with binary information. Obstacle areas are represented by 1 and free areas are represented by 0 [28]. The raster map model has the advantages of being intuitive, simple, easy to analyze, and easier to implement, and many researchers have therefore used the raster method more often to describe the environmental space in which the robot moves.
There are two manifestations of the raster method: the Cartesian coordinate system and the ordinal method. These two forms are essentially the same [29]. In the Cartesian coordinate system, each cell corresponds to x , y one by one [30]. In the ordinate marking method, a planar right-angle coordinate system is established, and the unit length on the coordinate axes is the size of the grid. The grid position is represented in right-angle coordinates [31,32]. The serial number marking method starts from the lower left raster of the spatial model, and each raster corresponds to a serial number, which is added in the order from top to bottom, and then from left to right.
The relationship between the raster number and the coordinates is given as follows (the environment space constructed in this example):
m = x 1 × N + y
y = mod m , N
x = int m , N + 1
where m is the ordinal number of the current raster, x and y are the locations of the robot, and N is the size in one dimension of the environment space N × N .
Since any map can form a reasonable raster map as long as it is divided finely enough, this study explored the optimal path based on the raster map. The optimal path expression between the initial point p1 and the endpoint pn is shown below:
min f ( P ) = i = 2 P d ( p i , p i 1 ) P W , P O =
where P is the set of path points to be found, W is the set of all raster points, and O is the set of points that form the obstacle. d ( p i , p i 1 ) is the Euclidean distance between two points. There is no intersection between the set of path points to be found and the set of obstacle points, i.e., it is guaranteed that the path cannot pass through the obstacle. This study found the optimal set of path points Pbest using the improved particle swarm algorithm.

3. Methodology

3.1. Particle Swarm Optimization

Particle swarm optimization (PSO) is a swarm intelligence algorithm that was proposed by Kennedy and Eberhart and was inspired by the foraging behavior of bird flocks [33]. A flock of birds is one of the biological populations in nature, and any behavioral activity is usually the result of a combination of individual behavior and group behavior.
The PSO algorithm starts by having a large number of candidate solutions. These particles are continuously moved in the search space to find the optimal solution (called the global best solution) [34]. In this process, each particle determines its movement in the search space. It does so by combining its current position with the historical best position. Additionally, it incorporates some random perturbations. When improved positions are found, these positions guide the movement of the swarm. The process is repeated many times in an attempt to find a satisfactory solution, which, although not guaranteed, is expected to find a global or near-global optimal answer at the end of all algorithm cycles.
The algorithm can be summarized in four main steps, which are repeated until the stopping condition is satisfied as follows:
(1)
Assign initial random positions and velocities to all particles in the search space.
(2)
Evaluate the fitness of each particle.
(3)
Update the individual and global best positions.
(4)
Update the velocity and position of each particle.
The PSO algorithm has been successfully applied in many fields, such as path-planning and function-optimization problems. It was shown that the PSO algorithm provides better results in a faster and easier way compared with other methods [35].
The most important part of this process is the particle velocity update equation, which is given below:
v i d k + 1 = ω v i d k + c 1 ζ p g d k x i d k + c 2 η p i d k x i d k
The equation for updating the position of the particle is as follows:
x i d k + 1 = x i d k + γ v i d k + 1
where i = 1 , 2 , m ; d = 1 , 2 , Q , v i d k is the dth dimensional speed of the ith particle, x i d k is the dth dimensional kth generation position of the ith particle, p i d k is the dth dimensional kth generation individual optimal position of the ith particle, p g d k is the dth dimensional kth generation global optimal position of the swarm, c 1 is the inertia weight of a particle tracking its own historical individual optimal value, and c 2 is the inertia weight of a particle tracking the optimal value of the whole population. Appropriate adjustment of the learning factors c 1 and c 2 can expand the search space of the particle swarm and avoid falling into local optimal solutions. ζ and η are random constants that are uniformly distributed in the interval [0, 1] and are used to maintain the diversity of the population. γ is a constant factor added in front of the velocity for the position update, which is called the constraint factor and generally takes the value of 1 [36].
From Equation (5), we can see that the speed update of particles in the PSO algorithm includes three parts: (i) The speed part of particles at the last iteration, where this part shows that the speed of the particle update is influenced by the current speed, which can have the ability to balance the global search ability and local exploitation ability. (ii) The individual particle learning part, where the individual optimal solution represents the result of self-learning of individual particles; this part can prompt the individual. The individual optimal solution represents the result of self-learning of individual particles, and this part can motivate individual particles to perform a better global search and prevent individual particles from falling into local optimal solutions. (iii) The part where the individual particle learns about the population, which reflects the information sharing between individual particles in the whole population. Under the joint action of these three parts, the particles will learn from the individual and population behaviors, and constantly update their speed and position so that the particles tend toward a search direction. Thus, it is possible for the particle population to search for the global optimal position solution.
Assuming a population of n massless and volume-free particles moving in a Q-dimensional space, the particles are constantly socially learning and self-learning to continuously adjust their search direction and search speed, and then plan an optimal path.
Let each particle be x i = x i 1 , x i 2 , , x i Q , where i = 1 , 2 , , n . Each particle x i has an adaptation value that is determined by the objective function, the direction and distance the particle moves will be determined by a velocity by continuously iterating, and then the particle searches the solution space to find the current optimal particle based on the interaction between individuals and shared information. Then, each point x i in the search space can be imagined as a potential solution to the path-planning problem.

3.2. The Proposed Algorithm

3.2.1. Particle Swarm Algorithm Based on Ranking

The PSO proposed at the beginning is no longer suitable for the current increasingly complex and high-dimensional obstacle environment. In order to give PSO better global planning and local exploitation capabilities, a sorting optimization strategy was proposed. The parameter of inertia weight is very important in PSO. When the value of the inertia weight is large, PSO has better global search ability and faster convergence speed, but the solution is often not optimal; when the value of the inertia weight is small, PSO has better local search ability and can obtain better solutions, but the convergence speed becomes very slow or even stagnant [37]. In order for PSO to produce better solutions, faster convergence speed, stronger global search ability, and stronger local exploitation ability, a linear decreasing adjustment is used for PSO, which can give the algorithm stronger global search ability in the early search and stronger local exploitation ability in the late search, which can expand the search space and make the particle local search for better results.
The formula for adjusting the inertia weights is as follows:
ω i n e r = I n e r t i a M a x i × I n e r t i a M a x I n e r t i a M i n ÷ m a x g e n
where i is the current number of iterations, i will increase from 1 to the maximum number of iterations one by one, InertiaMax is the maximum inertia weight, InertiaMin is the minimum inertia weight, and maxgen is the maximum number of iterations. Based on experiments and experience, in order to further increase the global search capability of the algorithm, InertiaMax was set to 0.93. In order not to deviate too far from 0.9 (a generally taken value), InertiaMin was set to 0.8. It can be seen that ω i n e r gradually declined from 0.93 to 0.8 as the number of iterations increased, thus achieving a dynamic balance between global and local searching.
If the value of the inertia weight is zero, the speed of particles in the next iteration only depends on the optimal position solution searched by the current individual particle. If the value of the inertia weight is not zero, the particles will keep exploring new regions; therefore, by adjusting the inertia weight so that it decreases linearly, this can balance the global and local search ability of the algorithm, and thus, the algorithm will obtain a better solution.
Based on (5), the velocity update equation with the introduction of inertia weights becomes (8):
v i d k + 1 = ω i n e r v i d k + c 1 ζ p g d k x i d k + c 2 η p i d k x i d k
In addition to the introduction of dynamically changing inertia weights ω i n e r , the position vectors in the PSO calculation process are ranked, which, in turn, leads to a PSO based on ranking (rPSO). The specific steps are as follows.
Step 1: Read the map data, where there are N × N nodes and the particles-per-node range is [0, 1].
Step 2: Set the parameters of the particle swarm algorithm. Based on literature research and experience, the population size was 50, the maximum number of iterations was 150, c 1 was 1.8, and c 2 was 1.7.
Step 3: Initialize the particle population.
Step 4: Update the particle velocity using Equation (8).
Step 5: Update the particle positions using Equation (6).
Step 6: Decode the particles to obtain the particle position vector.
Step 7: Sort the position vector of the particles. The PSO is used to optimize the random sequence of real numbers p, which, in turn, yields the effective encoding described above.
Step 8: Generate the path and calculate the total length of the path. After sorting the position vector p, sort J is obtained. The path between the starting point and the endpoint is obtained by sort J, and the path length is calculated.
Step 9: Calculate the fitness. If the iteration is completed, the result is output, and if the iteration is not completed, the process is returned to step 4.
The flow of the rPSO is shown in Figure 1.

3.2.2. Particle Swarm Path-Planning Algorithm Based on Artificial Potential Fields

The artificial potential field method (APF) is a virtual potential field function method based on the electric field principle in physics, where “opposites attract, same charge repels”, which virtualizes the path planning of mobile robots in the environmental space as the motion in the force field [11]. The basic idea is to create a virtual force field in the working environment of the mobile robot, where the target point generates an attractive potential field and the obstacle generates a repulsive potential field. The mobile robot moves toward the target point under the combined effect of the attractive and repulsive fields. The artificial potential field U(X) and robot force F(X) equations are (9) and (10), respectively:
U ( X ) = U a t t ( X ) + U r e q ( X )
where Uatt(X) is the attractive potential field generated by the target point, Urep(X) is the repulsive potential field generated by the obstacle, and X is the current position of the mobile robot;
F ( X ) = F a t t ( X ) + F r e q ( X )
where Fatt(X) is the attractive force of the target point and Frep(X) is the repulsive force of the obstacle on the mobile robot.
The potential field, in turn, generates a force and the robot moves in the direction of the combined force. APF is widely used in path planning because of its simple mathematical principle, low computational effort, high real-time performance, low hardware requirements, fast response time, and the ability to form closed-loop control for path generation and motion control with the working environment. In this study, the potential field of robot movement on the map was considered to be established first, and then rPSO was used for path planning. Therefore, a particle swarm path-planning algorithm for mobile robots based on an artificial potential field (apfrPSO) was proposed.
The apfrPSO algorithm obtains the position vector of each particle by encoding the real numbers, which correspond to the decision variables of the function, and then calculates the objective function value using the corresponding decoding method. It then continuously updates the velocity and position of the particles using rPSO to complete finding the optimal solution. The combination of APF and PSO uses the artificial potential field method to set a potential field value for each grid and uses the particle swarm algorithm to plan a path in which one potential field value tends to another smaller potential field value along the decreasing direction of the potential field in the synthetic potential field to plan a collision-free path from the starting point of the target to reach and stop at the end of the target. The specific process is as follows.
Step 1: Read the map data, where there are N × N grid points. The environment space where the mobile robot moves is divided into grids and each grid is set with the corresponding potential field value.
Step 2: Set the particle swarm algorithm parameters.
Step 3: Initialize the particle swarm.
Step 4: Update the particle velocity using Equation (8).
Step 5: Update the particle positions using Equation (6).
Step 6: Particle decoding, i.e., calculate the objective function to obtain the path length of each particle.
Step 7: Output the potential field, which is encoded as the potential field of each grid point with the position of the particle swarm to obtain the path.
Step 8: Generate the path and calculate the total length of the path if the potential field reaches the global minimum, that is, it reaches the target endpoint to get the path. If the iteration is completed, the result is output, and if the iteration is not completed, return to step 4.
The flow of apfrPSO is shown in Figure 2.

4. Numerical Experiments

In this experiment, the map size constructed using the raster method is 20 × 20, i.e., N = 20 (but 40 is used in classic terrain validation), and PSO mainly uses the suggestions given in the literature [37]. In this part, the research comparison and analysis were mainly conducted for rPSO and apfrPSO. In addition, a comparative analysis of other advanced algorithms was carried out.

4.1. Classic Terrain Validation

In this study, we used the raster method to model the environment of the path-planning space of the mobile robot and artificially set four types of obstacles (as shown in Figure 3 below). We set the location of the target starting point and the target ending point and observed whether the algorithm combining APF and PSO could meet the requirements and whether the path taken could avoid the set obstacles.
From Figure 3, it can be seen that apfrPSO was able to start from the target starting point and finally reach and stop at the target endpoint under these artificial randomly set obstacle environments and perfectly avoid all obstacles during the journey, that is, it was able to meet the basic requirements of path planning in the set environment space.

4.2. Algorithm Comparison Analysis

The program randomly generates an obstacle environment and artificially and randomly sets the target starting point and target ending point. The parameters are set uniformly under the condition of comparing the path length, the average time of the algorithm run (the algorithm was run 30 times and averaged) and the number of iterations when the algorithm reached the target optimal solution for both algorithms. The stochastic environment shown in Figure 4 is an example of a random environment.
First, the convergence performances of the two algorithms were compared and analyzed for the stochastic environment. As can be seen in Figure 5, the apfrPSO algorithm not only converged in a faster time but also obtained shorter paths in the path-planning problem compared with the rPSO algorithm. This meant that the apfrPSO algorithm had better convergence and global optimality search compared with the rPSO algorithm.
Then, a comprehensive comparison of the algorithms for multiple other stochastic environments was performed. The data in Table 1 and Table 2 show that in these four random obstacle environments, apfrPSO produced shorter paths and had shorter average running times than rPSO, all other conditions being equal.
From the data in Table 3, it can be seen that in these four stochastic obstacle environments, there was no fixed number of iterations corresponding to the optimal solution of the objective for both algorithms.
In addition to investigating the comparison between apfrPSO and rPSO for mobile robot path planning, the apfrPSO algorithm was also compared with other state-of-the-art algorithms. The experiments took place in the same four stochastic environments mentioned above. The other algorithms compared were DAFSA [26], IDAFSA [26], and IPSO-IDE [37]. DAFSA is a Dijkstra-based artificial fish swarm algorithm. IDAFSA is an improved Dijkstra-based artificial fish swarm algorithm, and IPSO-IDE is an improved particle swarm algorithm based on optimized differential evolution. Thus, experiments were conducted to verify the apfrPSO algorithm’s performance. A preliminary experimental study aimed at ensuring the fairness of algorithm comparison was therefore conducted, specifically to ensure that all algorithms had the same number of iterations. One can comprehensively value the results through iteration numbers. Thus, mainly each algorithm’s population size was set. For the other parameters of these algorithms, the reader is referred to the related references [26,37].
The planning results of the different algorithms for the paths are shown in Table 4. The table mainly compares the average path length and the average number of iterations (taken as integers). From the results, it can be seen that IPSO-IDE obtained slightly worse path lengths than apfrPSO for environments 1 and 3, and better path lengths than apfrPSO for environments 3 and 4, but IPSO-IDE had a higher overall number of iterations compared with apfrPSO. The overall performance of apfrPSO and IPSO-IDE was better than IDFSA and DAFSA. A comprehensive comparison showed that the apfrPSO algorithm had a strong convergence capability and was able to obtain very competitive path lengths.

4.3. Population Change study

In order to further explore the path optimization effect of the algorithm, the exploration performance of the algorithm with different population sizes was investigated. With the environment setup shown in Figure 4, the changes in path length and running times of the two algorithms were observed while only changing the population, with all other parameters unchanged, and the specific data are shown in Appendix A Table A1 (length 1 corresponds to the path length of rPSO, length 2 corresponds to the path length of apfrPSO, time 1 corresponds to the average running time of 30 runs of rPSO, and time 2 corresponds to the average running time of 30 runs of apfrPSO). The plot of the population size versus path length for both algorithms (Figure 6) and the population size versus average running time for both algorithms (Figure 7) were drawn from the data in Table A1.
From Figure 6, it can be seen that the path length curve of apfrPSO was more stable and the path length of apfrPSO was generally shorter than that of rPSO under the same circumstances. From Figure 7, it can be seen that the larger the population size, the longer the average running time of both algorithms, and the average running time of apfrPSO was shorter than the average running time of rPSO.
The relationships between the path length, average running time, and population size of apfrPSO in Figure 6 and Figure 7 show that the optimization capability was saturated after the population size reached a certain level and the path length cannot be further optimized, and thus, if the population size is increased at this time, it will make the algorithm run longer. Therefore, when designing a specific algorithm, the population size should be chosen reasonably so that a better result can be achieved in a shorter time.

5. Conclusions

Mobile robots are becoming more and more widely used in all aspects of our production life and path planning is another important part of the study of mobile robots. To address the problem of path planning for mobile robots, an algorithm that combines APF and PSO was proposed in this study to perform path planning for mobile robots on the premise of raster maps, and the process of the algorithm was introduced. In the simulation experiments, it was first shown that a collision-free path could be effectively planned from the starting point of the target to finally reach the end target. Then, the paths planned using rPSO and apfrPSO were compared through the experiments of various obstacle paths, and the results verified that the path planning of the mobile robot using apfrPSO had a shorter path and shorter running time than when using rPSO. In addition, the apfrPSO algorithm was compared with other state-of-the-art algorithms. The results show that the algorithm proposed was very competitive.
In the future, we aim to explore more intricate scenarios to validate the performance of the proposed algorithm and conduct real-world robot path-planning experiments. Solutions to problems such as local optimization and dead zones are also in our research plan.

Author Contributions

Conceptualization, L.Z.; methodology, W.Y.; software, G.L. and G.Q.; data curation, G.L. and G.Q.; writing—original draft preparation, L.Z. and W.Y.; writing—review and editing, L.Z. and W.Y.; visualization, L.Z.; supervision, Y.L.; project administration, W.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Key R&D Projects in Sichuan Province, grant number 2023YFG0184, and Sichuan Provincial Market Supervision Administration Science and Technology Plan Project, grant number SCSJS2023022.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to acknowledge the anonymous reviewers for their valuable comments and suggestions that helped to improve the quality of the paper.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Table A1. Variation in the path length and time with the population size for the two algorithms rPSO (length 1 and time 1) and apfrPSO (length 2 and time 2).
Table A1. Variation in the path length and time with the population size for the two algorithms rPSO (length 1 and time 1) and apfrPSO (length 2 and time 2).
Population SizeLength 1Length 2Time 1 (s)Time 2 (s)
10024.2120.5628.2212.04
20022.5619.7357.0927.70
30021.7320.3189.1038.60
40023.1419.73125.5854.10
50019.7319.73152.0666.73
60020.3119.73174.1475.86
70020.9020.56214.9694.95
80020.5619.73233.38108.10
90021.1419.73235.70127.11
100020.9019.73246.64141.32
110021.4919.73267.44150.59
120020.3119.73343.31169.89
130019.7319.73346.77174.88
140019.7319.73476.88210.73
150022.5619.73487.63205.53
160020.3119.73551.38263.06

References

  1. Brancalião, L.; Gonçalves, J.; Conde, M.; Costa, P. Systematic Mapping Literature Review of Mobile Robotics Competitions. Sensors 2022, 22, 2160. [Google Scholar] [CrossRef] [PubMed]
  2. Chakraborty, S.; Elangovan, D.; Govindarajan, P.L.; ELnaggar, M.F.; Alrashed, M.M.; Kamel, S. A Comprehensive Review of Path Planning for Agricultural Ground Robots. Sustain 2022, 14, 9156. [Google Scholar] [CrossRef]
  3. Ravankar, A.; Ravankar, A.A.; Kobayashi, Y.; Hoshino, Y.; Peng, C.C. Path smoothing techniques in robot navigation: State-of-the-art, current and future challenges. Sensors 2018, 18, 3170. [Google Scholar] [CrossRef] [Green Version]
  4. Sánchez-Ibáñez, J.R.; Pérez-Del-pulgar, C.J.; García-Cerezo, A. Path planning for autonomous mobile robots: A review. Sensors 2021, 21, 7898. [Google Scholar] [CrossRef]
  5. Sugihara, K.; Smith, J. Genetic algorithms for adaptive motion planning of an autonomous mobile robot. In Proceedings of the IEEE International Symposium on Computational Intelligence in Robotics and Automation CIRA’97, Monterey, CA, USA, 10–11 July 1997; pp. 138–143. [Google Scholar] [CrossRef]
  6. Bai, X.; Fielbaum, A.; Kronmuller, M.; Knoedler, L.; Alonso-Mora, J. Group-Based Distributed Auction Algorithms for Multi-Robot Task Assignment. IEEE Trans. Autom. Sci. Eng. 2022, 20, 1292–1303. [Google Scholar] [CrossRef]
  7. Bai, X.; Li, C.; Li, C.; Khan, A.; Zhang, T.; Zhang, B. Multi-robot task assignment for serving people quarantined in multiple hotels during COVID-19 pandemic. Quant. Imaging Med. Surg. 2023, 13, 1802–1813. [Google Scholar] [CrossRef] [PubMed]
  8. Bai, X.; Yan, W.; Cao, M.; Xue, D. Distributed multi-vehicle task assignment in a time-invariant drift field with obstacles. IET Control Theory Appl. 2019, 13, 2886–2893. [Google Scholar] [CrossRef]
  9. Bai, X.; Yan, W.; Cao, M. Clustering-Based Algorithms for Multivehicle Task Assignment in a Time-Invariant Drift Field. IEEE Robot. Autom. Lett. 2017, 2, 2166–2173. [Google Scholar] [CrossRef] [Green Version]
  10. Zhang, B.; Li, G.; Zheng, Q.; Bai, X.; Ding, Y.; Khan, A. Path Planning for Wheeled Mobile Robot in Partially Known Uneven Terrain. Sensors 2022, 22, 5217. [Google Scholar] [CrossRef]
  11. Cipriani, G.; Bottin, M.; Rosati, G.; Faccio, M. A Radial Basis Functions approach to collision avoidance in collaborative tasks. IFAC-PapersOnLine 2022, 55, 307–312. [Google Scholar] [CrossRef]
  12. Gul, F.; Mir, I.; Abualigah, L.; Sumari, P.; Forestiero, A. A consolidated review of path planning and optimization techniques: Technical perspectives and future directions. Electron 2021, 10, 2250. [Google Scholar] [CrossRef]
  13. Jian, Z.; Zhang, S.; Chen, S.; Nan, Z.; Zheng, N. A Global-Local Coupling Two-Stage Path Planning Method for Mobile Robots. IEEE Robot. Autom. Lett. 2021, 6, 5349–5356. [Google Scholar] [CrossRef]
  14. Qi, Z.; Wang, T.; Chen, J.; Narang, D.; Wang, Y.; Yang, H. Learning-based Path Planning and Predictive Control for Autonomous Vehicles with Low-Cost Positioning. IEEE Trans. Intell. Veh. 2022, 8, 1093–1104. [Google Scholar] [CrossRef]
  15. Zhang, Z.; Wu, R.; Pan, Y.; Wang, Y.; Wang, Y.; Guan, X.; Hao, J.; Zhang, J.; Li, G. A Robust Reference Path Selection Method for Path Planning Algorithm. IEEE Robot. Autom. Lett. 2022, 7, 4837–4844. [Google Scholar] [CrossRef]
  16. Fan, Q.; Zhang, Y.; Li, N. An Autoselection Strategy of Multiobjective Evolutionary Algorithms Based on Performance Indicator and its Application. IEEE Trans. Autom. Sci. Eng. 2022, 19, 2422–2436. [Google Scholar] [CrossRef]
  17. Patle, B.K.; Babu, L.G.; Pandey, A.; Parhi, D.R.K.; Jagadeesh, A. A review: On path planning strategies for navigation of mobile robot. Def. Technol. 2019, 15, 582–606. [Google Scholar] [CrossRef]
  18. Burman, R.; Chakrabarti, S.; Das, S. Democracy-inspired particle swarm optimizer with the concept of peer groups. Soft Comput. 2017, 21, 3267–3286. [Google Scholar] [CrossRef]
  19. Zhao, C.; Guo, D. Particle Swarm Optimization Algorithm with Self-Organizing Mapping for Nash Equilibrium Strategy in Application of Multiobjective Optimization. IEEE Trans. Neural Netw. Learn. Syst. 2021, 32, 5179–5193. [Google Scholar] [CrossRef]
  20. Yu, Z.; Si, Z.; Li, X.; Wang, D.; Song, H. A Novel Hybrid Particle Swarm Optimization Algorithm for Path Planning of UAVs. IEEE Internet Things J. 2022, 9, 22547–22558. [Google Scholar] [CrossRef]
  21. Pozna, C.; Precup, R.E.; Horvath, E.; Petriu, E.M. Hybrid Particle Filter-Particle Swarm Optimization Algorithm and Application to Fuzzy Controlled Servo Systems. IEEE Trans. Fuzzy Syst. 2022, 30, 4286–4297. [Google Scholar] [CrossRef]
  22. Mohammed Hussein, H.; Katzis, K.; Mfupe, L.P.; Bekele, E.T. Performance Optimization of High-Altitude Platform Wireless Communication Network Exploiting TVWS Spectrums Based on Modified PSO. IEEE Open J. Veh. Technol. 2022, 3, 356–366. [Google Scholar] [CrossRef]
  23. Liu, X.; Zhang, D.; Zhang, T.; Zhang, J.; Wang, J. A new path plan method based on hybrid algorithm of reinforcement learning and particle swarm optimization. Eng. Comput. 2022, 39, 993–1019. [Google Scholar] [CrossRef]
  24. Raheem, F.A.; Badr, M.M. Development of Modified path planning algorithm using artificial potential field (APF) based on PSO for factors optimization. Am. Sci. Res. J. Eng. Technol. Sci. 2017, 37, 316–328. [Google Scholar]
  25. Janglova, D. Neural Networks in Mobile Robot Motion. Cut. Edge Robot. 2005, 1, 2. [Google Scholar] [CrossRef] [Green Version]
  26. Li, F.F.; Du, Y.; Jia, K.J. Path planning and smoothing of mobile robot based on improved artificial fish swarm algorithm. Sci. Rep. 2022, 12, 1–16. [Google Scholar] [CrossRef]
  27. Wang, F.; Zhang, C.; Zhang, W.; Fang, C.; Xia, Y.; Liu, Y.; Dong, H. Object-Based Reliable Visual Navigation for Mobile Robot. Sensors 2022, 22, 2387. [Google Scholar] [CrossRef]
  28. Wagner, N.R. The Sofa Problem. Am. Math. Mon. 1976, 83, 188. [Google Scholar] [CrossRef]
  29. Jung, J.H.; Kim, D.H. Local path planning of a mobile robot using a novel grid-based potential method. Int. J. Fuzzy Log. Intell. Syst. 2020, 20, 26–34. [Google Scholar] [CrossRef]
  30. Fang, Z.; Liang, X. Intelligent obstacle avoidance path planning method for picking manipulator combined with artificial potential field method. Ind. Rob. 2022, 49, 835–850. [Google Scholar] [CrossRef]
  31. Lozano-Pérez, T. Spatial Planning: A Configuration Space Approach. IEEE Trans. Comput. 1983, C–32, 108–120. [Google Scholar] [CrossRef] [Green Version]
  32. Véras, L.G.D.O.; Medeiros, F.L.L.; Guimarães, L.N.F. Rapidly exploring Random Tree* with a sampling method based on Sukharev grids and convex vertices of safety hulls of obstacles. Int. J. Adv. Robot. Syst. 2019, 16, 1729881419825941. [Google Scholar] [CrossRef] [Green Version]
  33. Dahiya, R.; Singh, A. A Survey on Application of Particle Swarm Optimization in Text Mining Abstract. Int. J. Innov. Res. Dev. 2014, 3, 101–107. [Google Scholar]
  34. Zhang, Y.; Wang, S.; Ji, G. A Comprehensive Survey on Particle Swarm Optimization Algorithm and Its Applications. Math. Probl. Eng. 2015, 2015, 1–38. [Google Scholar] [CrossRef] [Green Version]
  35. Singh, N.; Singh, S.B. Personal Best Position Particle Swarm Optimization 1. J. Appl. Comput. Sci. Math. 2012, 12, 69–76. [Google Scholar]
  36. Abedi Pahnehkolaei, S.M.; Alfi, A.; Tenreiro Machado, J.A. Analytical stability analysis of the fractional-order particle swarm optimization algorithm. Chaos Solitons Fractals 2022, 155, 111658. [Google Scholar] [CrossRef]
  37. Yuan, Q.; Sun, R.; Du, X. Path Planning of Mobile Robots Based on an Improved Particle Swarm Optimization Algorithm. Processes 2022, 11, 26. [Google Scholar] [CrossRef]
Figure 1. The flow diagram of rPSO.
Figure 1. The flow diagram of rPSO.
Sensors 23 06082 g001
Figure 2. The flow diagram of apfrPSO.
Figure 2. The flow diagram of apfrPSO.
Sensors 23 06082 g002
Figure 3. Simulation results in multiple obstacle environment types.
Figure 3. Simulation results in multiple obstacle environment types.
Sensors 23 06082 g003
Figure 4. Simulation result graph of a random obstacle environment.
Figure 4. Simulation result graph of a random obstacle environment.
Sensors 23 06082 g004
Figure 5. Comparison of iteration curves of the path optimization algorithms.
Figure 5. Comparison of iteration curves of the path optimization algorithms.
Sensors 23 06082 g005
Figure 6. Population size versus path length found by the algorithms.
Figure 6. Population size versus path length found by the algorithms.
Sensors 23 06082 g006
Figure 7. Population size versus the average running time of the algorithms.
Figure 7. Population size versus the average running time of the algorithms.
Sensors 23 06082 g007
Table 1. Comparison of the path lengths of the two algorithms for different obstacle environments.
Table 1. Comparison of the path lengths of the two algorithms for different obstacle environments.
ItemEnvironment 1Environment 2Environment 3Environment 4
rPSO27.2124.9722.1421.14
apfrPSO24.3821.5619.3119.73
Table 2. Comparison of the average running times of the two algorithms for different obstacle environments.
Table 2. Comparison of the average running times of the two algorithms for different obstacle environments.
ItemEnvironment 1Environment 2Environment 3Environment 4
rPSO(s)20.6714.3915.1417.12
apfrPSO(s)10.446.897.497.38
Table 3. Comparison of the number of iterations corresponding to the objective optimal solution of the two algorithms for different obstacle environments.
Table 3. Comparison of the number of iterations corresponding to the objective optimal solution of the two algorithms for different obstacle environments.
ItemEnvironment 1Environment 2Environment 3Environment 4
rPSO146247144
apfrPSO3630248
Table 4. Comparison of apfrPSO with the other algorithms.
Table 4. Comparison of apfrPSO with the other algorithms.
ItemEnvironment 1Environment 2Environment 3Environment 4
LengthItersLengthItersLengthItersLengthIters
DAFSA28.329126.466825.677824.1275
IDAFSA26.437623.754622.484622.1664
IPSO-IDE24.494321.243820.161019.2453
apfrPSO24.383621.563019.31219.7348
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

Zheng, L.; Yu, W.; Li, G.; Qin, G.; Luo, Y. Particle Swarm Algorithm Path-Planning Method for Mobile Robots Based on Artificial Potential Fields. Sensors 2023, 23, 6082. https://doi.org/10.3390/s23136082

AMA Style

Zheng L, Yu W, Li G, Qin G, Luo Y. Particle Swarm Algorithm Path-Planning Method for Mobile Robots Based on Artificial Potential Fields. Sensors. 2023; 23(13):6082. https://doi.org/10.3390/s23136082

Chicago/Turabian Style

Zheng, Li, Wenjie Yu, Guangxu Li, Guangxu Qin, and Yunchuan Luo. 2023. "Particle Swarm Algorithm Path-Planning Method for Mobile Robots Based on Artificial Potential Fields" Sensors 23, no. 13: 6082. https://doi.org/10.3390/s23136082

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