A-Star (A*) with Map Processing for the Global Path Planning of Autonomous Underwater and Surface Vehicles Operating in Large Areas
Abstract
:1. Introduction
- To develop a novel approach for global path planning by integrating the A* algorithm with image processing techniques aimed at reducing computation time;
- To validate the effectiveness of the proposed method in large-scale environments through numerical simulations;
- To compare the performance of the proposed method with the standard A* algorithm in terms of path safety, length, and computation time.
2. Related Works
3. Methods
3.1. Simulation Environment
3.2. Basic A* Algorithm
- n—the next node on the path;
- F(n)—the total path cost;
- G(n)—the cost of reaching the analysed cell from the starting point;
- H(n)—the cost of reaching the target from the analysed cell.
3.3. A* with Map Processing
- I(x,y)—the interpolated pixel value at the point (x,y);
- p(I,j)—the pixel value in the neighbourhood of the point (x,y) before scaling;
- w(d)—the weighting function (bicubic interpolation kernel) that defines the influence of neighbouring pixels on the value of I(x,y), calculated as follows:
- A—dilated image;
- B—structuring element which defines the neighbourhood of the pixel (x,y) being processed;
- (x,y)—coordinates of the pixel of a dilated image;
- (i,j)—the coordinates of the pixels within the structuring element.
4. Simulation Results and Analysis
- A large map size of 14,490,000 pixels;
- A large number of occupied pixels (obstacles);
- Non-regular and trap-shaped obstacles (e.g., U-shaped or V-shaped).
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Kot, R. Review of Obstacle Detection Systems for Collision Avoidance of Autonomous Underwater Vehicles Tested in a Real Environment. Electronics 2022, 11, 3615. [Google Scholar] [CrossRef]
- Liu, L.; Wang, X.; Yang, X.; Liu, H.; Li, J.; Wang, P. Path planning techniques for mobile robots: Review and prospect. Expert Syst. Appl. 2023, 227, 120254. [Google Scholar] [CrossRef]
- Cheng, C.; Zhang, H.; Sun, Y.; Tao, H.; Chen, Y. A cross-platform deep reinforcement learning model for autonomous navigation without global information in different scenes. Control Eng. Pract. 2024, 150, 105991. [Google Scholar] [CrossRef]
- Pan, C.; Zhang, Z.; Chen, Y.; Lin, D.; Huang, J. Improved Reinforcement Learning Task Supervisor for Path Planning of Logistics Autonomous System. IFAC-Pap. 2023, 56, 10010–10015. [Google Scholar] [CrossRef]
- Tang, Z.; Cao, X.; Zhou, Z.; Zhang, Z.; Xu, C.; Dou, J. Path planning of autonomous underwater vehicle in unknown environment based on improved deep reinforcement learning. Ocean Eng. 2024, 301, 117547. [Google Scholar] [CrossRef]
- Haoran, Z.; Hang, F.; Fan, Y.; Che, Q.; Yaoming, Z. Data-driven offline reinforcement learning approach for quadrotor’s motion and path planning. Chin. J. Aeronaut. 2024, in press. [Google Scholar] [CrossRef]
- Lan, W.; Jin, X.; Chang, X.; Zhou, H. Based on Deep Reinforcement Learning to path planning in uncertain ocean currents for Underwater Gliders. Ocean Eng. 2024, 301, 117501. [Google Scholar] [CrossRef]
- Ronghua, M.; Xinhao, C.; Zhengjia, W.; Du, X. Improved ant colony optimization for safe path planning of AUV. Heliyon 2024, 10, e27753. [Google Scholar] [CrossRef]
- Das, P.; Jena, P.K. Multi-robot path planning using improved particle swarm optimization algorithm through novel evolutionary operators. Appl. Soft Comput. 2020, 92, 106312. [Google Scholar] [CrossRef]
- Kot, R.; Szymak, P.; Piskur, P.; Naus, K. A Comparative Study of Different Collision Avoidance Systems with Local Path Planning for Autonomous Underwater Vehicles. IEEE Access 2024, 12, 61443–61466. [Google Scholar] [CrossRef]
- Ab Wahab, M.N.; Nazir, A.; Khalil, A.; Ho, W.J.; Akbar, M.F.; Noor, M.H.M.; Mohamed, A.S.A. Improved genetic algorithm for mobile robot path planning in static environments. Expert Syst. Appl. 2024, 249, 123762. [Google Scholar] [CrossRef]
- Hao, K.; Zhao, J.; Li, Z.; Liu, Y.; Zhao, L. Dynamic path planning of a three-dimensional underwater AUV based on an adaptive genetic algorithm. Ocean Eng. 2022, 263, 112421. [Google Scholar] [CrossRef]
- Mehmood, D.; Ali, A.; Ali, S.; Kulsoom, F.; Chaudhry, H.N.; Haider, A.Z.U. A Novel Hybrid Genetic and A-star Algorithm for UAV Path Optimization. In Proceedings of the 2024 IEEE 1st Karachi Section Humanitarian Technology Conference (KHI-HTC), Tandojam, Pakistan, 8–9 January 2024; pp. 1–5. [Google Scholar]
- Majeed, A.; Lee, S. A fast global flight path planning algorithm based on space circumscription and sparse visibility graph for unmanned aerial vehicle. Electronics 2018, 7, 375. [Google Scholar] [CrossRef]
- Bygi, M.N.; Ghodsi, M. 3D visibility graph. In Proceedings of the Computational Science and its Applications, Kuala Lumpur, Malaysia, 26–29 August 2007. [Google Scholar]
- You, Y.; Cai, C.; Wu, Y. 3d visibility graph based motion planning and control. In Proceedings of the 5th International Conference on Robotics and Artificial Intelligence, Singapore, 22–24 November 2019; pp. 48–53. [Google Scholar]
- Babič, M.; Hluchy, L.; Krammer, P.; Matovič, B.; Kumar, R.; Kovač, P. New method for constructing a visibility graph-network in 3D space and a new hybrid system of modeling. Comput. Inform. 2017, 36, 1107–1126. [Google Scholar] [CrossRef]
- Harabor, D.; Grastien, A. Online graph pruning for pathfinding on grid maps. In Proceedings of the AAAI Conference on Artificial Intelligence, San Francisco, CA, USA, 7–11 August 2011; Volume 25, pp. 1114–1119. [Google Scholar]
- Erke, S.; Bin, D.; Yiming, N.; Qi, Z.; Liang, X.; Dawei, Z. An improved A-Star based path planning algorithm for autonomous land vehicles. Int. J. Adv. Robot. Syst. 2020, 17, 1729881420962263. [Google Scholar] [CrossRef]
- Tang, G.; Tang, C.; Claramunt, C.; Hu, X.; Zhou, P. Geometric A-star algorithm: An improved A-star algorithm for AGV path planning in a port environment. IEEE Access 2021, 9, 59196–59210. [Google Scholar] [CrossRef]
- Wang, H.; Qi, X.; Lou, S.; Jing, J.; He, H.; Liu, W. An Efficient and Robust Improved A* Algorithm for Path Planning. Symmetry 2021, 13, 2213. [Google Scholar] [CrossRef]
- Martins, O.O.; Adekunle, A.A.; Olaniyan, O.M.; Bolaji, B.O. An Improved multi-objective a-star algorithm for path planning in a large workspace: Design, Implementation, and Evaluation. Sci. Afr. 2022, 15, e01068. [Google Scholar] [CrossRef]
- Li, J.; Zhang, W.; Hu, Y.; Fu, S.; Liao, C.; Yu, W. RJA-Star Algorithm for UAV Path Planning Based on Improved R5DOS Model. Appl. Sci. 2023, 13, 1105. [Google Scholar] [CrossRef]
- Kabir, R.; Watanobe, Y.; Islam, M.R.; Naruse, K. Enhanced Robot Motion Block of A-Star Algorithm for Robotic Path Planning. Sensors 2024, 24, 1422. [Google Scholar] [CrossRef]
- Zhang, D.; Chen, C.; Zhang, G. AGV path planning based on improved A-star algorithm. In Proceedings of the 2024 IEEE 7th Advanced Information Technology, Electronic and Automation Control Conference (IAEAC), Chongqing, China, 15–17 March 2024; Volume 7, pp. 1590–1595. [Google Scholar]
- Yin, C.; Tan, C.; Wang, C.; Shen, F. An Improved A-Star Path Planning Algorithm Based on Mobile Robots in Medical Testing Laboratories. Sensors 2024, 24, 1784. [Google Scholar] [CrossRef]
- Li, J.; Kang, F.; Chen, C.; Tong, S.; Jia, Y.; Zhang, C.; Wang, Y. The Improved A* Algorithm for Quadrotor UAVs under Forest Obstacle Avoidance Path Planning. Appl. Sci. 2023, 13, 4290. [Google Scholar] [CrossRef]
- Wang, H.; Lou, S.; Jing, J.; Wang, Y.; Liu, W.; Liu, T. The EBS-A* algorithm: An improved A* algorithm for path planning. PLoS ONE 2022, 17, e0263841. [Google Scholar] [CrossRef] [PubMed]
- Fu, B.; Chen, L.; Zhou, Y.; Zheng, D.; Wei, Z.; Dai, J.; Pan, H. An improved A* algorithm for the industrial robot path planning with high success rate and short length. Robot. Auton. Syst. 2018, 106, 26–37. [Google Scholar] [CrossRef]
- Liao, T.; Chen, F.; Wu, Y.; Zeng, H.; Ouyang, S.; Guan, J. Research on Path Planning with the Integration of Adaptive A-Star Algorithm and Improved Dynamic Window Approach. Electronics 2024, 13, 455. [Google Scholar] [CrossRef]
- Chatzisavvas, A.; Dossis, M.; Dasygenis, M. Optimizing Mobile Robot Navigation Based on A-Star Algorithm for Obstacle Avoidance in Smart Agriculture. Electronics 2024, 13, 2057. [Google Scholar] [CrossRef]
- Hong, Z.; Sun, P.; Tong, X.; Pan, H.; Zhou, R.; Zhang, Y.; Han, Y.; Wang, J.; Yang, S.; Xu, L. Improved A-Star algorithm for long-distance off-road path planning using terrain data map. ISPRS Int. J. Geo-Inf. 2021, 10, 785. [Google Scholar] [CrossRef]
- Ju, C.; Luo, Q.; Yan, X. Path planning using an improved a-star algorithm. In Proceedings of the 2020 11th International Conference on Prognostics and System Health Management (PHM-2020 Jinan), Jinan, China, 23–25 October 2020; pp. 23–26. [Google Scholar]
- Li, X.; Hu, X.; Wang, Z.; Du, Z. Path planning based on combinaion of improved A-STAR algorithm and DWA algorithm. In Proceedings of the 2020 2nd International Conference on Artificial Intelligence and Advanced Manufacture (AIAM), Manchester, UK, 15–17 October 2020; pp. 99–103. [Google Scholar]
- Li, J.; Xiong, X.; Yang, Y. A Method of UAV Navigation Planning Based on ROS and Improved A-star Algorithm. In Proceedings of the 2023 CAA Symposium on Fault Detection, Supervision and Safety for Technical Processes (SAFEPROCESS), Yibin, China, 22–24 September 2023; pp. 1–5. [Google Scholar]
- The MathWorks Inc. MATLAB Version: 9.13.0 (R2022b). Available online: https://www.mathworks.com (accessed on 12 September 2023).
- Google.pl. Available online: https://www.google.pl/maps/@54.3985359,18.7207342,7518a,35y,133.79h,0.72t/data=!3m1!1e3?entry=ttu (accessed on 29 August 2023).
- Panorama 360—Port Północny. Available online: http://www.port-polnocny.pl/Panorama_360/Port_Polnocny.html (accessed on 15 September 2023).
- Keys, R. Cubic convolution interpolation for digital image processing. IEEE Trans. Acoust. Speech Signal Process. 1981, 29, 1153–1160. [Google Scholar] [CrossRef]
Source | Method | Brief Description | Map Size [pixels] | Path Length (Proposed/Basic A*)—The Worst Cases) | Max. Calculation Time Ratio (Basic A*/Proposed)—The Best Cases) |
---|---|---|---|---|---|
[18] | JPS (A*) | JPS A* speeds up pathfinding by expanding only pivotal nodes called “jump points”, which are directly reachable in a straight line or after encountering forced neighbours, bypassing redundant intermediate nodes. | From 30 × 21 To 1104 × 1260 | 100% | 215 |
[19] | Variable Step A* | The Variable Step A* algorithm dynamically adjusts its search step size based on obstacle distribution to optimise pathfinding efficiency and accuracy for autonomous land vehicles. | NA | 97.8% | 7.8 (based on the difference in expanded points) |
[20] | Geometric A* | The Geometric A* algorithm generates a grid map for initial pathfinding with A*, optimises by eliminating irregular nodes for smoother turns, and then applies cubic B-spline interpolation to smooth the path for realistic navigation. | 20 × 20 50 × 50 100 × 100 | 58.9% | 1.6 |
[21] | EBHSA* | The EBHSA* method enhances the A* algorithm by integrating expansion distance, using bidirectional search, optimising heuristic function, and smoothing to improve path robustness and efficiency while reducing collision risks and unnecessary turns for autonomous land vehicles. | 50 × 50 100 × 100 200 × 200 | N/A | 30 |
[22] | IMOA* | IMOA-star generates and stores the obstacle map as a pickle file, eliminating the need to recreate it for future path planning in the same workspace and thus significantly reducing computation time. The algorithm also incorporates a path-problem-aware executor to refine the path, reducing its length and improving smoothness before the final output. | 7120 × 9490 | 98.3% | 1 (first use) 8440 (next use) |
[23] | RJA* | The RJA-star algorithm improves UAV path planning by detecting obstacles, selecting the closest one as a coercive neighbour, and generating jump points at key vertices to optimise the path. The algorithm iteratively evaluates these jump points, computes the cost for each potential path, and guides the UAV along the most efficient route until the target is reached. | 15 × 30 × 15 to 100 × 100 × 15 | 97.7% | 42.5 |
[30] | Adaptive A* algorithm | The adaptive A-star algorithm introduces adaptive weights in the heuristic function to optimise path quality, while the improved dynamic window approach (DWA) adds a trajectory point estimation function, enhancing obstacle avoidance and path smoothness, enabling effective global path planning and dynamic obstacle avoidance. | 30 × 30 | 80.1% | 1.8 |
[31] | Optimised A* algorithm | The optimised A* algorithm involves using dynamic weight coefficients, allowing for the adjustment of search priorities based on conditions, and integrating Bezier curves to smooth the generated path, enhancing its fluidity and efficiency. | 10 × 10 | 71.1% | 1.8 |
[32] | Improved A* algorithm | The algorithm was optimised by implementing a hybrid data structure combining a minimum heap with a 2D array, reducing the time complexity of data processing. Additionally, the search strategy was refined by deferring the end-point check until later in the process, significantly improving execution efficiency. | 13,139 × 13,245 | 100% | 551 |
[33] | Improved A* algorithm | The algorithm was optimised by introducing a method to merge adjacent small segments of the path and using the shortest line segment between two points to guide path planning. | 20 × 20 | 96.7% | 0.3 |
[34] | Improved A* algorithm | The algorithm’s improvements include extending the search neighbourhood in the traditional A-star algorithm to increase path smoothness and reduce redundant turning points, as well as integrating an enhanced DWA algorithm for better dynamic obstacle avoidance. | 30 × 30 | 97.9% | 2.3 |
[24] | ORMBA* | The algorithm incorporates two key optimisations: an adaptive cost function that dynamically adjusts the movement cost based on the goal node and an optimised robot motion block (RMB) that reduces unnecessary and redundant node searches. | 261 × 261 462 × 261 462 × 462 | 102.7% | 140 |
[26] | Improved A* algorithm | The algorithm includes an improved evaluation function that considers both distance and angular deviation from the optimal path and a bidirectional search strategy that reduces the number of search nodes. Additionally, the algorithm eliminates redundant nodes and smooths the resulting path using cubic uniform B-spline curves. | 30 × 30 50 × 50 | 96.5% | 2.8 |
[27] | Improved A* algorithm | The algorithm features a segmented evaluation function with dynamic heuristic adjustments to balance convergence speed and path quality, a steering cost heuristic that minimises sharp turns, a strategy for removing redundant turning points, and a smoothing process using quasi-uniform cubic B-splines to ensure a smooth, efficient path. | 246 × 200 | 95.2% | 1.7 |
[35] | Improved A* algorithm | The improved algorithm includes dynamic weighting in the evaluation function to adapt the search priorities based on the node’s location and directional screening of the search neighbourhood using azimuth angles to enhance efficiency. Additionally, the algorithm incorporates a safety radius to avoid obstacles. It employs Bezier curves to smooth the path, resulting in fewer inflexion points and a safer path. | 70 × 60 | 87.7% | 1.2 |
[25] | APF-A* | APF-A* uses dynamic weight adjustments in the cost function to minimise unnecessary turns by penalising sharp turning angles. It integrates the artificial potential field method to incorporate obstacle information, ensuring that turning points are strategically placed away from obstacles. These optimisations lead to smoother paths with reduced turning points near obstacles, enhancing path stability and reducing the risk of collisions. | 20 × 20 40 × 40 200 × 150 | 100% | 1.2 |
This article | A* with map processing | The algorithm uses resizing and morphological image processing to reduce the computation time of the A* algorithm by map optimisation. | 3600 × 4025 | 102.8% | 719 |
Morphological Operations: Dilation + Closing | |||
---|---|---|---|
Scaling Factor | Disc: Radius r = 4 Pixels | Square: 4 × 4 Pixels | Diamond: Distance between the Origin and the Points of the Diamond r = 4 Pixels |
0.1 | |||
0.2 | |||
0.4 |
Morphological Operations: Dilation + Closing | |||
---|---|---|---|
Scaling Factor | Disc, Diamond r = 2 | Square (5 × 5 Pixels) | Square (4 × 4 Pixels) |
0.1 | |||
0.2 | |||
0.4 |
Parameter | Value |
---|---|
Scaling factor | 0.2 |
Structural element shape | Square |
Structural element size | 4 × 4 pixels |
Morphological operations | Dilation + closing |
Threshold segmentation | 75/255 |
Path Length | |||
---|---|---|---|
Case | A* with Map Processing [m] | A* [m] | Difference in Path Length [m] |
1 | 1932 | 1932 | 0 |
2 | 3081.5 | 3010.4 | 71.1 |
3 | 1092.5 | 695.5 | 397 |
4 | 2385.6 | 2378.5 | 7.1 |
5 | 3019.2 | 2937 | 82.2 |
6 | 5673.5 | 5635.7 | 37.8 |
Total 1 | 16,091.8 | 15,893.6 | 198.2 |
Calculation Time | |||
---|---|---|---|
Case | A* with Map Processing [s] | A* [s] | Ratio (A*/A* with Map Processing) |
1 | 89 (1 m 29 s) | 59,542 (2 days 10 h 22 m) | 669 |
2 | 356 (5 m 56 s) | 210,122 (2 days 10 h 22 m) | 590 |
3 | 33 | 24,083 (6 h 41 m) | 730 |
4 | 56 | 40,250 (11 h 10 m) | 719 |
5 | 207 (3 m 27 s) | 120,262 (1 day 9 h 24 m) | 584 |
6 | 1399 (23 m 19 s) | 728,163 (8 days 10 h 16 m) | 521 |
Total 1 | 2098 (34 m) | 1,156,797 (13 days 9 h 19 m) | 551 |
Case | Minimal Distance to the Obstacle | Number of Waypoints | ||
---|---|---|---|---|
A* with Map Processing [m] | A* [m] | A* with Map Processing [s] | A* [s] | |
1 | 12.37 | 6.08 | 370 | 1846 |
2 | 4.47 | 1.00 | 492 | 2388 |
3 | 3.16 | 1.00 | 174 | 590 |
4 | 4.00 | 1.00 | 459 | 2288 |
5 | 4.00 | 1.00 | 543 | 2651 |
6 | 4.47 | 1.00 | 966 | 4778 |
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Kot, R.; Szymak, P.; Piskur, P.; Naus, K. A-Star (A*) with Map Processing for the Global Path Planning of Autonomous Underwater and Surface Vehicles Operating in Large Areas. Appl. Sci. 2024, 14, 8015. https://doi.org/10.3390/app14178015
Kot R, Szymak P, Piskur P, Naus K. A-Star (A*) with Map Processing for the Global Path Planning of Autonomous Underwater and Surface Vehicles Operating in Large Areas. Applied Sciences. 2024; 14(17):8015. https://doi.org/10.3390/app14178015
Chicago/Turabian StyleKot, Rafał, Piotr Szymak, Paweł Piskur, and Krzysztof Naus. 2024. "A-Star (A*) with Map Processing for the Global Path Planning of Autonomous Underwater and Surface Vehicles Operating in Large Areas" Applied Sciences 14, no. 17: 8015. https://doi.org/10.3390/app14178015
APA StyleKot, R., Szymak, P., Piskur, P., & Naus, K. (2024). A-Star (A*) with Map Processing for the Global Path Planning of Autonomous Underwater and Surface Vehicles Operating in Large Areas. Applied Sciences, 14(17), 8015. https://doi.org/10.3390/app14178015