基于正六边形栅格和A*算法的船舶路径规划方法

    Ship path planning method based on hexagonal grid and A* algorithm

    • 摘要: 针对传统正方形栅格在船舶路径规划中存在的安全裕度不足、搜索效率不高以及难以满足船舶运动特性的缺陷,提出一种基于六边形栅格与改进A*算法的船舶路径规划方法。根据正六边形栅格的几何特性与船舶避碰安全距离,构建六边形栅格邻域模型,并设计适用于六边形栅格的节点编码方法;结合船舶惯性运动特性与转向约束,建立船舶在六边形栅格中的运动代价模型;在此基础上,对传统A*算法进行启发函数与转向代价改进,提出面向船舶路径规划的六边形栅格搜索算法。对比试验结果表明:与正方形栅格8邻域方法相比,六边形栅格可在保持安全距离的前提下使路径长度缩短5.51%,搜索次数减少30.7%;与正方形栅格4邻域方法相比,路径长度缩短17.0%,转向点数量减少38.6%。基于六边形栅格地图生成的路径更平滑、转向更符合船舶操纵特性。

       

      Abstract: To address the limitations of the conventional square grid in ship path planning-such as insufficient safety margins, low search efficiency, and poor adaptability to ship maneuvering characteristics-this study proposes a ship path planning method based on a regular hexagonal grid and an improved A* algorithm. A hexagonal grid neighborhood model is constructed according to the geometric properties of the regular hexagonal grid and the required ship-obstacle safety clearance, together with an encoding scheme suitable for hexagonal cells. A ship motion cost model is developed by incorporating ship inertia and turning constraints. Based on this model, the traditional A* algorithm is improved by optimizing the heuristic function and introducing a turning-penalty mechanism, thereby forming a hexagonal-grid-based search algorithm for ship path planning. Comparative experiments show that, compared with the square-grid 8-neighborhood method, the proposed method shortens the path by 5.51% and reduces the number of search nodes by 30.7%; compared with the 4-neighborhood method, the path length is reduced by 17.0% and the number of turning points decreases by 38.6%. The paths generated on the hexagonal grid are smoother and more consistent with ship maneuvering characteristics.

       

    /

    返回文章
    返回