Next Article in Journal
Dynamometer Resistance Pad Position Influences Knee Strength and Hamstring/Quadriceps Ratio in Professional Basketball Players: Retrospective Observational Study
Previous Article in Journal
Time Series Analysis of Mining-Induced Subsidence Using Small Baseline Subset Interferometric Synthetic Aperture Radar (Wanli Mining Area, Inner Mongolia, China)
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Path Planning of Mobile Robots with an Improved Grey Wolf Optimizer and Dynamic Window Approach

1
School of Electronic, Electrical Engineering and Physics, Fujian University of Technology, Fuzhou 350118, China
2
Fujian Province Industrial Integrated Automation Industry Technology Development Base, Fuzhou 350118, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(7), 3999; https://doi.org/10.3390/app15073999
Submission received: 4 March 2025 / Revised: 31 March 2025 / Accepted: 2 April 2025 / Published: 4 April 2025

Abstract

:
To address the critical limitations of conventional Grey Wolf Optimization (GWO) in path planning scenarios—including insufficient exploration capability during the initial phase, proneness to local optima entrapment, and inherent deficiency in dynamic obstacle avoidance—this paper proposes a multi-strategy enhanced GWO algorithm. Firstly, the Piecewise chaotic mapping is applied to initialize the Grey Wolf population, enhancing the initial population quality. Secondly, the linear convergence factor is modified to a nonlinear one to balance the algorithm’s global and local search capabilities. Thirdly, Evolutionary Population Dynamics (EPD) is incorporated to enhance the algorithm’s ability to escape local optima, and dynamic weights are used to improve convergence speed and accuracy. Finally, the algorithm is integrated with the Improved Dynamic Window Approach (IDWA) to enhance path smoothness and perform dynamic obstacle avoidance. The proposed algorithm is named PAGWO-IDWA. The results demonstrate that, compared to traditional GWO, PAGWO-IDWA reduces the path length, number of turns, and running time by 9.58%, 33.16%, and 30.31%, respectively. PAGWO-IDWA not only overcomes the limitations of traditional GWO but also enables effective path planning in dynamic environments, generating paths that are both safe and smooth, thus validating the effectiveness of the algorithm.

1. Introduction

With the rapid development of robotics, robots are increasingly deployed in various fields, and path planning, one of the fundamental challenges for mobile robots, has gradually attracted widespread attention [1]. Path planning refers to the process by which mobile robots use algorithms to plan paths that satisfy task requirements, with evaluation metrics such as path distance, number of turns, and running time [2]. Path planning can typically be divided into two categories: global and local path planning. Traditional approaches in global path planning often involve algorithms such as Dijkstra’s algorithms [3], the A* algorithms [4], and the RRT algorithms [5], and local path planning includes the dynamic window approach (DWA) [6] and the artificial potential field (APF) algorithm [7]. In path planning, researchers worldwide have proposed many algorithms and made significant contributions. Feng et al. [8] proposed an autonomous path planning method capable of dynamically adjusting coverage paths and priorities, by introducing a dynamic weight matrix to Dijkstra’s algorithm, thereby generating cost-optimal paths rather than merely the shortest paths. To address vehicle path safety in uncertain dynamic obstacle environments, Lathrop et al. [9] calculated the Wasserstein distance between the distributions of vehicle and obstacle states, improved the RRT algorithm through the incorporation of a dynamic distribution model, and provided safe paths that are probabilistically guaranteed. Jiang et al. [10] added a risk penalty to the evaluation function of the A* algorithm, making the improved algorithm more suitable for practical situations, and combined the A* algorithm with the DWA, which allows the DWA to traverse the A* path points, thus endowing the algorithm with dynamic path planning capability. Ding et al. [11] employed a beetle antennae search algorithm to address the optimization issues of the APF algorithm. They dynamically adjusted the search step size based on the distance between the robot and the target point, thereby achieving a balance between path generation speed and planning accuracy. To address the suboptimal path problem of the DWA algorithm due to fixed weights in complex environments, Gong et al. [12] improved the velocity cost function. They input the distances between the robot, obstacles, and the target point into a fuzzy control module, thus enabling the robot to adapt to environmental changes. Although traditional global path algorithms and local path algorithms perform well in many applications, they also have limitations in addressing optimization problems. For example, the A* algorithm is subject to computational complexity in high-dimensional environments, which results in poor dynamic capability. The APF can result in path planning failures due to local minima problems and is computationally intensive, requiring considerable time.
In recent years, with the development of intelligent optimization algorithms, such as ant colony optimization (ACO) [13], genetic algorithm (GA) [14], sine cosine algorithm (SCA) [15], and particle swarm optimization (PSO) [16], these algorithms have also been widely applied to path planning problems. Wang et al. [17] enhanced the ACO by employing several heterogeneous ant colonies to enhance solution diversity and optimize UAV task allocation through task insertion boundaries and random interruption mechanisms. Akay et al. [18] introduced a differential update strategy into the SCA, where different strategies are chosen to update candidate solutions, thereby enhancing the diversity of the algorithm. Xu et al. [19] incorporated adaptive weighted delayed velocity in the PSO algorithm to improve convergence stability and proposed quartic Bézier curves for smoothing the paths, thereby reducing abrupt turns in robot motion. Pan et al. [20] combined GA with deep learning, and the trained deep neural networks can quickly generate planning results, which significantly reduces the running time.
Gray Wolf Optimization (GWO) algorithm [21] is a swarm intelligence algorithm proposed in 2014, widely used in various fields due to its strong global search capability. It primarily finds the global optimal solution through the natural predatory behavior of wolves. Compared with other intelligent algorithms, GWO offers advantages such as fewer parameters, faster convergence speed, and improved stability. However, in complex environments, GWO may exhibit reduced convergence accuracy and is prone to falling into local optima. Therefore, improving GWO has become an active area of research in recent years. To address the issue of GWO falling into local optima in complex multi-modal problems, Yu et al. [22] proposed HGWODE, which introduces a ranking-based mutation strategy and enhances the exploratory capability using the Differential Evolution algorithm, thereby enabling the algorithm to escape local optima. Ding et al. [23] introduced a probabilistic jump mechanism into GWO to help it escape local optima and improve its the convergence speed by replacing the linear convergence factor with an exponentially decaying one. Liu et al. [24] enhanced GWO by using a Gaussian map to improve the quality of the initial gray wolf population, incorporating the Lévy flight strategy to increase the population’s diversity, and integrating the Golden Sine function to improve the convergence accuracy. Jiang et al. [25] introduced the ε l e v e l comparison method in GWO to enhance the algorithm’s exploratory capability by dynamically adjusting the ε -value. Additionally, they incorporated a communication mechanism that randomly selects individuals to exchange information with the optimal individual, thereby improving the population’s diversity. Zhang et al. [26] introduced the centrifugal distance rate of change to calculate the population distribution and dynamically assigned weights based on the centrifugal distance rate of change between individuals and leaders, thereby enhancing the algorithm’s optimization performance and convergence speed. Qu et al. [27] simplified the position update formula of GWO, accelerating convergence while retaining global search capability, and modified the symbiotic phase of the Symbiotic Organisms Search (SOS) algorithm, enhancing information exchange among individuals and avoiding local optima. They combined the improved SOS algorithm with the simplified GWO algorithm, proposing a new algorithm, HSGWO-MSOS, which balances global exploration and local exploitation, thereby improving the effectiveness of path planning. Zhang et al. [28] significantly enhanced the search efficiency and stability of GWO path planning through the introduction of a discrete search mechanism, adaptive parameter adjustment, and local optimization strategies, demonstrating superior performance in path planning for porous materials. Liu et al. [29] integrated the Gaussian mutation strategy and spiral function perturbation to enhance the algorithm’s ability to escape local optima by randomly perturbing the position of the optimal individual. Additionally, they enhanced the global search ability of the algorithm by dynamically adjusting the weights, thereby increasing the influence of a wolf via Gaussian distribution. They applied the proposed NAS-GWO to trajectory planning in agricultural drone applications. Wang et al. [30] developed a poor solution repair strategy, thereby improving the population quality, and incorporated a multi-constraint path cost function to optimize the efficiency and safety of UAV path planning. Although the existing improvement methods have improved the performance of GWO, the algorithm remains constrained in complex environments. For example, the algorithm tends to fall into local optima and exhibits suboptimal path smoothness. Moreover, in dynamic environments, traditional GWO cannot handle dynamic obstacle avoidance in dynamic settings. Furthermore, some improved algorithms have enhanced performance but introduced excessive tuning parameters, which may increase algorithmic complexity, reduce generalization ability, and hinder adaptation to diverse application scenarios.
Based on previous research, this paper conducts an in-depth study of GWO and applies comprehensive improvements to overcome its performance limitations. It proposes the PAGWO algorithm and combines it with an enhanced version of the DWA, forming the PAGWO-IDWA approach for mobile robot path planning and dynamic obstacle avoidance.
The structure of the paper is outlined as follows: Section 2 provides an overview of the standard GWO algorithm; Section 3 improves the GWO algorithm with various strategies to address its shortcomings; Section 4 describes the improvements to the Dynamic Window Approach (DWA); Section 5 integrates the PAGWO algorithm with the Improved Dynamic Window Approach (IDWA) to address the limitations in dynamic path planning; Section 6 simulates and analyzes the proposed algorithm to validate the performance of PAGWO-IDWA in path planning; and finally, Section 7 provides a summary and concludes the paper.

2. Standard Gray Wolf Optimization Algorithm and Fitness Function

2.1. Standard Gray Wolf Optimization Algorithm

The GWO algorithm is a simulation-based optimization algorithm that mimics social hierarchy and group hunting behaviors observed in gray wolf packs. The algorithm has the advantages of few parameters, simple principles, and strong global search capability [31].
The social hierarchy of gray wolves is a pyramid, divided into four levels: the alpha wolf is the population leader, responsible for decision-making, representing the algorithm’s optimal solution; the beta wolf assists the alpha wolf in managing the rest of the pack, representing the suboptimal solution; the delta wolf occupies the third level, responsible for reconnaissance and auxiliary tasks; and omega wolves are the lowest-ranked and most numerous wolves, following the commands of others. The GWO algorithm is divided into three phases: the prey encirclement phase, the prey pursuit phase, and the prey attack phase [32].
The gray wolf pack, as a cohesive unit during the prey encirclement phase, collectively updates its position based on the relative distance to the prey.
D = C X p ( t ) X ( t )
X ( t + 1 ) = X p ( t ) + A D
where D is the distance between the prey and the individual gray wolf’s current position, t is the current iteration, X p is the prey position, and X is the individual gray wolf’s current position. The coefficient vectors A and C are expressed as follows:
A = 2 a r 1 a
C = 2 r 2
where a decreases linearly from 2 to 0 as the iterations progress, while parameters r 1 and r 2  are random values within the range [0, 1].
During the prey pursuit phase, each gray wolf calculates the distances to the alpha, beta, and delta wolves based on their current positions. Subsequently, individual gray wolves move closer to the prey using these distance vectors. The position update formula integrates the influence of the leaders with stochastic exploration components, ensuring that the pack remains within the potential vicinity of the globally optimal solution. The position update formula is as follows:
D α = C 1 X α X X 1 = X α A 1 D α
D β = | C 2 X β X | X 2 = X β A 2 D β
D δ = C 3 X δ X X 3 = X δ A 3 D δ
X ( t + 1 ) = X 1 + X 2 + X 3 3
where D α , D β , and D δ represent the relative position difference between the current positions of individual gray wolves and those of alpha, beta, and delta wolves, respectively; X α , X β , and X δ represent the current positions of alpha, beta, and delta wolves, respectively; X 1 , X 2 , and X 3 are the updated positions of omega wolves based on alpha, beta, and delta wolves, respectively. Finally, omega wolves recalculate the new mean position based on the updated positions.
The attacking prey phase is a critical stage in the optimization process, during which the algorithm approaches the global optimal solution with greater precision. As a decreases, the value of A changes accordingly. When A < 1 , the gray wolf performs a local search and attacks the prey, and when A > 1 , gray wolves perform a global search and gradually disperse.
In summary, the gray wolf optimization algorithm has the following drawbacks:
(1)
The initial population of gray wolves in the encirclement phase is randomly generated, and the initial population is unevenly distributed, which negatively affects the exploration ability in the initial phase;
(2)
A is an important parameter controlling global and local search, and its value varies with a . The linear decay of a has limitations;
(3)
The position update strategy lacks flexibility when addressing complex problems and is prone to becoming trapped in local optima.
(4)
The standard GWO exhibits limited adaptability in dynamic path planning tasks.

2.2. Fitness Function

Path planning is a crucial step in achieving autonomous navigation for mobile robots, entailing the discovery of a collision-free route from a start point to a destination while meeting specific requirements. In the path optimization process, two core issues are considered: path length, which reflects the algorithm’s optimization capability, and obstacle avoidance, which ensures safety. Therefore, this paper designs the fitness function of the proposed algorithm to incorporate these two aspects: path length and obstacle avoidance.
Path length is a key metric for evaluating the quality of a route. Suppose a route is represented by a series of points, denoted as P = { P 1 , P 2 , P 3 , P n } , where each point’s coordinates are given by ( x i , y i ) . The path length can be obtained by summing the Euclidean distances between consecutive points, as in Formula (9):
F 1 = i = 1 n 1 ( x i + 1 x i ) 2 + ( y i + 1 y i ) 2
In order to ensure the safety of the path, obstacle avoidance must be considered in the fitness function. The safety of path planning is enforced by introducing a penalty value, which depends on the number of obstacles traversed by the path, as in Formula (10):
F 2 = κ O b
where κ is the penalty factor, which is used to regulate the weight of obstacle avoidance, and O b is the number of obstacles that the path crosses.
Combining the path length with the avoidance penalty value, the integrated fitness function can be expressed as follows:
F = i = 1 n 1 ( x i + 1 x i ) 2 + ( y i + 1 y i ) 2 + κ O b
This design of the fitness function has wide applicability in the field of path planning. By comprehensively considering the path length and obstacle conflicts, the robot is able to plan efficient and safe moving routes in complex environments and improve its navigation capability.
Such a fitness function design is widely applicable in path planning. By simultaneously considering path length and obstacle conflicts, the robot can plan efficient and safe trajectories in complex environments, thereby enhancing its navigation capabilities.

3. Improved Gray Wolf Optimization Algorithm

3.1. Piecewise Chaotic Mapping

This study employs a piecewise chaotic mapping strategy to enhance population diversity and augment the optimization process’s early-stage exploration capability, mitigating the issues of insufficient population diversity and low-quality initialization in conventional GWO algorithms. Chaotic mapping exhibits ergodicity and regularity [33], producing a random sequence that can cover a more expansive search space, allowing the initial population to search from a broader range of positions. Standard chaotic mappings include the Logistic, Tent, Sinusoidal, and Piecewise chaotic mappings. The piecewise chaotic mapping is simple and efficient, resulting in a more uniform distribution of the initial gray wolf population, as shown in Formula (12):
x ( t + 1 ) = x ( t ) p , 0 x ( t ) < p x ( t ) p 0.5 p , p x ( t ) < 0.5 1 p x ( t ) 0.5 p , 0.5 x ( t ) < 1 p 1 x ( t ) p , 1 p x ( t ) < 1
where x ( t ) represents a random iteration value, x ( 1 )  is a random number in the range [0, 1];  p is a control parameter with values within the open interval (0, 0.5), meaning that p cannot be 0 or 0.5, as this would lead to undefined results in the piecewise chaotic mapping function, and in this paper, the value of p is set to 0.3.
Piecewise chaotic mapping operates by defining different functional relationships across distinct segments, ensuring that each generated initial position is determined by more than just a single random distribution. This leads to a more uniformly distributed initial population, effectively improving the quality of the initial gray wolf population and enhancing the algorithm’s early-stage exploration capability.

3.2. Nonlinear Convergence Factor

In the gray wolf optimization algorithm, the parameter A is the key factor that controls the balance between global and local search. When A > 1 , the wolf pack searches in distant regions to enhance its global search capability, and when A < 1 , the wolf pack gradually converges towards the prey and performs local search [34].
From Formula (3), a is linearly reduced from 2 to 0 during the iteration process, and the value of A changes accordingly; this linear decay often leads to local optima in practical applications. In this paper, we introduce a nonlinear convergence factor based on the adjustment factor n , which allows for changing the decay of a by adjusting the size of n based on practical application requirements.
a = t 2 n 2 + 2 , t < 2 n 2 t m 2 ( t t m ) 2 t m 2 2 n 2 , 2 n 2 t m t t m
where t m is the maximum number of iterations, and n is in the range ( 0 , t m ) .
Figure 1 shows the effect of different values of n on the decay of the convergence factor a when the number of iterations is 1000. The dashed horizontal line labeled “baseline” corresponds to a = 1 , serving as a key reference point for the GWO. As discussed earlier, in GWO the parameter  A  is given by  A = 2 a r 1 , and the threshold | A | = 1 marks the transition between global and local search. Consequently, when a crosses 1, the search behavior shifts from primarily global to more local exploitation.
As can be seen in Figure 1, smaller n values cause a to approach 1 more quickly, thereby triggering local search earlier and reducing the duration of the global search phase. Conversely, larger n values slow the convergence to 1, extending the global search phase. By selecting an appropriate n , one can, thus, balance the algorithm’s global and local exploration more effectively according to the specific optimization problem.

3.3. Evolutionary Population Dynamics

Evolutionary population dynamics (EPD) is inspired by self-organizing critical theory (SOC), which posits that dynamic systems can adaptively adjust to maintain an efficient and stable dynamic equilibrium. EPD takes advantage of this idea by eliminating less-adapted individuals and repositioning them to enhance population diversity [35].
During iterations of the gray wolf algorithm, the population gradually converges toward the top three individuals, which aids local exploration but also reduces overall population diversity, increasing the risk of becoming trapped in local optima. In later stages, a decline in population diversity may negatively impact the global optimization performance. In this paper, EPD is used to enhance the diversity of the population.
The specific implementation of EPD is divided into the following two steps. Firstly, in each iteration, the bottom 20% of individuals with the lowest fitness values are removed. Then, the removed individuals are regenerated in four ways. The first three methods involve generating new individuals near the elite individuals, while the fourth method generates individuals randomly; each of these four methods is applied with a probability of 25%. The mathematical formula is as follows:
X ( t + 1 ) = X α r 4 ( X α l b ) , r 3 0.5 X α + r 4 ( u b X α ) , r 3 > 0.5
X ( t + 1 ) = X β r 4 ( X β l b ) , r 3 0.5 X β + r 4 ( u b X β ) , r 3 > 0.5
X ( t + 1 ) = X δ r 4 ( X β l b ) , r 3 0.5 X δ + r 4 ( u b X β ) , r 3 > 0.5
X ( t + 1 ) = l b + r 5 ( u b l b )
where r 3 and r 5 are random numbers between [ 0 , 1 ] , r 4 is a random number between [ 0 , 0.5 ] , and u b and l b are the upper and lower bounds of the search space, respectively.
EPD updates the less-fit wolves in various ways, including generating new individuals around elite wolves to improve local search ability and employing random generation to improve population diversity. This mechanism enhances the algorithm’s ability to escape local optima while maintaining its optimization capability.

3.4. Dynamic Weighting

In the standard GWO, the gray wolf individuals are mainly updated based on the positions of the alpha, beta, and delta wolves. The three wolves play the same role; this approach fails to emphasize the superior importance of the alpha wolf. Such an averaging process adversely affects both the convergence speed and accuracy. To overcome this limitation and accelerate convergence, we introduce dynamic weights based on fitness changes to amplify the role of the alpha wolf. The mathematical expression is as follows:
w 1 = | f δ | | f α | + | f β | + | f δ |
w 2 = | f β | | f α | + | f β | + | f δ |
w 3 = | f α | | f α | + | f β | + | f δ |
X ( t + 1 ) = w 1 X 1 + w 2 X 2 + w 3 X 3
where f α , f β , and f δ represent the current fitness values of the alpha, beta, and delta wolves, respectively.

4. Improved Dynamic Window Approach

4.1. Standard Dynamic Window Approach

Dynamic Window Approach (DWA) is a local path planning algorithm. Its core idea is to assess the robot’s surroundings and sample candidate linear and angular velocities, simulate the resulting trajectory for the next time step, and subsequently select a safe and efficient path by evaluating these trajectories using an evaluation function [36].
The mobile robot kinematic model is shown in Formula (22):
x ( t ) = x ( t 1 ) + v ( t ) Δ t cos θ ( t 1 ) y ( t ) = y ( t 1 ) + v ( t ) Δ t sin θ ( t 1 ) θ ( t ) = θ ( t 1 ) + ω ( t ) Δ t
where x ( t ) , y ( t ) , and θ ( t ) are the current pose information of the mobile robot, v ( t ) and ω ( t ) are the current linear and angular velocities of the mobile robot, and Δ t is the time interval. The mobile robot is constrained by linear and angular velocities as shown in Formula (23):
V T = { ( v , w ) | v min v v max , w min w w max }
Due to the limited motor torque, the robot is constrained by its capability, as shown in Formula (24):
V D = { ( v , w ) | v c v ˙ Δ t v v c + v ˙ Δ t , w c w ˙ Δ t w w c + w ˙ Δ t }
where v c and w c are the linear and angular velocities of the mobile robot at the current time, and v ˙ and w ˙ are the maximum linear acceleration and maximum angular acceleration due to the motor. To ensure collision-free path planning, the mobile robot must maintain a predefined safety margin when navigating near obstacles, with the constraint relationship expressed in the following Formula (25):
V A = ( v , w ) , v 2 dist ( v , w ) v ˙ , w 2 dist ( v , w ) w ˙
where dist ( v , w ) is the distance evaluation function, which calculates the distance between the mobile robot and the obstacle. The mobile robot must satisfy the aforementioned three constraints, and after sampling, the motion trajectory is computed. Subsequently, the evaluation function is applied to the motion trajectory to determine the optimal path, and the standard evaluation function is shown in Formula (26):
G ( v , w ) = λ 1 heading ( v , w ) + λ 2 dist ( v , w ) + λ 3 velocity ( v , w )
where heading ( v , w ) is the azimuth evaluation function, denoting the angle difference between the mobile robot’s heading and the target point at the current time; velocity ( v , w ) is the velocity evaluation sub-function, denoting the speed of the current robot trajectory; and the weights for the three evaluation criteria are represented by λ 1 , λ 2 , and λ 3 , respectively.
We found that the conventional DWA algorithm still exhibits some shortcomings, and we have introduced the following improvements to address them:
(1)
Global Optimization Strategy
Instead of using only the endpoint as the goal—which can cause the robot to become trapped in local optima—we combine DWA with PAGWO. The globally optimal path generated by PAGWO is decomposed into several local goal points, guiding the robot step-by-step toward the final destination.
(2)
Dynamic Heading Angle
Rather than relying on a fixed heading angle based solely on the start-to-target direction, we now adjust the robot’s heading based on the next waypoint provided by PAGWO. This dynamic adjustment enables the robot to respond more effectively to environmental changes and to follow the optimal path.
(3)
Conflict Avoidance Strategy
We have implemented a new conflict avoidance mechanism that assesses the relative positions and angles between the robot and dynamic obstacles. If a frontal conflict is detected, the robot accelerates to bypass the obstacle; if a non-frontal conflict is identified, it stops and waits. This tailored response improves overall navigation efficiency by better handling dynamic obstacles.

4.2. Key Improvements to the Dynamic Window Approach

4.2.1. Global Optimization Strategy

Standard DWA only takes the endpoint as the goal point in path planning. However, it is easy for this approach to get stuck in local optima or deviate from the optimal path when encountering situations such as U-shaped obstacles. To address this shortcoming, we combine DWA with PAGWO. The globally optimal path generated by PAGWO is decomposed into individual local goal points, which guide the robot via DWA toward these local goal points, thereby ensuring that the robot successfully traverses these points to reach the endpoint.

4.2.2. Adaptive Heading Angle

The path quality of DWA is closely related to the initial heading angle. Traditional DWA usually selects a fixed value or uses the line between the start and end points as the initial heading angle. However, this approach is prone to detours, thereby adversely affecting path quality in complex environments. In this paper, we propose a novel initial heading angle by incorporating local target points. The optimized initial heading angle calculation is shown in Formula (27):
θ = arctan y 1 y 0 x 1 x 0
where ( x 0 , y o ) is the starting point, and ( x 1 , y 1 ) is the first local target point.
The method incorporates the relationship between the robot and the local target points when calculating the initial heading angle, and by adaptively adjusting the initial heading angle, the robot can reduce unnecessary detours during the initial local path planning and bypass obstacles more safely, thereby enhancing the overall quality of the path.

4.2.3. Conflict Avoidance Strategies

In dynamic environments, mobile robots need to avoid dynamic obstacles to ensure the safety and efficiency of their tasks. The traditional DWA sometimes fails to take effective action in time, resulting in collisions when facing head-on conflict with dynamic obstacles. Additionally, when facing a dynamic obstacle approaching from the side, it often employs a non-discriminatory avoidance strategy, which may lead to unnecessary detours and increase the probability of collisions. To address these issues, this paper proposes a new obstacle avoidance strategy that utilizes the distance and angle relationship between the dynamic obstacle and the robot, assesses the obstacle’s behavior, and adopts corresponding avoidance maneuvers. The specific strategies are as follows.
First, the Euclidean distance between the robot’s current position and the dynamic obstacle’s current position is calculated. In this formula, the robot’s current position is at ( x r , y r ) , and the dynamic obstacle’s current position is at ( x o b s , y o b s ) .
d = ( x o b s x r ) 2 + ( y o b s y r ) 2
As shown in Figure 2, set the distance threshold d min to 3 and the angle threshold θ min to 30°, then proceed to the following judgment when d d min and the dynamic obstacle enters the mobile robot’s angle detection range.
In this context, the heading angle of the mobile robot, θ , is initially defined with a specific value, representing the robot’s actual orientation. For simplicity in the obstacle avoidance strategy, we redefine the robot’s heading angle as θ r and consider it as 0°. This simplification allows for easier judgment of the relative positions and angles of the robot and dynamic obstacle during the avoidance process. When the heading angle of the dynamic obstacle, θ o b s , falls within the range of [ 160 ° , 200 ° ] , it is considered a head-on conflict; otherwise, it is considered a non-head-on conflict. When judged as a head-on conflict, the mobile robot quickly avoids the obstacle interference area by adjusting its angular velocity and accelerating to avoid collision. Specifically, if θ o b s ( 180 ° , 200 ° ] , it indicates that the dynamic obstacle is moving to the left relative to the mobile robot, and the mobile robot accelerates to the left to bypass it. If θ o b s [ 160 ° , 180 ° ] , it indicates that the dynamic obstacle is traveling to the right relative to the mobile robot or moving face-to-face, the mobile robot accelerates to the right to bypass it. If the conflict is determined to be non-head-on, the mobile robot stops and waits for the dynamic obstacle to leave the interference area before continuing path planning.
With this strategy, the mobile robot can minimize the risk of collisions in complex environments, thereby ensuring the safety of its movement while simultaneously reducing unnecessary detours and enhancing the efficiency of path planning.

5. PAGWO-IDWA Algorithm

5.1. Overall Framework

Figure 3 presents the main steps of the proposed path planning framework, from environment initialization to generating a safe and smooth path. First, the environment is represented as raster maps and relevant parameters are defined. The mobile robot’s start and goal positions, as well as any obstacles, are then specified. Next, a fitness function that combines Euclidean distance with an obstacle avoidance penalty is established to evaluate candidate paths. The improved PAGWO is subsequently used to determine the globally optimal path, and the resulting waypoints are provided to the improved DWA for local trajectory planning. By integrating PAGWO’s global guidance with DWA’s local maneuvering, the method ensures efficient, collision-free navigation in dynamic environments.
In the following section, we present the detailed algorithm flowchart and pseudo-code for the PAGWO-IDWA framework. This comprehensive algorithmic description elucidates the step-by-step procedures, key components, and decision-making logic that underpin the proposed method, thereby providing a clear pathway for both implementation and further analysis.

5.2. Algorithm Flowchart and Pseudo-Code

In this paper, the improved DWA is integrated with PAGWO (termed PAGWO-IDWA) to plan paths for mobile robots and to enable them to avoid obstacles in dynamic environments, thereby enhancing the algorithm’s dynamic performance and robustness. The algorithm’s flowchart is presented in Figure 4:
In this framework, PAGWO is first utilized to generate a global collision-free path, incorporating four key enhancements: (1) piecewise chaotic mapping to diversify the search space; (2) an EDP strategy to prevent premature convergence; (3) an improved nonlinear convergence factor to balance exploration and exploitation; and (4) a dynamic weighting scheme in the position update formula. Once the global path points are obtained, the improved IDWA uses these points to guide the heading angle and optimize local obstacle avoidance. Specifically, the conflict avoidance strategy is based on the relative angle and position between the mobile robot and dynamic obstacles. When a direct conflict is detected—where the robot and obstacle are aligned in a manner that poses a high risk of collision—the robot accelerates to quickly bypass the obstacle. Conversely, if a non-direct conflict is identified, the robot decelerates and stops, waiting for a safer opportunity to proceed. Moreover, similar to the conventional Dynamic Window Approach (DWA), IDWA employs an evaluation function that considers factors such as heading alignment, velocity, and obstacle clearance to determine the optimal local trajectory. By combining PAGWO’s global guidance with IDWA’s adaptive local maneuvering, the proposed method achieves efficient and safe navigation in dynamic environments. The pseudo-code of the PAGWO-IDWA is presented in Algorithm 1.
Algorithm 1: PAGWO-IDWA pseudo-code
Input:
Number of grey wolves: n.
Maximum number of iterations: Max_iter.
Dimension of the problem: dim.
Grid map: G.
DWA parameters: λ 1 , λ 1 , λ 1 .
Output:
The smooth optimal trajectory for the robot.
1.Initialize the Grey Wolf population using Piecewise Chaotic Mapping.
2.Initialize Alpha, Beta, and Delta wolves.
3.While iter < Max_iter
4.for i = 1: n
5.Evaluate fitness and update leaders;
6.end for
7.for i = 1: round(n/4)
8.Apply Evolutionary Population Dynamics (EPD);
9.end for
10.Update nonlinear convergence factor;
11.For i = 1: n
12.Update positions with dynamic weighting;
13.end for
14.Obtain the current new location;
15.Update the optimal location of the current individual
16.iter = iter + 1;
17.end while
18.Acquire global optimal path point information of the PAGWO;
19.Fuse the point information and put it into local planner DWA;
20.Control the robot to move according to the global optimal with Conflict avoidance strategies;
21.Return the smooth optimal trajectory.

5.3. Complexity Analysis

In optimization problems, computational complexity analysis is an important metric for evaluating the performance of an algorithm, and the computational cost of an algorithm is quantified using Big O notation. When applying the proposed PAGWO-IDWA algorithm to the path planning problem, the complexity mainly depends on these key factors: the population size, n , the dimensionality, d , of the path planning problem, the maximum number of iterations, t m , and the evaluation complexity of the objective function, c . The computational complexity of the proposed PAGWO-IDWA is specified as follows:
O ( PAGWO - IDWA ) = O ( path   planning   problem ) + O ( init . ) + O ( cost   function ) + O ( solution   update ) + O ( EPD ) = O ( 1 + n d + t m c n + t m n d + n log ( n ) + n d ) O ( t m c n + t m n d )

6. Experiments Simulation and Analysis

6.1. Algorithm Testing and Analysis

To validate the performance of the PAGWO algorithm proposed in this study, we systematically selected a diverse set of benchmark functions commonly employed in optimization, including different problem types (as shown in Table 1), to ensure comprehensive evaluation. f 1 f 6  are single-peak functions that test the algorithm’s essential optimization ability and convergence speed;  f 7 f 11 are multimodal functions to evaluate the algorithm’s global search capability, particularly its ability to find the global optimum in complex search spaces; f 12 and f 13 are low-dimensional fixed functions to ensure that the algorithm can balance global and local search; f 14 and f 15  are composite functions used to assess the robustness of algorithms in handling complex, multimodal problems.
Subsequently, the algorithms are tested independently. The selected algorithms and parameters, as shown in Table 2, are tested using a population size of 50 and 1000 iterations. To ensure the validity of the test and maintain objectivity, each algorithm is independently tested 30 times, using the average, standard deviation, and optimal value as evaluation metrics. The test results are shown in Table 3.
The proposed PAGWO algorithm demonstrates superior convergence accuracy compared to conventional algorithms in single-peak functions f 1 f 6 while maintaining a low standard deviation, indicating its excellent fundamental optimization capability and rapid convergence speed. Notably, in function f 5 with introduced random noise, PAGWO exhibits robust performance, further verifying its capability to handle interference environments. For multimodal functions, PAGWO not only successfully attains the global optimum of 0 in both f 7 and f 9 but also outperforms other algorithms on f 8 , f 10 , and f 11 , thereby confirming its robust global search capability and effective mechanism for escaping local optima. In low-dimensional fixed functions, PAGWO outperforms baseline methods in f 12 , and the average solution quality in f 13 also reaches the theoretical optimal value, demonstrating its consistent superiority in high-dimensional scenarios. In the combined functions f 14 and f 15 , the average performance of PAGWO surpasses that of the other algorithms, demonstrating that it is more robust when tackling complex, multimodal optimization problems. These experimental results collectively validate PAGWO’s state-of-the-art performance across diverse benchmarks. The algorithmic improvements can be specifically attributed to four key strategies: enhanced initial exploration through piecewise chaotic mapping, balanced global–local search dynamics via a nonlinear convergence factor, accelerated convergence through optimized position updating, and robustness improvement via EPD for local optima avoidance.

6.2. Experimental Content of Path Planning

To evaluate the effectiveness of the PAGWO-IDWA algorithm, the following three sets of experiments are designed in this paper:
  • Global path planning experiments: the GA, the SCA, the PSO, and the GWO algorithm are used as references in three raster maps of varying complexity to verify the performance of the PAGWO algorithm in global path planning.
  • PAGWO-IDWA and DWA Comparison Experiment: in the DWA, two enhancements are based on PAGWO, so the improved version can essentially be regarded as PAGWO-IDWA. To evaluate the performance of the improved algorithm relative to the original DWA, we conducted two sub-experiments. The first validates that using PAGWO-generated waypoints significantly enhances DWA’s global path planning capability, while the second demonstrates that employing PAGWO-generated waypoints as orientation angles improves its path efficiency. The dynamic obstacle avoidance performance of DWA will be validated in a subsequent experiment;
  • Dynamic obstacle avoidance experiment: dynamic obstacles are added to the map to assess the PAGWO-IDWA algorithm’s obstacle avoidance performance in dynamic environments and evaluate its safety and generalizability. Figure 5 shows the three raster maps used for testing in this paper. The environment complexity increases with the number of obstacles. Figure 5a shows a simple 20 m × 20 m map, Figure 5b shows a moderately complex 30 m × 30 m map, and Figure 5c shows a highly complex map of 30 m × 30 m.
The experimental hardware consisted of a laptop with an AMD R9-7940H processor at 4 GHz (AMD, Santa Clara, CA, USA), 16 GB of RAM, running Windows 11 64-bit with MATLAB R2021b software.

6.3. Global Path Planning Experiment

To validate the efficacy of the PAGWO algorithm, the mobile robot is simplified as a point on a two-dimensional network and compared with four algorithms, GA, SCA, PSO, and GWO, in the three simulation maps described above. The black squares in the figure represent obstacles, and the red dots and squares indicate the start and goal positions, respectively (the start is located at the bottom-left corner, and the goal is at the top-right corner). The evaluation metrics are path length, number of turns, and running time. In the experiment, the population size for all algorithms is set to 50, and the number of iterations is set to 1000.
The simulation results for map 1 are presented in Figure 6, which illustrates the paths generated by each algorithm and their convergence behaviors. Among the five algorithms compared—namely, GA, SCA, PSO, GWO, and PAGWO, PAGWO produces the shortest path with the fewest turns, indicating that PAGWO approaches the target location faster while avoiding static obstacles. This is due to incorporating strategies such as Piecewise chaotic mapping and nonlinear convergence factors, which make PAGWO more effective in path planning algorithms. Specifically, in Figure 6a, GA exhibits redundant path segments in the early stage of the route. In Figure 6b, SCA generates the highest number of path deviations. In Figure 6c,d, PSO and GWO perform well, demonstrating fewer deviations and shorter path lengths. However, further improvements are needed to achieve optimality. In Figure 6f, PAGWO is observed to converge faster toward the minimum, quickly finding the optimal solution during the iterative process, indicating that it outperforms other algorithms in global planning and convergence efficiency.
For further verification of the performance of the PAGWO algorithm in this study, the second set of experiments was conducted in simulation environment 2. Compared with the first set of experimental maps, the obstacle distribution in the second set is more complex, demanding higher path planning capabilities from the algorithm. The comparison of path planning results is shown in Figure 7. For example, both GA and PSO exhibited moderate performance by navigating into the U-shaped obstacle twice in succession. However, SCA and GWO performed poorly in this path planning, generating paths with a large number of redundant segments. In contrast, PAGWO not only avoids the U-shaped obstacles but also performs exceptionally well in terms of path smoothness, with a notable reduction in the number of turns, indicating its ability to effectively avoid redundant steering and improve the smoothness of the path. From Figure 7f, PAGWO is shown to be the most effective in both convergence accuracy and speed, having converged after 200 iterations, outperforming other algorithms. The computational efficiency and path planning stability of PAGWO in complex environments are further verified.
To further verify the generalizability of the PAGWO algorithm, path planning simulation experiments were performed in simulation environment 3, which has the most complex obstacle distribution. The results of the experiment are presented in Figure 8. Both GA and SCA exhibit significant path redundancy in the early stages of their routes, characterized by unnecessary detours into the interior U-shaped obstacles. Additionally, PSO becomes trapped in a local optimum, resulting in a suboptimal path, while GWO produces a path with multiple turns in its middle section, compromising overall path quality. In contrast, the PAGWO algorithm generates a path with significantly fewer turns and a smoother trajectory, demonstrating a practical improvement in path smoothing and efficiency when handling complex obstacle distributions. The convergence curve shows that PAGWO converges quickly within 200 iterations and significantly outperforms other algorithms in terms of both convergence speed and stability. The other algorithms exhibit slower convergence speeds and higher final stabilization values, further indicating that PAGWO excels in global optimization.
In summary, across three simulation environments with varying obstacle distributions and map sizes, PAGWO outperforms other algorithms in terms of path length, number of turns, and other metrics. To verify the robustness of PAGWO, the proposed algorithm was run 30 times in three different environments and was compared with other algorithms. The evaluation metrics are path length, number of turns, and running time, as shown in Table 4. In the three simulation map environments, the PAGWO algorithm shows significant advantages in path optimization. In terms of path length, the average shortest path lengths for PAGWO in the three maps are 28.21m, 44.30m, and 46.82m, respectively, outperforming other algorithms. In terms of the number of turns, PAGWO also performs better. In map 3, which is the most complex in terms of obstacles, the average number of turns is reduced by 34.62%, 34.97%, 34.15%, and 38.53% compared to GWO, GA, SCA, and PSO, respectively. In terms of running time, PAGWO performs exceptionally well in maps 2 and 3, demonstrating its higher computational efficiency in complex environments. In summary, the PAGWO algorithm not only improves the global optimization performance of the paths but also achieves a good balance between path smoothness and computational efficiency, making it an effective method for solving path planning problems in complex environments.

6.4. PAGWO-IDWA and DWA Comparison Experiment

To evaluate the impact of incorporating PAGWO-generated global waypoints into DWA, the first experiment was designed with the mobile robot’s starting point at (1, 1) and its endpoint at (10, 10). In the simulation environment, the triangle denotes the start point, the circle denotes the goal, the asterisks represent local goal points generated by PAGWO, and the green area indicates the detection range of the DWA algorithm. The experimental results are presented in Figure 9. In Figure 9a, the robot is trapped in the local optimum and cannot reach the end point successfully, while in Figure 9b, the robot is guided to the endpoint by the global path of PAGWO and successfully arrives at the endpoint. This method effectively reduces the limitation imposed by a single global goal point on path planning, allowing the robot to complete the path planning task successfully.
To evaluate the effect of the adaptive facing angle on DWA, a second set of experiments was conducted. In these experiments, the mobile robot’s starting point was set at (1, 1) and the endpoint at (20, 20). Path planning was performed using both the DWA algorithm and the PAGWO-IDWA algorithm on the same raster map, and the results are shown in Figure 10. In Figure 10a, the initial facing angle of DWA is directed toward the endpoint, causing the robot to deviate from the optimal path at the outset and resulting in redundant path segments. Furthermore, after encountering an obstacle, DWA continues to follow the wall because its facing angle remains fixed toward the endpoint, lacking adaptive guidance. In contrast, Figure 10b shows that during the initial stage of path planning with PAGWO-IDWA, the robot’s facing angle is oriented toward the PAGWO-generated path point. Under the correct guidance of this path point, the robot follows the optimal path to the endpoint, thereby verifying that the improved algorithm outperforms DWA in path optimization. The data for these experiments are presented in Table 5.

6.5. Dynamic Obstacle Avoidance Experiment

To validate the dynamic obstacle avoidance capability of the PAGWO-IDWA algorithm, a red dynamic obstacle is introduced into the static map 1. The dynamic obstacle starts at (5, 4) and ends at (2, 2), while the mobile robot starts at (1, 1) and aims to reach (20, 20). Figure 11a shows the globally optimal path planned by PAGWO, which maintains the shortest distance from start to end and avoids static obstacles, providing a basis for subsequent local planning. In Figure 11b, the robot starts from the initial position and moves along the global path toward the local goal point. Upon encountering the dynamic obstacle, it adjusts its direction to the right and accelerates to avoid it. After safely bypassing the obstacle, the robot decelerates and readjusts its angle to the left, resuming its movement toward the local goal point. Finally, as shown in Figure 11c, the robot successfully reaches the endpoint, guided by the local goal points.
To further validate the path planning capability of the PAGWO-IDWA algorithm in dynamic environments, this study introduces dynamic obstacles approaching from the side in simulation map 2. The dynamic obstacle’s starting point is (6, 6) and the endpoint is (6, 1), while the mobile robot’s starting point is (1, 1) and the endpoint is (30, 30). The dynamic obstacle avoidance process is shown in Figure 12. Figure 12a shows the optimal path found by the PAGWO algorithm in simulation map 2. In Figure 12b, the mobile robot detects the dynamic obstacle approaching from the side and stops to avoid the collision. In Figure 12c, after the dynamic obstacle leaves the robot’s detection range and safety is confirmed, the robot continues toward the local target point. Finally, in Figure 12d, the robot returns to the global optimal path and successfully completes the path planning task. The experimental results show that in more complex map environments, when facing dynamic obstacles approaching from the side, the robot can safely stop during local planning, continue with the path planning task after the obstacle passes, and maintain stability of the path planning, which demonstrates the adaptive ability of PAGWO-IDWA.
To further validate the generalization capability of PAGWO-IDWA, two dynamic obstacles are added to map 3. The first dynamic obstacle has start and end points at (7, 1) and (7, 5), respectively, while the second dynamic obstacle starts at (13, 9) and ends at (7, 4). The mobile robot starts at (1, 1) and ends at (30, 30). The experimental results are shown in Figure 13. In Figure 13a, the global optimal path planned by the PAGWO algorithm is presented, where the mobile robot safely avoids static obstacles and finds the shortest path. In Figure 13b, the robot approaches the first dynamic obstacle from the side and decelerates to avoid it. In Figure 13c, after confirming the obstacle has passed, the robot returns to the global path and continues forward. In Figure 13d, the robot encounters the second dynamic obstacle, and in Figure 13e, it adjusts its direction and safely avoids it. Finally, the trajectory in Figure 13f shows the robot successfully reaching the endpoint, avoiding two successive dynamic obstacles under the guidance of the PAGWO-IDWA algorithm, thus completing the complex dynamic path obstacle avoidance task. The experimental results demonstrate that PAGWO-IDWA efficiently avoids dynamic obstacles in complex environments, further validating the algorithm’s generalization capability and practicality.
To further investigate the impact of additional obstacles on dynamic obstacle avoidance performance, we introduced five dynamic obstacles in map 2. Specifically, the first obstacle has start and end points at (6, 6) and (6, 1), the second at (7, 1) and (5, 7), the third at (14, 7) and (7, 5), the fourth at (15, 7) and (8, 5), and the fifth at (26, 23) and (17, 13). The mobile robot’s start and end points are (1, 1) and (30, 30), respectively. The experimental results are presented in Figure 14, where Figure 14a shows the globally optimal path identified by the PAGWO algorithm.
In Figure 14b, the mobile robot begins local path planning and detects two dynamic obstacles at (3, 2), approaching from the left and right, respectively. As a result, the robot halts and performs obstacle avoidance. In Figure 14c, after ensuring safety, the robot resumes movement. After a short distance, it detects two oncoming dynamic obstacles. In Figure 14d, the robot is seen avoiding the dynamic obstacles by skirting to the right and quickly returning to its original global path. Finally, in Figure 14e, the mobile robot encounters the last dynamic obstacle, evading it to the left. As shown in Figure 14f, the robot successfully avoids all dynamic obstacles and reaches the endpoint along the preferred path.
The current experimental results clearly demonstrate that our improved PAGWO-IDWA algorithm significantly enhances obstacle avoidance compared to traditional methods, effectively handling scenarios where dynamic obstacles appear consecutively. This reactive strategy ensures safe navigation and validates the algorithm’s practical utility in complex dynamic environments. However, we also recognize that when multiple dynamic obstacles simultaneously enter the detection range, the current approach may encounter processing limitations. Future work will address these challenges by incorporating predictive models—such as Reinforcement Learning—to anticipate obstacle trajectories and further improve avoidance performance in high-density dynamic settings.

7. Conclusions

This paper proposes a new algorithm, PAGWO-IDWA, to solve the path planning problem. First, to improve the quality of the initial population, the Piecewise chaotic mapping is used to initialize the Grey Wolf population. Second, a nonlinear convergence factor is introduced to balance global and local search capabilities. Then, the EPD strategy is applied, and dynamic weights are introduced, enhancing the algorithm’s ability to escape local optima and accelerate the convergence speed. Finally, combining PAGWO with IDWA addresses the issues of path smoothness and dynamic obstacle avoidance in the PAGWO algorithm.
The algorithm’s performance is verified through both static and dynamic obstacle avoidance experiments. PAGWO outperforms GA, SCA, PSO, and GWO in path planning performance across three static maps with varying complexity. Compared with the standard GWO, the improved PAGWO reduces the path length, number of turns, and running time by 9.39%, 14.08%, and 13.81%, respectively, in map 1. In map 2, the improvements are 10.61%, 50.78%, and 38.55%, respectively, and in map 3, they are 8.73%, 34.62%, and 38.57%. Dynamic obstacle avoidance experiments further demonstrate that PAGWO-IDWA generates efficient, smooth paths in complex dynamic environments, safely bypassing dynamic obstacles or waiting for them to pass, according to the obstacle avoidance strategy. This progression verifies its strong global path planning and dynamic obstacle avoidance capabilities.
While our current conflict avoidance strategy has enhanced the mobile robot’s obstacle avoidance performance compared to the original approach, limitations still remain. In the future, we plan to explore predictive techniques, such as Reinforcement Learning, to allow the robot to anticipate obstacle trajectories and proactively adjust its path. We expect that these improvements will further enhance both the safety and efficiency of path planning in highly dynamic environments. Additionally, our simulations presently model the mobile robot as a point, with a fitness function that primarily minimizes path length while applying a basic obstacle-avoidance penalty. However, practical applications necessitate a more comprehensive consideration of factors such as the robot’s physical dimensions, obstacle sizes, and necessary safety margins to account for localization errors. In subsequent studies, we intend to integrate these real-world constraints into our optimization framework. By combining predictive techniques with a more realistic model, we aim to further improve the robustness and applicability of the PAGWO-IDWA algorithm for mobile robot path planning.

Author Contributions

Conceptualization, W.C. and L.L.; methodology, W.C. and L.L.; software, W.C., L.L. and L.Z.; validation, W.C., L.L., L.Z., Z.L., J.C. and D.H.; formal analysis, W.C. and L.L.; investigation, W.C. and L.L.; resources, W.C. and L.L.; data curation, W.C., L.L., L.Z., Z.L., J.C. and D.H.; writing—original draft, W.C. and L.L.; writing—review and editing, W.C., L.L., L.Z. and Z.L.; visualization, W.C. and L.L.; supervision, W.C. and L.L.; project administration, W.C. and L.L. All authors have read and agreed to the published version of the manuscript.

Funding

The research in this paper was funded by the Fujian University Industry–University- Research Joint Innovation Project (2022H6005) and the Fujian University Industry–University Cooperation Science and Technology Program (2022N5020).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to privacy.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Xu, X.; Zeng, J.Z.; Zhao, Y.; Lü, X.S. Research on global path planning algorithm for mobile robots based on improved A. Expert Syst. Appl. 2024, 243, 122922. [Google Scholar] [CrossRef]
  2. Ullah, I.; Adhikari, D.; Khan, H.; Anwar, M.S.; Ahmad, S.; Bai, X.S. Mobile robot localization: Current challenges and future prospective. Comput. Sci. Rev. 2024, 53, 100651. [Google Scholar] [CrossRef]
  3. Wang, C.; Cheng, C.S.; Yang, D.A.Y.; Pan, G.; Zhang, F.H. Path Planning in Localization Uncertaining Environment Based on Dijkstra Method. Front. Neurorobotics 2022, 16, 821991. [Google Scholar] [CrossRef] [PubMed]
  4. Costa, L.D.; Tonidandel, F. DVG plus A* and RRT Path-Planners: A Comparison in a Highly Dynamic Environment. J. Intell. Robot. Syst. 2021, 101, 58. [Google Scholar] [CrossRef]
  5. Wang, X.D.; Luo, X.; Han, B.L.; Chen, Y.H.; Liang, G.H.; Zheng, K.L. Collision-Free Path Planning Method for Robots Based on an Improved Rapidly-Exploring Random Tree Algorithm. Appl. Sci. 2020, 10, 1381. [Google Scholar] [CrossRef]
  6. Cai, B.Q.; Ye, Z.K.; Chen, S.W.; Liang, X. Reducing Safety Risks in Construction Tower Crane Operations: A Dynamic Path Planning Model. Appl. Sci. 2024, 14, 10599. [Google Scholar] [CrossRef]
  7. Malone, N.; Chiang, H.T.; Lesser, K.; Oishi, M.; Tapia, L. Hybrid Dynamic Moving Obstacle Avoidance Using a Stochastic Reachable Set-Based Potential Field. IEEE Trans. Robot. 2017, 33, 1124–1138. [Google Scholar] [CrossRef]
  8. Feng, L.C.; Katupitiya, J. UAV-based persistent full area coverage with dynamic priorities. Robot. Auton. Syst. 2022, 157, 104244. [Google Scholar] [CrossRef]
  9. Lathrop, P.; Boardman, B.; Martínez, S. Distributionally Safe Path Planning: Wasserstein Safe RRT. IEEE Robot. Autom. Lett. 2022, 7, 430–437. [Google Scholar] [CrossRef]
  10. Jiang, Z.Z.; Wang, W.L.; Sun, W.Q.; Da, L.L. Path Planning Method for Mobile Robot Based on a Hybrid Algorithm. J. Intell. Robot. Syst. 2023, 109, 47. [Google Scholar] [CrossRef]
  11. Ding, M.; Zheng, X.J.; Liu, L.X.; Guo, J.; Guo, Y. Collision-free path planning for cable-driven continuum robot based on improved artificial potential field. Robotica 2024, 42, 1350–1367. [Google Scholar] [CrossRef]
  12. Gong, X.; Gao, Y.F.; Wang, F.B.; Zhu, D.R.; Zhao, W.S.; Wang, F.; Liu, Y.L. A Local Path Planning Algorithm for Robots Based on Improved DWA. Electronics 2024, 13, 2965. [Google Scholar] [CrossRef]
  13. Li, G.X.; Liu, C.; Wu, L.; Xiao, W.S. A mixing algorithm of ACO and ABC for solving path planning of mobile robot. Appl. Soft Comput. 2023, 148, 110868. [Google Scholar] [CrossRef]
  14. Xu, H.; Niu, Z.J.; Jiang, B.; Zhang, Y.H.; Chen, S.J.; Li, Z.Q.; Gao, M.K.; Zhu, M.K. ERRT-GA: Expert Genetic Algorithm with Rapidly Exploring Random Tree Initialization for Multi-UAV Path Planning. Drones 2024, 8, 367. [Google Scholar] [CrossRef]
  15. Das, P.K. Hybridization of Kidney-Inspired and Sine-Cosine Algorithm for Multi-robot Path Planning. Arab. J. Sci. Eng. 2020, 45, 2883–2900. [Google Scholar] [CrossRef]
  16. Ankita; Sahana, S.K. Ba-PSO: A Balanced PSO to solve multi-objective grid scheduling problem. Appl. Intell. 2022, 52, 4015–4027. [Google Scholar] [CrossRef]
  17. Wang, Y.Q.; Zhu, J.; Huang, H.P.; Xiao, F. Bi-Objective Ant Colony Optimization for Trajectory Planning and Task Offloading in UAV-Assisted MEC Systems. IEEE Trans. Mob. Comput. 2024, 23, 12360–12377. [Google Scholar] [CrossRef]
  18. Akay, R.; Yildirim, M.Y. Multi-strategy and self-adaptive differential sine-cosine algorithm for multi-robot path planning. Expert Syst. Appl. 2023, 232, 120849. [Google Scholar] [CrossRef]
  19. Xu, L.; Cao, M.Y.; Song, B.Y. A new approach to smooth path planning of mobile robot based on quartic Bezier transition curve and improved PSO algorithm. Neurocomputing 2022, 473, 98–106. [Google Scholar] [CrossRef]
  20. Pan, Y.W.; Yang, Y.W.; Li, W.Z. A Deep Learning Trained by Genetic Algorithm to Improve the Efficiency of Path Planning for Data Collection With Multi-UAV. IEEE Access 2021, 9, 7994–8005. [Google Scholar] [CrossRef]
  21. Li, B.L.; Sun, F.Y.; Lian, Y.F.; Xu, J.Q.; Zhou, J.C. A Variational Mode Decomposition-Grey Wolf Optimizer-Gated Recurrent Unit Model for Forecasting Water Quality Parameters. Appl. Sci. 2024, 14, 6111. [Google Scholar] [CrossRef]
  22. Yu, X.B.; Jiang, N.J.; Wang, X.M.; Li, M.Y. A hybrid algorithm based on grey wolf optimizer and differential evolution for UAV path planning. Expert Syst. Appl. 2023, 215, 119327. [Google Scholar] [CrossRef]
  23. Ding, Q.; Xu, X.L. Improved GWO Algorithm for UAV Path Planning on Crop Pest Monitoring. Int. J. Interact. Multi. 2022, 7, 30–39. [Google Scholar] [CrossRef]
  24. Liu, L.L.; Li, L.H.; Nian, H.; Lu, Y.X.; Zhao, H.; Chen, Y. Enhanced Grey Wolf Optimization Algorithm for Mobile Robot Path Planning. Electronics 2023, 12, 4026. [Google Scholar] [CrossRef]
  25. Jiang, W.; Lyu, Y.X.; Li, Y.F.; Guo, Y.C.; Zhang, W.G. UAV path planning and collision avoidance in 3D environments based on POMPD and improved grey wolf optimizer. Aerosp. Sci. Technol. 2022, 121, 107314. [Google Scholar] [CrossRef]
  26. Zhang, W.; Zhang, S.; Wu, F.Y.; Wang, Y.G. Path Planning of UAV Based on Improved Adaptive Grey Wolf Optimization Algorithm. Ieee Access 2021, 9, 89400–89411. [Google Scholar] [CrossRef]
  27. Qu, C.Z.; Gai, W.D.; Zhang, J.; Zhong, M.Y. A novel hybrid grey wolf optimizer algorithm for unmanned aerial vehicle (UAV) path planning. Knowl.-Based Syst. 2020, 194, 105530. [Google Scholar] [CrossRef]
  28. Zhang, T.; Hu, H.D.; Liang, Y.F.; Liu, X.F.; Rong, Y.M.; Wu, C.Y.; Zhang, G.J.; Huang, Y. A novel path planning approach to minimize machining time in laser machining of irregular micro-holes using adaptive discrete grey wolf optimizer. Comput. Ind. Eng. 2024, 193, 110320. [Google Scholar] [CrossRef]
  29. Liu, X.Y.; Li, G.Q.; Yang, H.Y.; Zhang, N.R.; Wang, L.F.; Shao, P. Agricultural UAV trajectory planning by incorporating multi-mechanism improved grey wolf optimization algorithm. Expert Syst. Appl. 2023, 233, 120946. [Google Scholar] [CrossRef]
  30. Wang, X.F.; Zhao, H.; Han, T.; Zhou, H.; Li, C. A grey wolf optimizer using Gaussian estimation of distribution and its application in the multi-UAV multi-target urban tracking problem. Appl. Soft Comput. 2019, 78, 240–260. [Google Scholar] [CrossRef]
  31. Nasir, M.; Sadollah, A.; Mirjalili, S.; Mansouri, S.A.; Safaraliev, M.; Jordehi, A.R. A Comprehensive Review on Applications of Grey Wolf Optimizer in Energy Systems. Arch. Comput. Method Eng. 2024, 1–41. [Google Scholar] [CrossRef]
  32. Zhang, M.; Wang, J.Y.; Xiong, X.; Chen, Z.H.; Gong, Y.; Gao, S.S.; Zhang, W.F. The Strain Distribution Reconstructions Using GWO Algorithm and Verification by FBG Experimental Data. Appl. Sci. 2023, 13, 1259. [Google Scholar] [CrossRef]
  33. Jiang, Z.L.; Yang, C.F.; Yue, H.B. Multi-Objective Optimization of Steel Pipe Pile Cofferdam Construction Based on Improved Sparrow Search Algorithm. Appl. Sci. 2024, 14, 10407. [Google Scholar] [CrossRef]
  34. Seyyedabbasi, A.; Kiani, F. I-GWO and Ex-GWO: Improved algorithms of the Grey Wolf Optimizer to solve global optimization problems. Eng. Comput. 2021, 37, 509–532. [Google Scholar] [CrossRef]
  35. Saremi, S.; Mirjalili, S.Z.; Mirjalili, S.M. Evolutionary population dynamics and grey wolf optimizer. Neural Comput. Appl. 2015, 26, 1257–1263. [Google Scholar] [CrossRef]
  36. Liu, Y.J.; Wang, C.; Wu, H.; Wei, Y.L. Mobile Robot Path Planning Based on Kinematically Constrained A-Star Algorithm and DWA Fusion Algorithm. Mathematics 2023, 11, 4552. [Google Scholar] [CrossRef]
Figure 1. The improved nonlinear convergence factor a .
Figure 1. The improved nonlinear convergence factor a .
Applsci 15 03999 g001
Figure 2. Robot Obstacle Avoidance Strategies. (a) The mobile robot’s angle detection range; (b) the mobile robot accelerates to the left to bypass obstacle; (c) the mobile robot accelerates to the right to bypass obstacle; (d) non-head-on conflict.
Figure 2. Robot Obstacle Avoidance Strategies. (a) The mobile robot’s angle detection range; (b) the mobile robot accelerates to the left to bypass obstacle; (c) the mobile robot accelerates to the right to bypass obstacle; (d) non-head-on conflict.
Applsci 15 03999 g002
Figure 3. Overall Framework Flowchart.
Figure 3. Overall Framework Flowchart.
Applsci 15 03999 g003
Figure 4. The PAGWO-IDWA algorithm.
Figure 4. The PAGWO-IDWA algorithm.
Applsci 15 03999 g004
Figure 5. Simulation map. (a) Simulation map 1; (b) simulation map 2; (c) simulation map 3.
Figure 5. Simulation map. (a) Simulation map 1; (b) simulation map 2; (c) simulation map 3.
Applsci 15 03999 g005
Figure 6. Path Planning Comparison of Different Algorithms in Simulation Map 1. (a) GA; (b) SCA; (c) PSO; (d) GWO; (e) PAGWO; (f) convergence curve comparison.
Figure 6. Path Planning Comparison of Different Algorithms in Simulation Map 1. (a) GA; (b) SCA; (c) PSO; (d) GWO; (e) PAGWO; (f) convergence curve comparison.
Applsci 15 03999 g006aApplsci 15 03999 g006b
Figure 7. Path Planning Comparison of Different Algorithms in Simulation Map 2. (a) GA; (b) SCA; (c) PSO; (d) GWO; (e) PAGWO; (f) convergence curve comparison.
Figure 7. Path Planning Comparison of Different Algorithms in Simulation Map 2. (a) GA; (b) SCA; (c) PSO; (d) GWO; (e) PAGWO; (f) convergence curve comparison.
Applsci 15 03999 g007
Figure 8. Path Planning Comparison of Different Algorithms in Simulation Map 3. (a) GA; (b) SCA; (c) PSO; (d) GWO; (e) PAGWO; (f) convergence curve comparison.
Figure 8. Path Planning Comparison of Different Algorithms in Simulation Map 3. (a) GA; (b) SCA; (c) PSO; (d) GWO; (e) PAGWO; (f) convergence curve comparison.
Applsci 15 03999 g008
Figure 9. Comparison experiment 1. (a) DWA; (b) PAGWO-IDWA.
Figure 9. Comparison experiment 1. (a) DWA; (b) PAGWO-IDWA.
Applsci 15 03999 g009
Figure 10. Comparison experiment 2. (a) DWA; (b) PAGWO-IDWA.
Figure 10. Comparison experiment 2. (a) DWA; (b) PAGWO-IDWA.
Applsci 15 03999 g010
Figure 11. Dynamic Obstacle Avoidance Experiment 1. (a) Global optimal path; (b) the robot is bypassing to the right; (c) the robot reaches the goal.
Figure 11. Dynamic Obstacle Avoidance Experiment 1. (a) Global optimal path; (b) the robot is bypassing to the right; (c) the robot reaches the goal.
Applsci 15 03999 g011
Figure 12. Dynamic Obstacle Avoidance Experiment 2. (a) Global optimal path; (b) the robot stops to avoid the obstacle; (c) the robot proceeds toward the goal; (d) the robot reaches the goal.
Figure 12. Dynamic Obstacle Avoidance Experiment 2. (a) Global optimal path; (b) the robot stops to avoid the obstacle; (c) the robot proceeds toward the goal; (d) the robot reaches the goal.
Applsci 15 03999 g012
Figure 13. Dynamic Obstacle Avoidance Experiment 3. (a) Global optimal path; (b) the robot stops to avoid the obstacle; (c) the robot proceeds toward the goal; (d) the robot approaches the second obstacle; (e) the robot is bypassing to the right; (f) the robot reaches the goal.
Figure 13. Dynamic Obstacle Avoidance Experiment 3. (a) Global optimal path; (b) the robot stops to avoid the obstacle; (c) the robot proceeds toward the goal; (d) the robot approaches the second obstacle; (e) the robot is bypassing to the right; (f) the robot reaches the goal.
Applsci 15 03999 g013
Figure 14. Dynamic Obstacle Avoidance Experiment 4. (a) Global optimal path; (b) the robot stops to avoid the obstacles; (c) the robot proceeds toward the goal; (d) the robot is bypassing to the right; (e) the robot is bypassing to the left; (f) the robot reaches the goal.
Figure 14. Dynamic Obstacle Avoidance Experiment 4. (a) Global optimal path; (b) the robot stops to avoid the obstacles; (c) the robot proceeds toward the goal; (d) the robot is bypassing to the right; (e) the robot is bypassing to the left; (f) the robot reaches the goal.
Applsci 15 03999 g014
Table 1. International standard test function.
Table 1. International standard test function.
FFunctionDimRangeBest
f 1 Sphere Model30/100[−100, 100]0
f 2 Schwefel’s problem 2.2230/100[−10, 10]0
f 3 Schwefel’s problem 1.230/100[−10, 10]0
f 4 Schwefel’s problem 2.2130/100[−100, 100]0
f 5 Quartic Function30/100[−1.28, 1.28]0
f 6 Shifted Zakharov Function10[−100, 100]300
f 7 Generalized Rastrigin’s Function30/100[−5.12, 5.12]0
f 8 Ackley’s Function30/100[−32, 32]0
f 9 Generalized Griewank Function30/100[−600, 600]0
f 10 Schaffer F7 Function10[−100, 100]600
f 11 Shifted Levy Function10[−100, 100]900
f 12 Kowalik’s Function4[−5, 5]0.0003
f 13 Goldstein-Price Function2[−2, 2]3
f 14 Composition Function 210[−100, 100]2400
f 15 Composition Function 710[−100, 100]2700
Table 2. Algorithmic parameter.
Table 2. Algorithmic parameter.
AlgorithmsGASCAPSOGWOPAGWO
Parameter
configuration
p c = 0.8 ; p m = 0.05 ; P o p = 50 ; t m = 1000 a = 2 ; P o p = 50 ; t m = 1000 w = 0.8 ; c 1 = 1.5 ; c 2 = 1.5 ; P o p = 50 ; t m = 1000 P o p = 50 ; t m = 1000 p = 0.3 ; n = 600 ; P o p = 50 ; t m = 1000
Table 3. Comparison of different algorithms.
Table 3. Comparison of different algorithms.
FunctionMetricGASCAPSOGWOPAGWO
Mean 4.52 × 10 3 4.19 × 10 3 4.46 × 10 6 9.31 × 10 71 4.22 × 10 156
f 1 Std 3.47 × 10 3 9.05 × 10 3 4.27 × 10 6 1.57 × 10 70 2.31 × 10 155
Best 4.58 × 10 2 6.76 × 10 7 3.19 × 10 7 9.39 × 10 73 3.75 × 10 165
Mean 3.62 × 10 1 5.70 × 10 6 1.25 × 10 4 4.71 × 10 41 5.57 × 10 90
f 2 Std 1.14 × 10 1 1.42 × 10 5 7.70 × 10 5 4.97 × 10 41 1.80 × 10 89
Best 1.61 × 10 1 3.34 × 10 8 2.53 × 10 5 4.09 × 10 42 1.39 × 10 92
Mean 3.76 × 10 4 2.24 × 10 3 4.46 × 10 2 1.12 × 10 20 2.10 × 10 51
f 3 Std 1.19 × 10 4 1.89 × 10 3 9.19 × 10 2 3.09 × 10 20 9.83 × 10 51
Best 1.20 × 10 4 1.24 × 10 2 1.11 × 10 2 9.16 × 10 26 2.45 × 10 62
Mean 5.56 × 10 1 1.23 × 10 1 3.33 × 10 0 2.12 × 10 17 3.41 × 10 50
f 4 Std 9.78 × 10 0 7.05 × 10 0 7.41 × 10 1 2.72 × 10 17 1.01 × 10 49
Best 4.25 × 10 1 1.15 × 10 0 2.16 × 10 0 3.03 × 10 19 6.97 × 10 54
Mean 1.25 × 10 0 1.55 × 10 2 1.71 × 10 2 5.13 × 10 4 1.91 × 10 4
f 5 Std 1.31 × 10 0 8.88 × 10 3 6.14 × 10 3 2.49 × 10 4 1.15 × 10 4
Best 1.21 × 10 1 1.17 × 10 3 6.91 × 10 3 1.55 × 10 4 1.69 × 10 5
Mean 9.93 × 10 12 1.22 × 10 3 3.00 × 10 2 1.49 × 10 3 3.00 × 10 2
f 6 Std 2.00 × 10 3 6.35 × 10 2 1.69 × 10 7 1.53 × 10 3 5.31 × 10 2
Best 9.93 × 10 12 4.36 × 10 2 3.00 × 10 2 3.27 × 10 2 3.00 × 10 2
Mean 1.45 × 10 2 2.38 × 10 1 3.76 × 10 1 1.91 × 10 1 0
f 7 Std 4.53 × 10 1 3.74 × 10 1 1.12 × 10 1 1.04 × 10 0 0
Best 7.32 × 10 1 1.68 × 10 7 1.85 × 10 1 0 0
Mean 1.90 × 10 1 1.13 × 10 1 8.29 × 10 4 1.36 × 10 14 5.39 × 10 15
f 8 Std 7.85 × 10 1 9.62 × 10 0 6.98 × 10 4 2.22 × 10 15 1.60 × 10 15
Best 1.67 × 10 1 6.41 × 10 6 1.38 × 10 4 7.99 × 10 15 4.44 × 10 15
Mean 2.93 × 10 1 1.24 × 10 1 1.48 × 10 2 1.65 × 10 3 0
f 9 Std 1.75 × 10 1 1.75 × 10 1 1.84 × 10 2 5.70 × 10 3 0
Best 5.58 × 10 0 1.79 × 10 6 2.02 × 10 6 0 0
Mean 9.34 × 10 2 6.18 × 10 2 6.00 × 10 2 6.01 × 10 2 6.00 × 10 2
f 10 Std 1.15 × 10 13 3.63 × 10 0 5.82 × 10 1 8.64 × 10 1 3.58 × 10 1
Best 9.34 × 10 2 6.12 × 10 2 6.00 × 10 2 6.00 × 10 2 6.00 × 10 2
Mean 2.59 × 10 4 1.01 × 10 3 9.01 × 10 2 9.06 × 10 2 9.00 × 10 2
f 11 Std 0 4.32 × 10 1 2.35 × 10 0 1.15 × 10 1 2.67 × 10 1
Best 2.59 × 10 4 9.51 × 10 2 9.00 × 10 2 9.00 × 10 2 9.00 × 10 2
Mean 4.96 × 10 3 8.62 × 10 4 1.81 × 10 3 3.71 × 10 3 3.56 × 10 4
f 12 Std 6.49 × 10 3 3.98 × 10 4 5.06 × 10 3 7.58 × 10 3 1.68 × 10 4
Best 6.83 × 10 4 3.15 × 10 4 3.07 × 10 4 3.07 × 10 4 3.07 × 10 4
Mean 8.08 × 10 0 3.00 × 10 0 3.00 × 10 0 3.00 × 10 0 3.00 × 10 0
f 13 Std 1.61 × 10 1 1.82 × 10 5 1.39 × 10 15 5.84 × 10 6 7.55 × 10 7
Best 3.00 × 10 0 3.00 × 10 0 3.00 × 10 0 3.00 × 10 0 3.00 × 10 0
Mean 5.56 × 10 3 2.50 × 10 3 2.55 × 10 3 2.55 × 10 3 2.53 × 10 3
f 14 Std 0 4.69 × 10 1 5.68 × 10 1 6.48 × 10 1 5.08 × 10 1
Best 5.56 × 10 3 2.50 × 10 3 2.50 × 10 3 2.50 × 10 3 2.50 × 10 3
Mean 1.27 × 10 4 2.87 × 10 3 2.87 × 10 3 2.87 × 10 3 2.86 × 10 3
f 15 Std 0 1.46 × 10 0 9.55 × 10 0 6.70 × 10 0 1.75 × 10 0
Best 1.27 × 10 4 2.87 × 10 3 2.86 × 10 3 2.86 × 10 3 2.86 × 10 3
Table 4. Comparison of algorithm performance metrics in path planning.
Table 4. Comparison of algorithm performance metrics in path planning.
ENV. Model AlgorithmGASCAPSOGWOPAGWO
Index
ENV. 1Path Length (m)30.6530.8230.7531.1328.21
Number of turns6.506.406.607.106.10
Running time (s)6.395.204.062.392.06
ENV. 2Path Length (m)50.1851.5650.4949.5644.30
Number of turns14.9014.7315.8315.307.53
Running time (s)14.963.106.694.983.06
ENV. 3Path Length (m)52.6852.5753.5651.3046.82
Number of turns18.5018.2719.5718.4012.03
Running time (s)13.490.844.134.202.58
Table 5. PAGWO-IDWA and DWA comparison experiment.
Table 5. PAGWO-IDWA and DWA comparison experiment.
GWO Path Length (m)PAGWO-IDWA Path Length (m)
Comparison experiment 1 Inf14.29
Comparison experiment 234.5227.25
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

Chen, W.; Liu, L.; Zhang, L.; Lin, Z.; Chen, J.; He, D. Path Planning of Mobile Robots with an Improved Grey Wolf Optimizer and Dynamic Window Approach. Appl. Sci. 2025, 15, 3999. https://doi.org/10.3390/app15073999

AMA Style

Chen W, Liu L, Zhang L, Lin Z, Chen J, He D. Path Planning of Mobile Robots with an Improved Grey Wolf Optimizer and Dynamic Window Approach. Applied Sciences. 2025; 15(7):3999. https://doi.org/10.3390/app15073999

Chicago/Turabian Style

Chen, Wenwei, Lisang Liu, Liwei Zhang, Zhihui Lin, Jian Chen, and Dongwei He. 2025. "Path Planning of Mobile Robots with an Improved Grey Wolf Optimizer and Dynamic Window Approach" Applied Sciences 15, no. 7: 3999. https://doi.org/10.3390/app15073999

APA Style

Chen, W., Liu, L., Zhang, L., Lin, Z., Chen, J., & He, D. (2025). Path Planning of Mobile Robots with an Improved Grey Wolf Optimizer and Dynamic Window Approach. Applied Sciences, 15(7), 3999. https://doi.org/10.3390/app15073999

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