系统仿真学报 ›› 2024, Vol. 36 ›› Issue (11): 2684-2698.doi: 10.16182/j.issn1004731x.joss.23-0968

• 研究论文 • 上一篇    

移动机器人路径规划中A*算法的改进研究

姚得鑫1,2, 伞红军1,2, 王雅如3, 孙海杰1,2, 陈久朋1,2, 杨晓园1,2   

  1. 1.昆明理工大学 机电工程学院,云南 昆明 650500
    2.云南省先进装备智能制造技术重点实验室,云南 昆明 650500
    3.昆明理工大学 信息工程与自动化学院,云南 昆明 650500
  • 收稿日期:2023-07-31 修回日期:2023-10-11 出版日期:2024-11-13 发布日期:2024-11-19
  • 通讯作者: 伞红军
  • 第一作者简介:姚得鑫(1998-),男,硕士生,研究方向为机器人路径规划。
  • 基金资助:
    云南省科技厅重大专项(02002AC080001);云南省基础研究计划(202301AU070059)

Improvement of A* Algorithm in Path Planning of Mobile Robot

Yao Dexin1,2, San Hongjun1,2, Wang Yaru3, Sun Haijie1,2, Chen Jiupeng1,2, Yang Xiaoyuan1,2   

  1. 1.Faculty of Mechanical and Electrical Engineering, Kunming University of Science and Technology, Kunming 650500, China
    2.Key Laboratory of Advanced Equipment Intelligent Manufacturing Technology of Yunnan Province, Kunming 650500, China
    3.Faculty of Information Engineering and Automation, Kunming University of Science and Technology, Kunming 650500, China
  • Received:2023-07-31 Revised:2023-10-11 Online:2024-11-13 Published:2024-11-19
  • Contact: San Hongjun

摘要:

为解决传统A*算法在路径搜索过程中存在冗余节点过多、搜索效率不高、路径转折角度过大的问题,提出一种改进的A*算法来规划最优路径。将A*算法的搜索邻域增加到24个,以获得更加精确和宽阔的搜索视野;引入角度搜索算法,剔除了路径搜索过程中的不必要节点,使搜索过程更具有目标导向性;通过当前点与目标点的相对位置对启发函数进行指数衰减的加权,用于处理搜索速度与路径长度之间的关系;平滑所得路径,减少了路径折弯数和折弯角度,使得机器人运动更加平稳。结果表明:改进的A*算法相较于A*算法,在复杂与简单环境中搜索速度分别提升29.16%~65.82%和41.87%~64.71%,路径折弯数分别减少27.27%~63.64%和59.09%~62.12%,相较于D*算法在寻路速度、遍历节点及路径折弯数量方面都有较大提升,将改进A*算法在真实环境中进行实验,验证了其具有较好性能及路径规划能力。

关键词: A*算法, 移动机器人, 路径规划, 角度搜索, ROS

Abstract:

To solve the problems of excessively redundant nodes, low search efficiency, and excessive path turning angle in the path search of the traditional A* algorithm, an improved A* algorithm is proposed to plan the optimal path. First, the amount of search neighborhood of the A* algorithm is increased to 24 to obtain a more accurate and comprehensive search field. Second, the angle search algorithm is introduced, eliminating the unnecessary nodes in the path search and making the search more target-oriented. Third, the heuristic function is weighted by the exponential attenuation through the relative position of the current point and the target point, to deal with the relationship between the search speed and the path length. Finally, the obtained path is smoothed to reduce the number of path bends and the bending angle, making the robot move more smoothly. The results show that, compared with the search speed of the original A* algorithm, that of the improved one is increased by 29.16% ~ 65.82% in a complex environment and by 41.87% ~ 64.71% in a simple environment, and the number of path bends is reduced by 27.27% ~ 63.64% and 59.09% ~ 62.12%. Compared to the D* algorithm, there are significant improvements in pathfinding speed, traversing nodes, and the number of path bends. Furthermore, experiments on the improved A* algorithm are conducted in the real environment to verify its better performance and path planning ability.

Key words: A* algorithm, mobile robot, path planning, angle search, ROS (robot operating system)

中图分类号: