Next Article in Journal
Assessment of Allowable Operational Limits for Floating Spar Wind Turbine Installations
Previous Article in Journal
A New Probabilistic Approach to Fault Detection for Tidal Stream Turbine Blades
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Dynamic Obstacle Avoidance Algorithm for Unmanned Vessels Based on FDWA and IBA*—IGWO Fusion

1
School of Electronics and Information Engineering, Nanjing University of Information Science and Technology, Nanjing 210044, China
2
School of Electronics and Information Engineering, Anhui Jianzhu University, Hefei 230601, China
3
Institute of Meteorology and Oceanography, National University of Defense Technology, Changsha 410073, China
4
School of Marine Sciences, Nanjing University of Information Science and Technology, Nanjing 210044, China
*
Author to whom correspondence should be addressed.
J. Mar. Sci. Eng. 2026, 14(8), 722; https://doi.org/10.3390/jmse14080722
Submission received: 14 March 2026 / Revised: 4 April 2026 / Accepted: 7 April 2026 / Published: 14 April 2026
(This article belongs to the Section Ocean Engineering)

Abstract

This paper proposes a dynamic obstacle-avoidance algorithm for unmanned surface vehicles (USVs) that combines a Fuzzy-enhanced Dynamic Window Approach (FDWA) with an Improved Bidirectional A*–Improved Grey Wolf Optimizer (IBA*–IGWO) framework. Firstly, the traditional dynamic window method (DWA) is improved by adopting an initial heading angle optimization strategy to reduce the heading deviation of unmanned vessels during cruising. Secondly, a fuzzy controller is introduced, which can adaptively adjust the weight coefficients in the cost function of the DWA algorithm based on the current position of the unmanned vessel, surrounding environmental information, etc., to improve obstacle avoidance ability and adaptability in different environments. Finally, using the global static cruise route provided by the IBA*–IGWO algorithm, key nodes are selected as local endpoints for the FDWA algorithm to ensure that the unmanned vessel can perform cruise tasks according to the optimal plan during navigation and make dynamic adjustments in case of emergencies. The simulation results demonstrate the feasibility of the proposed method in handling unknown and dynamic obstacles under the current grid-based experimental settings, while enabling the USV to return to the pre-planned global route after local obstacle avoidance. These results provide a basis for further development toward more robust and rule-aware autonomous navigation in realistic maritime environments.

1. Introduction

Unmanned Surface Vehicles (USV), as a critical representative of intelligent marine equipment, have demonstrated remarkable flexibility and environmental adaptability. They are capable of performing high-risk missions that are challenging for traditional manned vessels, while significantly reducing labour and economic costs. As a result, USV has become a strategic focus of competitive development among nations [1,2].
However, the widespread application of USV also introduces new technical challenges, particularly in the complex and dynamic marine environment, where navigation safety remains a critical concern. Maritime obstacles are diverse, including islands, floating ice, submerged objects, and other vessels. Failure to avoid these obstacles promptly and effectively may lead to navigation accidents or mission failure. Therefore, path planning technology is essential to fully leverage the advantages of USV. Rational path planning not only serves as the foundation for efficient mission execution but also directly impacts operational safety and cost-effectiveness. Currently, USV path planning algorithms can be broadly categorized into two main types:
(1): Global Static Path Planning: Prior to mission execution, global static path planning calculates the optimal route from the starting point to the target based on known environmental information (e.g., nautical charts, obstacle distributions), making it suitable for static environments. Common algorithms include: Graph search-based traditional path planning algorithms (e.g., Dijkstra’s algorithm, A* algorithm) [3]; Bio-inspired intelligent path planning algorithms (e.g., Particle Swarm Optimization, Genetic Algorithm, Ant Colony Optimization) [4]; Sampling-based path planning algorithms (e.g., Rapidly exploring Random Tree, Probabilistic Roadmap) [5]. To address the low efficiency and weak robustness of the A* algorithm, Desiderio et al. [6] optimized the OPEN list construction strategy. If a node in the list was found with a lower cost, the higher-cost node was replaced, accelerating the optimal path search. They also introduced an expansion distance, setting a safety margin around obstacles at the grid level, thereby reducing collision risks and the number of nodes searched. Miao et al. [7] proposed an Improved Adaptive Ant Colony Algorithm (IAACO), integrating angle guidance and obstacle repulsion factors into the transition probability. They established adaptive mechanisms for heuristic information and pheromone evaporation coefficients, along with a multi-objective optimization framework to evaluate path length, safety, and smoothness. This improved the convergence speed by over 40%. Jeong et al. [8] developed a Quick RRT* algorithm (Q-RRT), expanding the parent node candidate set to ancestor nodes to reduce path cost and optimizing the rewiring mechanism for faster convergence. Their algorithm outperformed conventional RRT in both convergence speed and path quality. In 2021, Chou et al. [9] introduced the Jellyfish Search (JS) algorithm, a metaheuristic optimization method that models jellyfish foraging behaviour to derive a mathematical framework for optimal solutions.
(2): Local Dynamic Path Planning: During mission execution, this approach dynamically adjusts the path based on real-time sensor data to accommodate unknown obstacles or environmental changes. Representative algorithms include the Dynamic Window Approach (DWA) [10], Velocity Obstacle (VO) [11,12], Model Predictive Control (MPC) [13], Artificial Potential Field (APF) [14]. Xu et al. [15] developed a Parameter Adaptive Dynamic Window Approach (PA-DWA) that optimizes velocity sampling space by incorporating real-time pose information of mobile robots. They established an environmental complexity quantification model and proposed a dual-parameter dynamic weight allocation strategy. This strategy dynamically adjusts velocity weights based on minimum obstacle distances and adaptively modifies heading angle weights according to real-time motion states, achieving balanced optimization between path planning safety and motion efficiency in complex dynamic obstacle scenarios. Huang et al. [16] addressed the issue of restrictive assumptions in ship collision avoidance research by enhancing the Generalized Velocity Obstacles (GVO) algorithm. Their improved GVO-based collision avoidance system demonstrated higher reliability than conventional VO methods, particularly in close-range scenarios, while generating simplified avoidance strategies compliant with collision regulations. Yin et al. [17] proposed a Grey Wolf Potential Field Algorithm (GWPFA) to overcome the slow convergence of Grey Wolf Optimizer (GWO) and path oscillation problems in APF. Their approach introduced a novel characteristic grid mapping method, incorporated dynamic adjustment factors for nonlinear parameter optimization, and established a node priority evaluation mechanism for path modelling. By using nodes planned by the improved GWO as temporary targets for APF, the method effectively resolved unreachable target issues caused by dynamic obstacles. In 2019, Jo et al. [18] presented a hybrid local route generation algorithm that compares the robot’s detected local environment with precise local information from known maps to select optimal paths.
In recent years, significant progress has been made in Unmanned Surface Vehicle (USV) path planning technologies. However, both aforementioned planning approaches (global static and local dynamic) are fundamentally limited to generating straight navigation paths from starting points to destinations. As task complexity increases and application requirements diversify, these singular path planning paradigms have revealed notable limitations [19,20,21]. As exemplified by marine environmental monitoring missions, unmanned surface vehicles (USVs) are required to: (i) follow optimized trajectories to sequentially visit multiple predetermined monitoring waypoints, and (ii) concurrently collect critical marine environmental parameters (e.g., seawater temperature, salinity, and pollutant concentrations). Such complex operational requirements cannot be adequately addressed by conventional single-mode path planning algorithms.
To accomplish multi-waypoint cruise path planning for USVs in diverse environments, this study first developed an Improved Bidirectional A*–Improved Grey Wolf Optimizer (IBA*–IGWO) global path-planning algorithm for static environments. This fusion approach significantly reduced path redundancy, decreasing both cruise path length and turning frequency while enhancing computational efficiency. Furthermore, to address dynamic environment requirements, we incorporated a Fuzzy-controlled Dynamic Window Approach (FDWA) into the IBA*–IGWO framework, enabling effective responses to unexpected obstacles or environmental changes.
Recent studies have shown that effective local route planning for maritime autonomous surface ships should evolve from purely collision-free navigation toward more practically interpretable maneuver generation under realistic maritime operating requirements. In this context, existing studies have provided useful references by addressing collision-risk inference, encounter assessment, and rule-aware local route planning within maritime navigation scenarios [22,23,24]. These developments highlight the growing importance of integrating local planning performance with higher-level navigation logic in autonomous surface-vessel applications.
Against this background, the present study focuses on the coordinated use of a global cruise-path planner and an FDWA-based local reactive planner for multi-waypoint USV missions. The objective is to improve the continuity between long-range cruise guidance and short-range dynamic obstacle avoidance, so that the USV can maintain overall mission efficiency while retaining local adaptability to unexpected environmental changes. From this perspective, the proposed framework is intended to provide a structured basis for global–local path-planning integration, upon which richer decision-making, encounter interpretation, and more practically constrained maneuver generation may be further developed.
The main contributions of this work are summarized as follows:
(1) We propose a dynamic obstacle-avoidance method that integrates the fuzzy logic-controlled Dynamic Window Approach (FDWA) with IBA*–IGWO-based global cruise path planning.
(2) We establish a motion-model-based DWA framework for USVs and incorporate heading-angle adjustment during both the initialization and waypoint-transition stages to reduce orientation errors toward subsequent local targets.
(3) We introduce fuzzy control theory to adaptively tune the weighting coefficients in the DWA evaluation function, thereby improving the environmental adaptability of local path planning.
(4) We develop a hybrid navigation strategy in which key nodes extracted from the IBA*–IGWO global path are used as local guidance targets for FDWA, enabling the USV to preserve cruise continuity while responding to dynamic disturbances.
The structure of this paper is organized as follows: Section 1 systematically reviews the domestic and international research progress on path-planning algorithms, laying a theoretical foundation for the subsequent research. Section 2 elaborates on the principles and methods of global path planning. Section 3 in-depth analyzes the key technologies of local path planning. Section 4 innovatively proposes a dynamic obstacle-avoidance algorithm that integrates the FDWA algorithm with the global cruise path. Section 5 validates the effectiveness of the proposed algorithm through comparative experiments. Finally, Section 6 summarizes the research findings of this paper and outlines potential future research directions.

2. IBA*–IGWO-Based Global Path Planning Algorithm for USV Cruising

To address the global path-planning problem for multi-objective point cruising of unmanned surface vehicles (USVs) in static environments, this paper proposes an Improved Bidirectional A*–Improved Grey Wolf Optimizer (IBA*–IGWO) algorithm that integrates the bidirectional A* search strategy [25,26] with the Grey Wolf Optimizer (GWO) framework [17], followed by discrete-sequence improvement for multi-waypoint cruise optimization.

2.1. Improved Bidirectional A* (IBA*) Algorithm

(1)
Bidirectional Search Strategy
For path planning involving multiple mandatory waypoints, this study employs a bidirectional A* (BA*) search strategy to improve search efficiency while maintaining path quality [25,26]. Compared with conventional unidirectional A*, bidirectional search expands nodes from both the start and goal directions and is therefore more suitable for repeated inter-waypoint path computation in multi-point cruise missions.
(2)
Cost Function Optimization
In conventional bidirectional A* (BA) algorithms, forward and backward searches calculate the estimated cost f*(n*) using the optimal node from the opposite direction as a temporary target. While this approach accelerates convergence between search directions, it frequently causes deviation from the globally optimal path [26]. Although prior work [25] introduced weighted heuristic functions to mitigate this issue, the static weight allocation fails to adapt dynamically as the forward/backward nodes approach each other.
f ( n 1 ) = g 1 ( n 1 ) + w 1 ( n 1 ) × h 1 ( n 1 ) + w 2 ( n 1 ) × h 2 ( n 1 )
In the formulation, g 1 ( n 1 ) denotes the actual distance cost from the start node to the current node n 1 ; h 1 ( n 1 ) and h 2 ( n 1 ) represent the estimated distance costs from node n 1 to the optimal backward search node n 2 and preferred node n c . w 1 ( n 1 ) and w 2 ( n 1 ) are the dynamic weights assigned to their corresponding estimated distance terms.
h 2 ( n 1 ) = ( x n 1 x c ) + ( y n 1 y c )
In the formulation, ( x n 1 , y n 1 ) represents the current node n 1 in the forward search, ( x c , y c ) denotes the introduced preferred node n c .
If no obstacle exists at the midpoint between the start and target positions, ( x c , y c ) calculation formula is given as:
x c = x s t a r t x e n d 2 y c = y s t a r t y e n d 2
If an obstacle is present at the midpoint between the start and target positions, as illustrated in Figure 1, a new preferred node must be determined. In this scenario, since line l c is perpendicular to line l c and passes through both the start point x s t a r and target point x e n d , the equation for line l c can be derived as follows:
k = x s t a r t x e n d y s t a r t y s t a r t y y s t a r t y e n d 2 = k ( x x s t a r t x e n d 2 )
The preferred node n c is determined by extending from the intersection point of the two lines (Figure 1) along the direction of line l c and selecting the first obstacle-free coordinate nearest to the intersection as the position ( x c , y c ) of node n c .
Therefore, the dynamic weight w 1 ( n 1 ) in Equation (5) is expressed as:
w 1 ( n 1 ) = 1 1 + exp ( D D 1 )
In the formulation, D represents the Manhattan distance from node n 1 to the reverse optimal node n 2 , D denotes the Manhattan distance from node n 1 to node n c .
The calculation process of parameter w 2 ( n 2 ) in Equation (6) is as follows:
w 2 ( n 1 ) = 2 ( 1 w 1 ( n 1 ) )
The above formulation represents the heuristic function for forward search. The heuristic function for backward search can be derived similarly.
(3)
Path Post-Optimization Processing
In the conventional A* algorithm, path planning is typically performed using an 8-directional search strategy. While this approach effectively reduces computational complexity, it inherently constrains the angular resolution of the generated path, often yielding trajectories that are suboptimal in length [27,28,29]. To address this limitation, this paper proposes a secondary path optimization method. Initially, a preliminary path list is constructed; in the present example, this list is denoted as Path   =   P 1 , P 2 , P 3 , P 4 , P 5 , P 6 , P 7 , P 8 . Beginning with the first node, each subsequent node is sequentially connected to the terminal node P8. If the line segment between P1 and P8 intersects any obstacle, the connection P1–P8 is discarded; the process then advances to evaluate P2–P8, and so forth. The first node whose connection to P8 is collision-free—here, P4—serves as a key point. All intermediate nodes between P4 and P8 are pruned, yielding an updated path, Path   =   P 1 , P 2 , P 3 , P 4 , P 8 . Next, the same procedure is applied recursively: starting again from P1, each node is connected to the new terminal keypoint P4. Upon determining that P2 connects to P4 without obstacle interference, the nodes between P2 and P4 are eliminated, resulting in the final optimized path, Path   =   P 1 , P 2 , P 3 , P 4 , P 8 , as shown in Figure 2.

2.2. Improved Grey Wolf Optimizer (IGWO) Algorithm

To address the limitations of the conventional Grey Wolf Optimizer (GWO) in directly handling discrete waypoint-sequencing problems [17], this study develops an Improved Grey Wolf Optimizer (IGWO) for optimal cruising-sequence determination. The improvement mainly adapts the population update process from continuous-space optimization to discrete permutation optimization.
(1)
Objective Function Construction
For the optimal cruising sequence determination problem, let P   =   P 1 , P 2 , , P n . represent a path containing n waypoints, where P i , denotes the index of the i -th waypoint. The total path distance (objective function) is then formulated as:
f ( P ) = i = 1 n 1 D ( P i , P i + 1 ) + D ( P n , P 1 )
In the formulation, D ( P i , P j ) represents the Euclidean distance between waypoints P i and P j .
D = 0 d 1 , 2 d 1 , n d 2 , 1 0 d 2 , n d n , 1 d n , 2 0
In the formulation, let D denote the pairwise distance matrix between all waypoints for the unmanned surface vehicle (USV), where each element D satisfies the condition D = D T , d i , j denote the distance between waypoints P i and P j . This distance matrix can be constructed by computing all pairwise inter-waypoint paths using the improved bidirectional A* (IBA*) path planning algorithm proposed in this work.
The objective function aims to minimize the total distance f(P). In each iteration of the Grey Wolf Optimizer (GWO) algorithm, every wolf individual is encoded as a candidate solution (i.e., a waypoint visitation sequence), whose quality can be evaluated using Equation (7).
(2)
Operator Construction
The conventional Grey Wolf Optimizer (GWO) is inherently limited to continuous optimization problems, as its parameter settings and position update equations cannot be directly applied to discrete domains. To address this limitation, we propose modifications to the individual update mechanism by introducing specialized operators for position updating in discrete space. Let n denote the number of waypoints (in this case, n = 6). The initial visitation sequence of these waypoints is illustrated in Figure 3. The swap, insert, symmetry, and 2-opt operators adopted here are widely used neighbourhood-search or permutation-improvement mechanisms in discrete route optimization, and are introduced to enhance the local exploitation ability of the IGWO in waypoint-sequencing tasks.
(1) Swap Operator: Randomly generate two distinct indices i , j ∈ [1, n] (where i j ), then exchange the visitation order of the i -th and j -th positions. For instance, if i = 2 and j = 4, the modified visitation sequence is illustrated in Figure 4.
(2) Insert Operator: Randomly generate two distinct indices i , j ∈ [1, n] (where i j ), then insert the waypoint at position i into position j ( i j , i 1 , j n ) . For example, if i = 2 and j = 4, the modified visitation sequence is illustrated in Figure 5.
(3) Symmetry operator: Two non-overlapping intervals, [ i 1 , j 1 ] and [ i 2 , j 2 ] , of identical integer cardinality are randomly selected within [1, n]. The sub-paths delimited by these intervals are then reversed and mutually exchanged. For instance, if the selected intervals are [1, 2] and [3, 4], the resulting visiting order after the transformation is illustrated in Figure 6.
(4) The 2-opt Operator: The 2-opt operator is a local search method for path optimization that begins with an arbitrary initial path (either randomly generated or constructed via the nearest-neighbour algorithm) and iteratively improves the solution by exchanging two edges in the path. Specifically, two distinct indices i and j are randomly selected from the interval [1, n], and the subsequence between these indices is reversed to generate a new candidate path. If the modified path yields a shorter total distance, it is accepted as the current solution; otherwise, the original path is retained. This process repeats until no further improvements can be found. To mitigate the computational overhead associated with exhaustive edge-pair evaluation in each iteration of the Grey Wolf Optimizer, we employ a stochastic selection strategy that limits the number of randomly chosen edge pairs for evaluation. For instance, when i = 2 and j = 4, the resulting visitation sequence (illustrated in Figure 7) demonstrates a case where the new path is shorter than the original.

3. Local Path Planning Modelling for USVs Based on the FDWA Algorithm

By integrating the improved bidirectional A* algorithm (IBA*) with the improved grey wolf optimizer (IGWO), a complete USV patrol trajectory that visits every predefined sea area can be generated. Although this pre-planned route—computed off-line with the aid of a priori charts—successfully circumvents fixed obstacles such as reefs and islands, it remains incapable of handling uncharted static obstacles (e.g., drifting containers) or moving targets (e.g., fishing and merchant vessels). These contingencies introduce new challenges for path planning. Moreover, exclusive reliance on local planners during actual navigation frequently results in a “short-sighted” behaviour. Upon encountering floating obstacles, the USV may repeatedly re-adjust its heading within a confined region, ultimately deviating from the designated patrol zone. To overcome this limitation, a hierarchical framework combining global guidance with dynamic correction is proposed. The IBA*–IGWO global planner supplies the overall cruising direction, guaranteeing coverage of all mission waypoints, while an FDWA-based local planner performs on-the-fly collision avoidance whenever dynamic or previously unknown static obstacles are detected. This synergy enables the USV to maneuver flexibly around obstacles without compromising the fulfilment of its patrol mission.

3.1. Modelling of Unmanned Surface Vehicle (USV) Dynamics

Within the Dynamic Window Approach (DWA) framework, the determination of heading and velocity at the next time step is achieved through predictive trajectory evaluation [10,15]. Unlike holonomic robotic systems, unmanned surface vehicles (USVs) are subject to nonholonomic motion constraints, and their planar motion can be approximately described by surge velocity and yaw angular velocity under low-speed maneuvering conditions [15,20].
More specifically, the USV’s instantaneous motion vector is determined by its current heading angle θ, while the resultant trajectory emerges from the coupled influence of linear velocity v and angular velocity ω, collectively represented as the control vector ( v , w ) . In the global coordinate system, the USV’s pose is parameterized by its planar coordinates (x, y) and orientation angle θ, where θ denotes the vehicle’s angular displacement relative to the reference frame’s principal axis.
The kinematic model of the USV is illustrated in Figure 8. At time instant t, the state vector of the vehicle is denoted by s ( t ) = x ( t ) , y ( t ) , v ( t ) , w ( t ) , θ t . Let Δ t be the discrete time-step; owing to its small magnitude, the motion within the interval is assumed to be rectilinear with constant speed. The resulting travel distance is therefore v ( t ) × Δ t . Projecting this displacement onto the global x- and y-axes according to the current heading angle θ t yields the incremental displacements Δ x , Δ y in each direction.
Δ x = ν ( t ) × Δ t × cos θ t Δ y = ν ( t ) × Δ t × sin θ t Δ θ = w ( t ) × Δ t
The USV’s motion state evolves over time in a discrete manner. By accumulating the incremental motion vector Δ x , Δ y , Δ θ within each sampling interval Δ t , the position at the subsequent time step is obtained.
x ( t + 1 ) = x ( t ) + Δ x y ( t + 1 ) = y ( t ) + Δ y θ t + 1 = θ t + Δ θ
In Equations (10) and (11), x ( t ) and y ( t ) denote the planar coordinates of the USV at time step t , θ t denotes the heading angle, ν ( t ) denotes the linear velocity, w ( t ) denotes the angular velocity, and Δ t denotes the sampling interval. Under the short-horizon assumption of DWA prediction, the velocity pair ( ν ( t ) , w ( t ) ) is treated as constant within one sampling interval.

3.2. Velocity Space Sampling for Unmanned Surface Vehicles

In two-dimensional space, while theoretically infinite velocity combinations ( v , w ) exist, practical implementations are constrained by the USV’s physical characteristics and propulsion system limitations. To ensure feasible and effective path planning, the velocity space must be properly bounded before sampling for trajectory prediction.
(1)
Velocity Boundary Constraints
Considering the USV’s hardware capabilities and environmental limitations, the admissible velocity V m is bounded as follows:
V m = v , ω | v v min , v max , ω ω min , ω max
where v max , v min denote the USV’s maximum and minimum linear velocities, respectively, while ω max , ω min represent its maximum and minimum angular velocities.
(2)
Acceleration Constraints
Due to the limitations of the USV’s propulsion system, both linear and angular accelerations are bounded. Assuming equal magnitudes for maximum acceleration and deceleration, the admissible velocity space considering acceleration constraints is defined as:
v d = { ( v , ω ) v [ v c a v m , v c + a v m ] , ω [ ω c a ω m , ω c + a ω m ] }
In the equation, v c , w c denote the instantaneous linear and angular velocities of the USV, respectively, while a v m , a ω m represent the maximum linear and angular accelerations permitted by the vehicle’s dynamic constraints.
(3)
Environmental-obstacle constraint
To prevent the USV from colliding with environmental obstacles, it is necessary to verify whether the vehicle can come to a complete stop before impact when applying the maximum deceleration from its current velocity. This requirement is formalized as a safety braking-velocity constraint:
V a = ( v , ω ) | v [ v min , 2 d i s ( v , w ) a v m ] , ω [ ω min , 2 d i s ( v , ω ) a ω m ]
In the equation, d i s v , w denotes the minimal distance between the trajectory generated under the velocity pair ( v , w ) and any obstacle. If the USV cannot achieve a complete stop prior to collision under this velocity combination, the corresponding ( v , w ) is eliminated from the admissible set.
The final admissible velocity sampling space for the USV is determined by the intersection of all aforementioned constraints:
V s = V m V d V a

3.3. Trajectory Evaluation Function

Given the admissible velocity space V s , uniform sampling is performed with specified resolutions, where E v , E ω denote the sampling resolutions for linear and angular velocities, respectively. The total number of sampled velocity pairs is given by:
n = v s max v s min E v ω s max ω s min E ω
where v s max and v s min represent the lower and upper bounds of the feasible linear velocity, while ω s max and ω s min denote the minimum and maximum achievable angular velocities, respectively.
As illustrated in Figure 9, the sampled velocity sets ( v , w ) are incorporated into Equations (10) and (11) to predict USV trajectories over a defined time period, generating multiple simulated paths. Among these, feasible trajectories are depicted as solid lines, while substandard ones appear as dashed lines. The optimal trajectory for subsequent USV navigation is determined through comparative evaluation using the scoring metric defined in Equation (16).
G ( v , ω ) = σ ( α heading ( v , ω ) ) + ( β dist ( v , ω ) ) + ( γ velocity ( v , ω ) )
where σ represents the normalization function, α , β , γ serving as the weighting coefficient for three sub-evaluation functions: heading angle ( heading ( v , ω ) ), obstacle distance ( dist ( v , ω ) ), and velocity ( velocity ( v , ω ) ).
(1)
Heading Angle Evaluation Function heading ( v , ω )
As shown in Figure 10, during navigation, the USV should maintain a heading direction as close as possible to the target. The heading evaluation function heading ( v , ω ) assesses the angular deviation between the trajectory’s terminal heading (generated using the sampled velocity set ( v , w ) ) and the target direction, where a larger value indicates better performance:
heading ( v , ω ) = π θ
(2)
Obstacle Distance Evaluation Function dist ( v , ω )
The obstacle distance metric dist ( v , ω ) quantifies the minimum distance between the predicted USV trajectory and surrounding obstacles:
d i s t ( v , w ) = d i s t o b min , d i s t o b min d max C , d i s t o b min > d max
To address scenarios where no obstacles exist within the immediate vicinity, the evaluation function assigns a large constant value when the minimum distance exceeds a predefined threshold d max .
(3)
Velocity Evaluation Function velocity ( v , ω )
Provided no collision occurs, the higher the forward speed of the USV, the shorter the mission completion time. The speed evaluation function velocity ( v , ω ) is defined as the magnitude of the current linear velocity; a larger value indicates a faster planned trajectory and thus a higher evaluation score.
velocity ( v , ω ) = v
To prevent dimensional inconsistency among the three evaluation metrics from biassing the optimization, each cost function is normalized to the range [0, 1] as follows:
n o r m a l _ h e a d i n g ( i ) = h e a d ( i ) i = 1 n h e a d i n g ( i ) n o r m a l _ d i s k ( i ) = d i s k ( i ) i = 1 n d i s k ( i ) n o r m a l _ v e l o c i t y ( i ) = v e l o c i t y ( i ) i = 1 n v e l o c i t y ( i )

3.4. Fuzzy Control-Based FDWA Local Path Planning Algorithm

The conventional Dynamic Window Approach (DWA) is a widely used local path planning method that enables real-time obstacle avoidance and trajectory optimization based on the USV’s current state and environmental perception. However, standard DWA implementations exhibit two critical limitations:
(1) Heading Angle Issue: When navigating toward waypoints, insufficient utilization of target direction information may cause significant initial heading deviation, resulting in frequent course corrections that increase travel time and energy consumption.
(2) Fixed Weight Parameters: Traditional DWA employs static weighting coefficients for balancing obstacle avoidance, goal convergence, and speed optimization, which cannot adapt to dynamic environments.
To address these issues, this study proposes a fuzzy control-based FDWA algorithm that optimizes the USV’s heading angle during both initial and cruising phases, while incorporating a fuzzy controller-based adaptive weight adjustment mechanism to enhance navigation efficiency and path smoothness across various mission scenarios.

3.4.1. USV Initial Heading Angle Optimization

When the USV performs local path planning using the conventional DWA without fully exploiting target-point information, the initial heading may deviate excessively from the target, causing continuous extra yaw corrections, increasing unnecessary energy loss, and even leading to mission failure, as illustrated in Figure 11a. Likewise, in multi-waypoint patrol missions, heading adjustment remains critical: after completing operations at one waypoint, the USV may exhibit heading error when proceeding to the next. By adjusting the heading angle during operation, the angular difference between the current heading and the next waypoint can be reduced, as shown in Figure 11b. Therefore, this paper computes the target angle and adjusts the initial heading at both the departure stage and when transitioning to the next waypoint, thereby minimizing ineffective turns and improving navigation efficiency and path smoothness.
Let the USV’s current position be ( x s , y s ) and the target point (either the final destination or the next waypoint) be ( x g , y g ) . The target bearing angle α g is then computed as:
α = a c r tan x g x s y g y s
Using the target bearing angle obtained from Equation (21), the angular deviation between the USV’s current heading and the target point—i.e., the required heading adjustment—is computed as:
Δ α = α φ i n i t + 2 π n , α φ i n i t π α φ i n i t , π α φ i n i t π α φ i n i t 2 π n , α φ i n i t π
In the equation, φ i n i t represents the USV’s current heading angle, and n is a positive integer ensuring that α φ i n i t is confined to the interval π , π .
Based on the above analysis, the initial rotational angular acceleration ω ˙ of the USV can be computed as:
ω ˙ = Δ α 0.5 t 2 , ω min ω ˙ ω max
In the equation, t denotes the time required for the USV to adjust its heading, while ω min and ω max represent the achievable minimum and maximum rotational velocities, respectively.

3.4.2. Adaptive Weighting Coefficients via Fuzzy Control

The conventional DWA selects an optimal trajectory for the USV through the objective function given in Equation (16), which comprises three weighted terms that respectively drive the vehicle toward the goal, avoid collisions, and maintain high speed. However, because the operational environment is typically complex and dynamic, fixed weights for these terms are often inadequate. Therefore, this paper proposes a Fuzzy-enhanced DWA (FDWA) that integrates real-time environmental information into a fuzzy-logic inference system to adaptively tune the weights of each term online.
Fuzzy control is an approximate-reasoning method based on fuzzy sets, linguistic variables, rule bases, and defuzzification, and it has been widely used in adaptive control and path-planning problems under uncertainty [15,29]. A standard fuzzy-system design comprises fuzzification, construction of a rule base, fuzzy inference, and defuzzification to yield the control output. In this work, two fuzzy controllers—one for guidance and one for safety—are devised on the basis of fuzzy-control theory to enable online adaptation of the three DWA weighting coefficients α , β , γ , thereby ensuring robust adaptability of the USV across diverse marine environments.
(1)
Guidance Fuzzy Controller
In the guidance fuzzy controller, the inputs are selected as (i) the distance Dg between the USV’s current position and the target, and the heading angle error Ag toward the target; the output is the weighting coefficient α of the bearing-angle cost term.
The input and output variables of the guidance fuzzy controller are fuzzified as follows.
Input Dg: universe of discourse [0, 3], linguistic terms {Near (N), Medium (M), Far (F)}.
Input Ag: universe of discourse [0, 180], linguistic terms {Small (S), Medium (M), Large (L)}.
Output α : universe of discourse [0, 1], linguistic terms {Extremely Small (XS), Small (S), Medium (M), Large (L), Extremely Large (XL)}.
The membership functions of the input and output variables are depicted in Figure 12 and Figure 13, respectively.
The guidance fuzzy rules are constructed according to a target-oriented design principle. When the USV is far from the target and already approximately aligned with the desired direction, excessive emphasis on heading correction is unnecessary and may reduce motion efficiency; therefore, a relatively small output for the heading-related weight is preferred. In contrast, when the USV is close to the target but exhibits a large heading deviation, heading correction becomes more critical for preventing target overshoot or repeated adjustment, and a larger heading-related weight is therefore assigned. Based on this principle, the complete rule base for the guidance fuzzy controller is summarized in Table 1.
(2)
Safety Fuzzy Controller
The safety fuzzy controller comprises three inputs and two outputs. The inputs are (i) the distance Dg from the USV’s current position to the target, the shortest distance Do to the nearest obstacle, and (iii) the obstacle density Io in the USV’s vicinity. The outputs are the weighting coefficients β (for the obstacle-distance cost term) and γ (for the velocity cost term).
The obstacle density Io around the USV can be computed from the number of obstacles within the perception range, their individual areas, and the inter-obstacle distances:
I o ( n , d , s ) = δ n + ε a d + μ b s
In the equation, n denotes the number of obstacles within the perception window; d represents the minimum distance between the two closest obstacles in that window; s is the cumulative area of all obstacles; δ , ε , μ are the corresponding weighting coefficients; and a and b are the base coefficients of the exponential terms. In practice, the USV’s sensing range is significantly larger than its hull dimensions; therefore, the perception window is defined as a semicircle of radius 10r, centred at the USV’s position and oriented along its forward direction.
The universe of discourse and fuzzy sets for input Dg are identical to those in the guidance fuzzy controller.
Input Do: universe [0, 2.5], linguistic terms {Near (N), Medium (M), Far (F)}.
Input Io: universe [0, 1.5], linguistic terms {Small (S), Large (L)}.
Outputs β and γ : universe [0, 3], linguistic terms {Extremely Small (XS), Small (S), Medium (M), Large (L), Extremely Large (XL)}.
The membership functions for the inputs and outputs of the safety fuzzy controller are shown in Figure 14 and Figure 15 (the membership function for input Dg is identical to that depicted in Figure 12a).
In the safety fuzzy controller, if Dg is large while both Do and Io are small—indicating the USV is far from the target and in open waters—a small β and a large γ are selected to maximize speed toward the target. Conversely, if Dg is small and both Do and Io are large—signifying proximity to the target in a cluttered environment— β is increased and γ is decreased to reduce speed, ensuring safety without missing the target. Based on this logic, the fuzzy rule base for the safety controller is established in Table 2.
After fuzzy inference using the above two rule bases, the output fuzzy sets are converted into crisp numerical values by means of the centroid defuzzification method, which is one of the most commonly used defuzzification strategies in fuzzy-control systems [29].
y o = a b y μ y ( y ) d y a b μ y ( y ) d y
In the equation, y o denotes the defuzzified crisp output value; a and b define the universe of discourse of the membership function; y represents every possible value of the input variable over the continuous domain; and μ y ( y ) is the fuzzy membership function.

4. Dynamic Obstacle-Avoidance Algorithm via FDWA–Global Cruise Path Fusion

To enhance the path-planning performance of an unmanned surface vehicle (USV) in complex, dynamic environments—particularly for dynamic obstacle avoidance—this study proposes integrating the Fuzzy-enhanced Dynamic Window Approach (FDWA) with the global cruise route generated by the improved bidirectional A*–improved grey wolf optimizer (IBA*–IGWO). The resulting fusion algorithm leverages the global guidance of IBA*–IGWO and the local reactive-avoidance capability of FDWA: the global cruise route continuously guides FDWA while the latter performs real-time obstacle avoidance. This synergy ensures that the USV can execute multi-waypoint patrol missions efficiently and safely in highly dynamic maritime scenarios [26,27].
Assume a USV patrol mission with five waypoints (including the start point). The IBA*–IGWO algorithm yields the optimal waypoint sequence P b e s t = p 1 , p 2 , , p 5 and the corresponding global static cruise path A l l _ P a t h , as shown in Figure 16a.
Two strategies are available for incorporating FDWA into the patrol mission for dynamic avoidance. Strategy 1 repeatedly invokes FDWA between successive waypoints: upon reaching each waypoint, it is treated as the new start and the next waypoint as the goal until all waypoints are visited. However, DWA-based local planners—including the improved FDWA—are susceptible to local minima when encountering certain obstacle configurations; Figure 16b illustrates such a failure between P2 and P3. Therefore, Strategy 2 is adopted: key nodes along the global cruise path are designated as successive intermediate local goals for FDWA, thereby ensuring that the local planner remains consistent with the global cruising route.
In this strategy, the turning points and patrol waypoints along the global cruise path A l l _ P a t h are selected as successive local goals for the FDWA algorithm. However, if the USV must fully reach each local goal before the next one is assigned, it is forced to decelerate repeatedly so as not to overshoot, degrading cruise efficiency. Therefore, when the upcoming local goal is not a designated patrol waypoint, the next target is dynamically shifted before the current local goal is reached, enabling the USV to transition smoothly without coming to a complete stop. The algorithmic procedure is outlined below.
(1)
Acquire environmental data, construct the occupancy grid map, and define the USV’s start position and patrol waypoints.
(2)
Invoke the IBA*–IGWO algorithm to obtain the global static cruise path A l l _ P a t h that visits all waypoints.
(3)
From A l l _ P a t h , extract the waypoints and the turning points between consecutive waypoints as local goals; record their coordinates.
(4)
Using the local goal coordinates, apply the FDWA local planner to generate motion trajectories. While sailing, on-board sensors detect obstacles absent from the original map, update the map and re-plan to circumvent these obstacles. After avoidance, the USV rejoins the global path A l l _ P a t h .
(5)
Check whether the current local goal is a waypoint; if yes, proceed to (6); otherwise, return to (4).
(6)
Determine if the reached waypoint is the final one; if so, advance to (7); otherwise, adjust the USV’s initial heading and return to (4).
(7)
All waypoints have been visited; terminate the algorithm.
(8)
The overall framework of the FDWA–global cruise path fusion for dynamic obstacle avoidance is illustrated in Figure 17.
In this framework, the FDWA module is primarily responsible for local trajectory generation under dynamic obstacle disturbances, while the global cruise path provides long-range mission guidance. From a system-architecture perspective, this global–local fusion pattern also offers a natural interface for further functional extension. In particular, additional decision modules may be incorporated between environmental perception and local trajectory generation, so that relative-motion assessment, encounter interpretation, and maneuver preference can be considered before evaluating candidate trajectories. Under such a hierarchical structure, the admissible action space of the local planner can be further constrained by higher-level navigation logic, enabling the generated trajectories to better satisfy not only geometric collision-avoidance requirements but also more practical maritime operating considerations. This extensibility highlights the potential of the proposed framework as a structured basis for more complete autonomous navigation systems.

5. Simulation Experiments

To validate the superiority of the proposed method, a three-stage comparative experiment is conducted. First, the effectiveness of the IBA*–IGWO fusion algorithm in generating a global cruise path is verified. Second, the performance of the FDWA algorithm is assessed against the conventional DWA algorithm. Finally, it is examined whether integrating the FDWA algorithm with the IBA*–IGWO-planned global static route enables real-time obstacle avoidance.

5.1. Simulation Validation of the IBA*–IGWO-Based Global Path-Planning Algorithm

The proposed IBA*–IGWO global path-planning algorithm is benchmarked against a state-of-the-art direct-path planner fused with the Genetic Algorithm (GA) as reported in [25], and the multi-waypoint planners presented in [27,28].
Method I: Reference [27]
Method II: Reference [25]
Method III: Reference [28]
Method IV: This paper
Experiments were conducted on a 50 × 50 grid map. Within the obstacle-free region, 30 and 50 waypoints were randomly generated for the two test scales. Using the four aforementioned methods, multi-waypoint USV patrol paths were planned with the start and finish both located at (1, 1). The results are illustrated in Figure 18 and Figure 19:
In the figures, the circle at the lower-left corner denotes the start/finish location, and the green diamonds mark the waypoints that the USV must visit. All four algorithms successfully traverse every waypoint without obstacle collision. Performance is evaluated in terms of path length, number of turns, and computational time; the results are summarized in Table 3.
According to the results in Table 3:
(1)
Method I (ref. [27]) exhibits the lowest computational cost among the four approaches. This algorithm directly employs the straight-line Euclidean distance between waypoints when constructing the distance matrix, thereby ignoring the presence of obstacles. Although this simplification reduces computation time, the resulting distances are unrealistic, preventing the determination of an optimal cruise sequence; consequently, the final path length is the longest, and the number of turns is the highest.
(2)
Method II (ref. [25]) reduces runtime by exploiting the bidirectional A* search mechanism when constructing the distance matrix. However, the generated cruise route still contains considerable redundancy.
(3)
Method III (ref. [28]) adopts the conventional unidirectional A* algorithm to construct the distance matrix while explicitly accounting for obstacle effects. Although this improves route quality, it also leads to a higher computational cost.
(4)
Method IV (the proposed algorithm) integrates the improved bidirectional A* algorithm with the improved grey wolf optimizer, achieving a notable reduction in runtime. Simultaneously, it delivers the shortest cruise route and the fewest turns.

5.2. Simulation Verification of FDWA Effectiveness

To demonstrate the superiority of the proposed FDWA path-planning algorithm, simulations were conducted on a 20 × 20 grid map with a cell resolution of 1 m. The start point was set at (1, 1) and the goal at (20, 20). The USV dynamic parameters and sampling interval are listed in Table 4.
(1)
Comparative study on the efficacy of different DWA variants under static conditions
For the conventional DWA algorithm, three distinct weight combinations are employed for local path planning; the corresponding traditional DWA weight coefficients are listed in Table 5.
The experimental results of local path planning for the traditional DWA under the three weight combinations and for the proposed FDWA algorithm are illustrated in Figure 20.
As shown in Figure 20 and Table 6:
(1)
Case 1 (small heading weight α , large obstacle-distance weight β , moderate speed weight) γ yields obstacle-avoidance-biassed paths with poor goal orientation, resulting in detours; this setting is suitable only for highly cluttered areas.
(2)
Case 2 (increased α and γ , reduced β ) improves initial goal attraction, yet later obstacle complexity still forces deviation, giving only marginal reductions in path length (–1.3% vs. Case 1), iterations (–5.8%), and runtime (–9.8%); it fits moderately obstructed waters.
(3)
Case 3 (further increased α and γ , minimal γ ) minimizes heading error but offers weak avoidance; the USV tends to stall in front of obstacles, making it viable only in open areas.
(4)
The proposed FDWA outperforms all three fixed-weight cases. Compared with Case 1, path length is reduced by 10.98%, iterations by 11.34%, and runtime by 13.7%. Compared with Case 2, the reductions are 10.2%, 5.8%, and 4.3%, respectively. The smaller runtime gain relative to iteration reduction stems from the computational cost of the two online fuzzy controllers used at every iteration.
(2)
Feasibility of FDWA for dynamic obstacle avoidance
To verify the real-time avoidance capability of FDWA under complex dynamic conditions, additional unknown static obstacles and moving obstacles are introduced into the map besides the known ones. The obstacle information used in the simulations is listed in Table 7, and the experimental results are presented in Figure 21.
The above figures illustrate the real-time obstacle-avoidance behaviour of the USV when FDWA is employed. Grey squares denote unknown static obstacles, grey circles represent moving obstacles, the dashed grey lines trace the motion of the moving obstacles, the solid red line indicates the USV trajectory, and the arrow on the trajectory marks the USV’s instantaneous position. In Figure 21a, the local planning phase begins while the dynamic obstacle starts moving. Figure 21b,c show that whenever the USV encounters unknown or dynamic obstacles, the trajectory is replanned immediately to evade them, after which the vehicle continues toward the goal and eventually arrives successfully.
Collectively, these results demonstrate that the performance of the conventional DWA is highly sensitive to the fixed weight coefficients governing obstacle avoidance, goal attraction, and speed control. In contrast, the proposed FDWA exhibits strong environmental adaptability: by means of fuzzy control, it dynamically adjusts these weights according to the surrounding conditions, thereby flexibly satisfying diverse path-planning requirements.
It should also be noted that the comparisons in this section are mainly intended to evaluate the effectiveness of the proposed fuzzy adaptive weighting strategy with respect to conventional fixed-weight DWA settings under the current simulation framework. In other words, the objective of Section 5.2 is to verify the local performance gain brought by the adaptive weighting mechanism itself, rather than to establish a comprehensive benchmark against all representative maritime local route-planning methods. In particular, the objective of the present study is different from that of COLREG-compliant local route-planning methods such as [24]. The method in [24] focuses on rule-compliant local maneuver generation under formally defined maritime encounter scenarios, whereas the present work focuses on integrating multi-waypoint global cruise guidance with FDWA-based reactive local obstacle avoidance. Therefore, the main contribution of this study lies in establishing a global–local fusion framework for mission continuity and local replanning adaptability, rather than in developing a fully rule-compliant local collision-avoidance strategy. At the current stage, explicit COLREG compliance is outside the scope of the present study and will be addressed in future work through the introduction of a higher-level rule-constrained decision layer above the FDWA planner.

5.3. Simulation Verification of the Dynamic Obstacle-Avoidance Algorithm Integrating FDWA with the IBA*–IGWO Global Cruise Path

Since the superiority of the IBA*–IGWO fusion algorithm and the FDWA algorithm has already been demonstrated in previous simulations, this section focuses solely on verifying whether the dynamic obstacle-avoidance algorithm that integrates FDWA with the global cruise path can guarantee safe mission completion under complex dynamic conditions. Experiments were conducted on a 30 × 30 grid map (cell size 1 m) with 15 waypoints and unknown as well as dynamic obstacles. The obstacle information used in the simulations is listed in Table 8, and the results are shown in Figure 22.
In the figure, black cells indicate known obstacles, grey squares denote unknown static obstacles, grey circles represent moving obstacles, and dashed grey lines trace the trajectories of these dynamic objects. Red diamonds mark the waypoints, the dashed blue curve is the global static cruise route computed by the IBA*–IGWO algorithm, and the solid red curve is the dynamic obstacle-avoidance trajectory produced by the FDWA–global path fusion.
As shown, the global static route successfully visits every waypoint while avoiding known obstacles; however, it intersects several unknown and moving obstacles, demonstrating that offline planning cannot account for real-time environmental changes and thus poses safety risks. After fusion with FDWA, the USV follows the global path but performs local evasive maneuvers whenever dynamic or unknown obstacles appear, preventing collisions and eliminating the myopic behaviour typical of pure local planners. The resulting trajectory is smoother, kinematically feasible, and robust against dynamic disturbances, ensuring safe and reliable mission completion.
It should be noted that the dynamic obstacle scenarios considered in this study are primarily designed to examine the real-time responsiveness and local replanning capability of the proposed FDWA–global cruise path fusion framework under changing environmental conditions. In this setting, the moving obstacles are modelled as representative dynamic disturbances with explicitly defined kinematic parameters, rather than as a complete set of formally categorized encounter cases. Accordingly, the present simulations are intended to verify the feasibility of global–local path-planning coordination in dynamic environments, while more refined evaluation strategies based on structured encounter scenarios, such as head-on, crossing, and overtaking situations, can be further developed in future studies to improve the interpretability and practical relevance of the experimental analysis.

6. Conclusions and Discussion

To improve the adaptability of unmanned surface vehicles (USVs) to environmental changes during patrol missions, this study proposes a dynamic obstacle-avoidance framework that integrates the Fuzzy-enhanced Dynamic Window Approach (FDWA) with a pre-computed global cruise path generated by the IBA*–IGWO algorithm. An initial heading-angle optimization strategy is introduced to reduce heading deviation during departure and waypoint transitions, while a fuzzy-control mechanism is used to adaptively adjust the weighting coefficients of the DWA evaluation function according to the navigation state and local environment. In addition, key nodes extracted from the global cruise route are employed as successive local goals for the FDWA planner. The resulting framework combines long-range global guidance with real-time local obstacle avoidance, thereby improving the feasibility of multi-waypoint cruise navigation in dynamic environments.
Nevertheless, the present study should be regarded as a proof-of-concept validation under simplified simulation conditions. The experiments are conducted on grid-based maps with idealized kinematic settings and mainly verify the feasibility of combining global cruise-path guidance with local dynamic obstacle avoidance. Several factors that are important in realistic maritime operations have not yet been explicitly considered, including sensor uncertainty, communication and execution delays, environmental disturbances induced by wind, waves, and currents, as well as more complex multi-vessel interactions. These simplifications may influence both the robustness and the practical applicability of the proposed method. In particular, the local perception-update process, dynamic obstacle state estimation, and the trajectory-evaluation mechanism of the FDWA planner are expected to be most sensitive to real-world disturbances. Future work will therefore focus on uncertainty-aware perception and prediction, including state filtering, target motion prediction, extended USV dynamic models, and the incorporation of environmental loads and actuator constraints.
To further summarize the main strengths, limitations, and practical implications of the proposed framework, Table 9 is provided below.
From an engineering perspective, the proposed framework is more suitable for platforms with moderate onboard computational capability than for extremely resource-limited systems, because the FDWA module performs repeated trajectory prediction, fuzzy inference, and local replanning online. Nevertheless, its modular structure remains favourable for practical implementation, since the global planner can be executed offline and the local planner can be further simplified through reduced sampling density, shorter prediction horizons, or lightweight rule bases when deployed on embedded USV platforms.
Another important limitation is that the present framework mainly addresses geometric and kinematic collision avoidance and does not yet include an explicit COLREG-compliant decision-making layer. Accordingly, it should not be interpreted as a fully rule-compliant autonomous navigation system, but rather as a lower-level framework for trajectory generation and global–local coordination. Although the generated trajectories are computationally collision-free, they are not guaranteed to satisfy maritime navigation rules in all encounter situations. In future work, a higher-level rule-constrained decision layer will be introduced above the FDWA planner to classify typical encounter situations, such as head-on, crossing, and overtaking, and to impose corresponding maneuvering constraints on the admissible trajectory space of the local planner. In this sense, the main contribution of the present study lies in establishing a global–local fusion framework that supports mission continuity and local replanning adaptability, while providing a structured basis for future extension toward more complete and practically interpretable autonomous USV navigation architectures [22,23,24,30].

Author Contributions

Conceptualization, M.W. and J.G.; methodology, J.G.; validation, M.W., J.G. and C.L.; formal analysis, J.G.; investigation, M.H. and M.S.; resources, H.G.; data curation, H.X.; writing—original draft preparation, J.G.; writing—review and editing, M.W. and J.G.; visualization, J.G.; supervision, M.W.; project administration, M.W.; funding acquisition, M.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (No. 41775165 and 41775039); the Startup Foundation for Introducing Talent of NUIST (No. 2021r034); the Anhui Provincial University Outstanding Youth Research Project (No. 2023AH020022).

Data Availability Statement

The data and the code of this study are available from the corresponding author upon request.

Acknowledgments

We would like to thank the anonymous reviewers for their constructive and valuable suggestions on the earlier drafts of this manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yan, R.-J.; Pang, S.; Sun, H.-B.; Pang, Y.-J. Development and missions of unmanned surface vehicle. J. Mar. Sci. Appl. 2010, 9, 451–457. [Google Scholar] [CrossRef]
  2. Zhang, H.X.Z.; Ni, H.; Shi, Z.; Liu, J. Development trends and key technologies of unmanned surface vessels. Ship Sci. Technol. 2024, 46, 108–111. [Google Scholar]
  3. Yao, D.; Yin, X.; Luo, Z.; Wen, R.; Chen, Z.; Zou, H. Path planning algorithm for automated guided vehicle systems in complex environments. J. South China Univ. Technol. (Nat. Sci. Ed.) 2023, 51, 56–62+139. [Google Scholar]
  4. Li, W.; Yang, D.; Li, Z.; Hou, B.; Jiao, L. Mechanism and development of brain-like swarm navigation. Aeronaut. Weapon. 2023, 30, 92–103. [Google Scholar]
  5. Wang, Q. Research on Rapidly-Exploring Random Trees Based Global Path Planning and Its Application. Master’s Thesis, National University of Defense Technology, Changsha, China, 2014. [Google Scholar]
  6. Desiderio, F. Development of a Modified A-Star Algorithm for Path Planning. Master’s Thesis, Politecnico di Milano, Milan, Italy, 2021. [Google Scholar]
  7. Miao, C.; Chen, G.; Yan, C.; Wu, Y. Path planning optimization of indoor mobile robot based on adaptive ant colony algorithm. Comput. Ind. Eng. 2021, 156, 107230. [Google Scholar] [CrossRef]
  8. Jeong, I.B.; Lee, S.J.; Kim, J.H. Quick-RRT*: Triangular inequality-based implementation of RRT* with improved initial solution and convergence rate. Expert Syst. Appl. 2019, 123, 82–90. [Google Scholar] [CrossRef]
  9. Chou, J.S.; Truong, D.N. A novel metaheuristic optimizer inspired by behavior of jellyfish in ocean. Appl. Math. Comput. 2021, 389, 125535. [Google Scholar] [CrossRef]
  10. Raja, P.; Pugazhenthi, S. Optimal path planning of mobile robots: A review. Int. J. Phys. Sci. 2012, 7, 1314–1320. [Google Scholar] [CrossRef]
  11. Shaobo, W.; Yingjun, Z.; Lianbo, L. A collision avoidance decision-making system for autonomous ship based on modified velocity obstacle method. Ocean Eng. 2020, 215, 107910. [Google Scholar] [CrossRef]
  12. Zhang, F.; Hu, C. Dynamic obstacle avoidance path planning for AUV based on the rolling speed obstacle method. J. Underw. Unmanned Syst. 2021, 29, 30–38. [Google Scholar]
  13. Ji, J.; Khajepour, A.; Melek, W.W.; Huang, Y. Path planning and tracking for vehicle collision avoidance based on model predictive control with multiconstraints. IEEE Trans. Veh. Technol. 2016, 66, 952–964. [Google Scholar] [CrossRef]
  14. Mei, Y.; Cui, L.; Hu, X.; Hu, G.; Wang, H. Obstacle avoidance and formation control of multi-unmanned ground vehicles in complex environments based on the artificial potential field method. J. Eng. Sci. 2025, 47, 364–373. [Google Scholar]
  15. Xu, W.; Zhang, Y.; Yu, L.; Zhang, T.; Cheng, Z. A local path planning algorithm based on improved dynamic window approach. J. Intell. Fuzzy Syst. 2023, 45, 4917–4933. [Google Scholar] [CrossRef]
  16. Huang, Y.; Chen, L.; Van Gelder, P. Generalized velocity obstacle algorithm for preventing ship collisions at sea. Ocean. Eng. 2019, 173, 142–156. [Google Scholar] [CrossRef]
  17. Yin, L.; Xiang, F. Path planning based on the improved grey wolf optimizer and artificial potential field method. Electron. Meas. Technol. 2022, 45, 43–53. [Google Scholar]
  18. Jo, K.; Lee, M.; Lim, W.; Sunwoo, M. Hybrid Local Route Generation Combining Perception and a Precise Map for Autonomous Cars. IEEE Access 2019, 7, 120128–120140. [Google Scholar] [CrossRef]
  19. Zhao, G.; Zhou, J.; Li, Y.; Wang, C. Improved bidirectional rapidly-exploring random tree-based path planning for unmanned surface vehicles. Syst. Eng. Electron. 2024, 46, 1364–1371. [Google Scholar]
  20. Sheng, J.; Dong, Z.; Kuang, W.; Li, Z.; Sun, P. Formation obstacle avoidance of unmanned surface vessels based on improved DWA and MPC trajectory tracking. J. Dalian Marit. Univ. 2024, 50, 12–21. [Google Scholar]
  21. Silva Junior, A.G.D.; Santos, D.H.D.; Negreiros, A.P.F.D.; Silva, J.M.V.B.D.S.; Gonçalves, L.M.G. High-level path planning for an autonomous sailboat robot using Q-Learning. Sensors 2020, 20, 1550. [Google Scholar] [CrossRef]
  22. Namgung, H.; Kim, J.-S.; Jang, D.-U. Path planning and collision avoidance technologies for maritime autonomous surface ships: A review of COLREGs compliance, algorithmic trends and the navigation-GPT framework. J. Navig. 2026, 1–21. [Google Scholar] [CrossRef]
  23. Namgung, H.; Kim, J.-S. Collision Risk Inference System for Maritime Autonomous Surface Ships Using COLREGs Rules Compliant Collision Avoidance. IEEE Access 2021, 9, 7823–7835. [Google Scholar] [CrossRef]
  24. Namgung, H. Local Route Planning for Collision Avoidance of Maritime Autonomous Surface Ships in Compliance with COLREGs Rules. Sustainability 2022, 14, 198. [Google Scholar] [CrossRef]
  25. Kong, J.; Zhang, P.; Liu, X. Research on improved A* algorithm of bidirectional search mechanism. Comput. Eng. Appl. 2021, 57, 231–237. [Google Scholar]
  26. Min, W.; Minghang, S.; Mei, H.; Yongshun, L.; Zikang, T. Multi-point cruise planning based on synchronous bidirectional A* and grey wolf optimization. Electron. Meas. Technol. 2025, 48, 1–7. [Google Scholar]
  27. Meng, H.; Wu, Z.; Wu, W.; Shi, K. Multi-target path planning for fire-extinguishing vehicle based on improved simulated annealing algorithm. Comput. Digit. Eng. 2024, 52, 394–398. [Google Scholar]
  28. Huang, M.; Hao, Z.; Ran, N.; Dai, S.; Hao, J. Multi-target point path planning algorithm for substation inspection robot. Electron. Meas. Technol. 2024, 47, 49–57. [Google Scholar]
  29. Zhang, J.; Zhao, H.; Wang, N.; Guo, C. Fuzzy dual-window DWA algorithm for USV in dense obstacle conditions. Chin. J. Ship Res. 2021, 16, 10–18. [Google Scholar]
  30. Lee, J.-Y.; Namgung, H.; Kim, J.-S. Development of collision-case-based testing scenarios for validating autonomous ship collision-avoidance algorithms. Brodogradnja 2026, 77, 77204. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of obstacle-influenced node determination.
Figure 1. Schematic diagram of obstacle-influenced node determination.
Jmse 14 00722 g001
Figure 2. Schematic illustration of the path-optimization process. The blue line denotes the preliminary path before pruning, and the red line denotes the optimized path after post-processing.
Figure 2. Schematic illustration of the path-optimization process. The blue line denotes the preliminary path before pruning, and the red line denotes the optimized path after post-processing.
Jmse 14 00722 g002
Figure 3. Schematic diagram of the initial waypoint visitation sequence.
Figure 3. Schematic diagram of the initial waypoint visitation sequence.
Jmse 14 00722 g003
Figure 4. Schematic diagram of the swap operator.
Figure 4. Schematic diagram of the swap operator.
Jmse 14 00722 g004
Figure 5. Schematic illustration of the insert operator.
Figure 5. Schematic illustration of the insert operator.
Jmse 14 00722 g005
Figure 6. Schematic illustration of the symmetry operator.
Figure 6. Schematic illustration of the symmetry operator.
Jmse 14 00722 g006
Figure 7. Schematic illustration of the 2-opt operator.
Figure 7. Schematic illustration of the 2-opt operator.
Jmse 14 00722 g007
Figure 8. Schematic of the USV kinematic model.
Figure 8. Schematic of the USV kinematic model.
Jmse 14 00722 g008
Figure 9. Schematic diagram of the USV simulated trajectories.
Figure 9. Schematic diagram of the USV simulated trajectories.
Jmse 14 00722 g009
Figure 10. Schematic of the USV heading-angle deviation. The arrow denotes the current heading direction of the USV, the dashed line denotes the target direction, and the red dot denotes the target point.
Figure 10. Schematic of the USV heading-angle deviation. The arrow denotes the current heading direction of the USV, the dashed line denotes the target direction, and the red dot denotes the target point.
Jmse 14 00722 g010
Figure 11. Schematic of the influence of the USV heading angle at different mission stages. (a) Initial heading angle. (b) Heading angle when proceeding to the next waypoint.
Figure 11. Schematic of the influence of the USV heading angle at different mission stages. (a) Initial heading angle. (b) Heading angle when proceeding to the next waypoint.
Jmse 14 00722 g011
Figure 12. Membership functions of the input variables Dg and Ag.
Figure 12. Membership functions of the input variables Dg and Ag.
Jmse 14 00722 g012
Figure 13. Membership function of the output variable α .
Figure 13. Membership function of the output variable α .
Jmse 14 00722 g013
Figure 14. Membership functions of the input variables Do and Io.
Figure 14. Membership functions of the input variables Do and Io.
Jmse 14 00722 g014
Figure 15. Membership function of the output variable β , γ .
Figure 15. Membership function of the output variable β , γ .
Jmse 14 00722 g015
Figure 16. Schematic of the global cruise path and the limitations of the FDWA algorithm. (a) Global cruise path generated by IBA*–IGWO. (b) Limitations of the FDWA algorithm.
Figure 16. Schematic of the global cruise path and the limitations of the FDWA algorithm. (a) Global cruise path generated by IBA*–IGWO. (b) Limitations of the FDWA algorithm.
Jmse 14 00722 g016
Figure 17. Block diagram of the dynamic obstacle-avoidance method integrating the FDWA algorithm with the global cruise path. The red stars denote the waypoints.
Figure 17. Block diagram of the dynamic obstacle-avoidance method integrating the FDWA algorithm with the global cruise path. The red stars denote the waypoints.
Jmse 14 00722 g017
Figure 18. Scenario with 30 waypoints. (a) Method I; (b) Method II; (c) Algorithm in Reference [28] (Method III); (d) Proposed Method IV (IBA*–IGWO). The circle at the lower-left corner denotes the start/finish location, the green diamonds denote the waypoints to be visited, the black bars denote obstacles, and the red line denotes the planned cruise path.
Figure 18. Scenario with 30 waypoints. (a) Method I; (b) Method II; (c) Algorithm in Reference [28] (Method III); (d) Proposed Method IV (IBA*–IGWO). The circle at the lower-left corner denotes the start/finish location, the green diamonds denote the waypoints to be visited, the black bars denote obstacles, and the red line denotes the planned cruise path.
Jmse 14 00722 g018
Figure 19. Scenario with 50 waypoints. (a) Algorithm in Reference [27] (Method I); (b) Reference [25] + GA (Method II); (c) Algorithm in Reference [28] (Method III); (d) IBA*–IGWO Method IV. The circle at the lower-left corner denotes the start/finish location, the green diamonds denote the waypoints to be visited, the black bars denote obstacles, and the red line denotes the planned cruise path.
Figure 19. Scenario with 50 waypoints. (a) Algorithm in Reference [27] (Method I); (b) Reference [25] + GA (Method II); (c) Algorithm in Reference [28] (Method III); (d) IBA*–IGWO Method IV. The circle at the lower-left corner denotes the start/finish location, the green diamonds denote the waypoints to be visited, the black bars denote obstacles, and the red line denotes the planned cruise path.
Jmse 14 00722 g019
Figure 20. Path-planning results of traditional DWA with different weights and the proposed FDWA. The black bars denote obstacles, the circle at the lower-left corner denotes the start position, the colored dots denote the goal position, and the red line denotes the planned path.
Figure 20. Path-planning results of traditional DWA with different weights and the proposed FDWA. The black bars denote obstacles, the circle at the lower-left corner denotes the start position, the colored dots denote the goal position, and the red line denotes the planned path.
Jmse 14 00722 g020
Figure 21. Local path-planning process of the FDWA algorithm.
Figure 21. Local path-planning process of the FDWA algorithm.
Jmse 14 00722 g021
Figure 22. Results of the dynamic obstacle-avoidance method integrating FDWA with the global cruise path.
Figure 22. Results of the dynamic obstacle-avoidance method integrating FDWA with the global cruise path.
Jmse 14 00722 g022
Table 1. Fuzzy rule base for the guidance controller.
Table 1. Fuzzy rule base for the guidance controller.
Rule No.InputOutput
DgAgα′
1NSM
2NML
3NLXL
4MSS
5MMM
6MLL
7FSXS
8FML
9FLXL
Table 2. Fuzzy rule base for the safety controller.
Table 2. Fuzzy rule base for the safety controller.
Rule No.InputOutput
DgDoIoβγ
1NNSLS
2NNLXLXS
3NMSMM
4NMLLS
5NFSSL
6NFLMM
7MNSLS
8MNLXLXS
9MMSMM
10MMLLS
11MFSSL
12MFLMM
13FNSLS
14FNLXLXS
15FMSMM
16FMLLS
17FFSXSXL
18FFLSL
Table 3. Performance comparison of different USV cruise-path-planning algorithms.
Table 3. Performance comparison of different USV cruise-path-planning algorithms.
ParameterPath Length (m)Number of TurnsTime Cost (s)
30 Waypoints 50 Waypoints30 Waypoints50 Waypoints30 Waypoints50 Waypoints
Reference [27] (Method I)438.79556.971441915.1511.47
Reference [25] + GA (Method II)395.23484.491151696.2616.95
Reference [28] (Method III)389.96471.961301418.1423.47
Proposed algorithm
(Method IV)
378.84448.4172966.8819.35
Table 4. Experimental parameters.
Table 4. Experimental parameters.
ParameterValueParameterValue
Maximum linear velocity (m s−1)1.5Linear velocity resolution (m s−1)0.02
Maximum linear acceleration (m s−2)0.2Angular velocity resolution (rad s−1)π/900
Maximum angular velocity (rad s−1)2π/9Sampling interval (s)0.1
Maximum angular acceleration (rad s−2)π/18Prediction horizon (s)3
Table 5. Weight coefficients for the three DWA configurations.
Table 5. Weight coefficients for the three DWA configurations.
Caseαβγ
Case 10.22.52
Case 20.422.5
Case 30.61.52.5
Table 6. Performance comparison between traditional DWA with different fixed weights and the proposed FDWA.
Table 6. Performance comparison between traditional DWA with different fixed weights and the proposed FDWA.
CaseGoal ReachedPath Length (m)IterationsTime Cost (s)
Case 1Yes30.9547648.43
Case 2Yes30.6844843.67
Case 3No
FDWAYes27.5542241.79
Table 7. Obstacle information used in the dynamic obstacle-avoidance simulations presented in Figure 21.
Table 7. Obstacle information used in the dynamic obstacle-avoidance simulations presented in Figure 21.
Obstacle CategoryRepresentation in FiguresPositionEffective SizeVelocityHeadingMotion Pattern
Static obstacleGrey block-shaped region(7, 5)Approx. 2 × 1 cells0 m/sStationary
Dynamic obstacleGrey circular target with dashed grey trajectory(16, 17)Approx. 1 cell0.3 m/s270°Constant-speed linear motion
Table 8. Obstacle information used in the dynamic obstacle-avoidance simulations.
Table 8. Obstacle information used in the dynamic obstacle-avoidance simulations.
Obstacle CategoryRepresentation in FiguresPositionEffective SizeVelocityHeadingMotion Pattern
Static obstacleGrey block-shaped region(10, 8)Approx. 2 × 2 cells0 m/sStationary
(24, 20)Approx. 1 × 3 cells0 m/s
Dynamic obstacleGrey circular target with dashed grey trajectory(3, 5)Approx. 1 cell0.4 m/s270°Constant-speed linear motion
Table 9. Advantages, limitations, and engineering implications of the proposed framework.
Table 9. Advantages, limitations, and engineering implications of the proposed framework.
AspectAdvantagesLimitations
Global planner (IBA*–IGWO)Efficient multi-waypoint route generation; fewer turns; good mission continuityDepends on prior map information and static-environment assumptions
Local planner (FDWA)Good adaptability to unknown and moving obstacles; online trajectory adjustmentComputational burden increases because fuzzy inference is executed online at each control cycle
Heading-angle optimizationReduces unnecessary initial and transition turningPerformance may degrade if target-state estimation is noisy
Fuzzy adaptive weightingImproves environmental adaptability compared with fixed-weight DWARequires careful rule-based design and may be harder to tune for different platforms
Practical deploymentSuitable as a structured global–local planning frameworkFurther work is needed on embedded implementation, sensor uncertainty, delays, and environmental disturbances
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

Wang, M.; Gao, J.; Li, C.; Hong, M.; Guo, H.; Xie, H.; Shi, M. Dynamic Obstacle Avoidance Algorithm for Unmanned Vessels Based on FDWA and IBA*—IGWO Fusion. J. Mar. Sci. Eng. 2026, 14, 722. https://doi.org/10.3390/jmse14080722

AMA Style

Wang M, Gao J, Li C, Hong M, Guo H, Xie H, Shi M. Dynamic Obstacle Avoidance Algorithm for Unmanned Vessels Based on FDWA and IBA*—IGWO Fusion. Journal of Marine Science and Engineering. 2026; 14(8):722. https://doi.org/10.3390/jmse14080722

Chicago/Turabian Style

Wang, Min, Jinwen Gao, Chenhao Li, Mei Hong, Huaihai Guo, Hanfei Xie, and Minghang Shi. 2026. "Dynamic Obstacle Avoidance Algorithm for Unmanned Vessels Based on FDWA and IBA*—IGWO Fusion" Journal of Marine Science and Engineering 14, no. 8: 722. https://doi.org/10.3390/jmse14080722

APA Style

Wang, M., Gao, J., Li, C., Hong, M., Guo, H., Xie, H., & Shi, M. (2026). Dynamic Obstacle Avoidance Algorithm for Unmanned Vessels Based on FDWA and IBA*—IGWO Fusion. Journal of Marine Science and Engineering, 14(8), 722. https://doi.org/10.3390/jmse14080722

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