Research on path planning of underwater inspection robot based on improved ant colony algorithm
-
摘要: 针对传统蚁群算法在水下巡检机器人路径规划时存在收敛速度慢、易陷入局部最优、水下环境适应性差的问题, 提出一种改进蚁群算法。首先优化蚁群信息素更新策略, 构建包含路径长度、安全性、平滑性与水流适配性的综合评价函数, 通过路径适应度高低来动态调整信息素释放系数大小, 并根据迭代进度动态调整信息素挥发系数, 在算法迭代后期加快收敛速度; 其次在启发函数中引入水流因素与障碍物距离因素, 引导蚂蚁选择质量更好的路径; 随后融合模拟退火机制避免算法陷入局部最优; 最后结合B样条曲线对路径做平滑性处理, 减少水下机器人的能耗。仿真结果表明, 改进蚁群算法不仅收敛速度更快、转点数量更少, 还缩短了最优路径长度。Abstract: Aiming at the problems of slow convergence speed, easy to fall into local optimum and poor environmental adaptability of traditional ant colony algorithm in path planning of underwater inspection robot, an improved ant colony algorithm suitable for path planning of underwater inspection robot is proposed. Firstly, the ant colony pheromone update strategy is optimized, and a comprehensive evaluation function including path length, safety, smoothness and water flow adaptability is constructed. The pheromone release coefficient is dynamically adjusted by the path fitness. Adjust the pheromone volatilization coefficient to adjust with the iterative process, and speed up the convergence speed in the later stage of the algorithm iteration; the water flow factor and obstacle distance factor are introduced into the heuristic function to guide the ants to choose a better path. Then the simulated annealing mechanism is integrated to avoid the algorithm falling into local optimum. Finally, the B-spline curve is used to smooth the path to reduce the energy consumption of the underwater vehicle. The simulation results show that the improved ant colony algorithm not only has faster convergence speed and fewer turning points, but also significantly shortens the optimal path length.
-
表 1 传统蚁群算法仿真参数
Table 1. Simulation parameters of traditional ant colony algorithm
蚁群
数量最大迭
代次数信息素重
要性因子启发函数
重要性因子信息素挥
发系数30 200 1.0 5.0 0.1 表 2 改进蚁群算法仿真参数
Table 2. Simulation parameters of improved ant colony algorithm
蚁群
数量最大迭
代次数退火初
始温度路径长
度权重安全性
权重平滑性
权重水流
权重最小安
全距离30 200 15° 0.7 0.1 0.1 0.1 0.5 m 表 3 20×20栅格下各算法运算结果对比
Table 3. Operation results comparison of various algorithms in 20×20 grid
最优路径
长度/m转角
数量迭代
次数运行
时间/s传统蚁群算法 31.56 10 88 2.25 文献[12]蚁群算法 31.27 8 47 8.75 改进蚁群算法 31.06 6 46 5.21 表 4 30×30栅格下各算法运算对比结果
Table 4. Operation results comparison of various algorithms in 30×30 grid
最优路径
长度/m转角
数量迭代
次数运行
时间/s传统蚁群算法 53.46 29 91 5.27 文献[12]蚁群算法 51.15 10 54 15.34 改进蚁群算法 49.67 5 62 10.25 -
[1] 陈永康, 蒲德奎, 何小丽. 基于PSO融合蚁群算法的机器人路径规划研究[J]. 重庆电力高等专科学校学报, 2024, 29(6): 20-24. doi: 10.3969/j.issn.1008-8032.2024.06.006Chen Y K, Pu D K, He X L. Research on robot path planning based on pso fused ant colony algorithm[J]. Journal of Chongqing Electric Power College, 2024, 29(6): 20-24. doi: 10.3969/j.issn.1008-8032.2024.06.006 [2] 吕诗为, 朱迎谷, 卢倪斌, 等. 基于改进粒子群算法的水下机器人路径规划研究[J]. 控制与信息技术, 2023(6): 58-64. doi: 10.13889/j.issn.2096-5427.2023.06.009LÜ S W, Zhu Y G, Lu N B, et al. Research on path planning of underwater robots based on improved particle swarm optimization algorithm[J]. Control and Information Technology, 2023(6): 58-64. doi: 10.13889/j.issn.2096-5427.2023.06.009 [3] 姚艳杰, 李一卓, 衣正尧, 等. 基于改进人工势场法的水下机器人路径规划[J]. 船舶工程, 2025, 47(4): 1-10. doi: 10.13788/j.cnki.cbgc.2025.04.01Yao Y J, Li Y Z, Yi Z Y, et al. Path Planning of underwater robot based on improved artificial potential field method[J]. Ship Engineering, 2025, 47(4): 1-10. doi: 10.13788/j.cnki.cbgc.2025.04.01 [4] 王慧锬, 陈坤, 何丽, 等. 融合改进A*算法和人工势场法的机器鱼路径规划[J]. 电子测量技术, 2025, 48(13): 58-72. doi: 10.19651/j.cnki.emt.2517856Wang H T, Chen K, He L, et al. Path planning of robotic fish combining improved A* algorithm and artificial potential field method[J]. Electronic Measurement Technology, 2025, 48(13): 58-72. doi: 10.19651/j.cnki.emt.2517856 [5] 刘志华, 张冉, 郝梦男, 等. 基于改进T分布烟花-粒子群算法的AUV全局路径规划[J]. 电子学报, 2024, 52(9): 3123-3134. doi: 10.12263/DZXB.20230814Liu Z H, Zhang R, Hao M N, et al. Global path planning of AUV based on improved T-distribution fireworks-particle swarm optimization algorithm[J]. Acta Electronica Sinica, 2024, 52(9): 3123-3134. doi: 10.12263/DZXB.20230814 [6] 钱程. 基于边缘计算的动环监管自适应平台研究[D]. 哈尔滨: 哈尔滨理工大学, 2022, 2. [7] 胡佳伟, 张佳伊, 裴庆雨. 一种基于改进蚁群算法的无人机路径规划方法[J]. 无线电工程, 2025, 55(10): 2105-2113. doi: 10.3969/j.issn.1003-3106.2025.10.018Hu J W, Zhang J Y, Pei Q Y. A path planning method for uav based on improved ant colony algorithm[J]. Radio Engineering, 2025, 55(10): 2105-2113. doi: 10.3969/j.issn.1003-3106.2025.10.018 [8] 许明乐, 游晓明, 刘升. 基于统计分析的自适应蚁群算法及应用[J]. 计算机应用与软件, 2017, 34(7): 204-211. doi: 10.3969/j.issn.1000-386x.2017.07.038Xu M L, You X M, Liu S. Adaptive ant colony algorithm based on statistical analysis and its application[J]. Computer Applications and Software, 2017, 34(7): 204-211. doi: 10.3969/j.issn.1000-386x.2017.07.038 [9] 刘颖, 刘为国. 基于改进蚁群算法的机器人路径规划研究[J]. 黑龙江工业学院学报(综合版), 2025, 25(8): 112-118.Liu Y, Liu W G. Research on robot path planning based onimproved ant colony algorithm[J]. Journal of Heilongjiang University of Technology(Comprehensive Edition), 2025, 25(8): 112-118. [10] 付乐乐, 陈宏, 巩伟杰. 基于改进蚁群算法的水下机器人路径规划[J]. 自动化与仪表, 2022, 37(4): 46-50. doi: 10.19557/j.cnki.1001-9944.2022.04.010Fu L L, Chen H, Gong W J. Path planning of underwater robot based on improved ant colony algorithm[J]. Automation & Instrumentation, 2022, 37(4): 46-50. doi: 10.19557/j.cnki.1001-9944.2022.04.010 [11] 刘兴盛, 王俊雄. 基于改进蚁群算法的水下机器人路径规划算法[J]. 舰船科学技术, 2022, 44(21): 80-87. doi: 10.3404/j.issn.1672-7649.2022.21.017Liu X S, Wang J X. Path Planning Algorithm for UnderwaterRobot Based on Improved Ant Colony Algorithm[J]. Ship Science and Technology, 2022, 44(21): 80-87. doi: 10.3404/j.issn.1672-7649.2022.21.017 [12] 金将, 王小平, 臧铁钢, 等. 基于改进蚁群算法的机器人避障路径规划[J]. 计算机工程与设计, 2025, 46(4): 950-958. doi: 10.16208/j.issn1000-7024.2025.04.002Jin J, Wang X P, Zang T G, et al. Obstacle avoidance path Planning for Robot Based on Improved Ant Colony Algorithm[J]. Computer Engineering and Design, 2025, 46(4): 950-958. doi: 10.16208/j.issn1000-7024.2025.04.002 [13] 张代雨, 杨超翔, 鲍超明, 等. 基于改进融合蚁群A*算法的路径规划方法[J]. 舰船科学技术, 2025, 47(9): 96-101. doi: 10.3404/j.issn.1672-7649.2025.09.017Zhang D Y, Yang C X, Bao C M, et al. Path planning method based on improved fusion ant colony algorithm and A*algorithm[J]. Ship Science and Technology, 2025, 47(9): 96-101. doi: 10.3404/j.issn.1672-7649.2025.09.017 [14] 林梦成, 薛波, 刘昕宇. 基于改进蚁群算法的焊接机器人路径规划方法[J]. 传感器与微系统, 2025, 44(7): 24-27,31. doi: 10.13873/J.1000-9787(2025)07-0024-04Lin M C, Xue B, Liu X Y. Path planning method for welding robot based on improved ant colony algorithm[J]. Transducer and Microsystem Technologies, 2025, 44(7): 24-27,31. doi: 10.13873/J.1000-9787(2025)07-0024-04 [15] 鲍佳松. 基于改进蚁群算法的无人清舱作业路径规划方法与研究[J]. 苏州科技大学学报(工程技术版), 2026, 39(S1): 15-20.Bao J S. Path planning method and research for unmanned cabin cleaning operation based on improved ant colony algorithm[J]. Journal of Suzhou University of Science and Technology (Engineering and Technology Edition), 2026, 39(S1): 15-20. [16] 郝兆明, 安平娟, 李红岩, 等. 增强目标启发信息蚁群算法的移动机器人路径规划[J]. 科学技术与工程, 2023, 23(22): 9585-9591. doi: 10.3969/j.issn.1671-1815.2023.22.030Hao Z M, An P J, Li H Y, et al. Mobile robot path planning based on ant colony algorithm with enhanced target heuristic information[J]. Science Technology and Engineering, 2023, 23(22): 9585-9591. doi: 10.3969/j.issn.1671-1815.2023.22.030 [17] 刘璐, 沈小伟, 葛超, 等. 基于改进蚁群算法的植保无人机路径规划[J]. 计算机仿真, 2024, 41(1): 39-43. doi: 10.3969/j.issn.1006-9348.2024.01.009Liu L, Shen X W, Ge C, et al. Path planning of plant protection uav based on improved ant colony algorithm[J]. Computer Simulation, 2024, 41(1): 39-43. doi: 10.3969/j.issn.1006-9348.2024.01.009 -

下载: