Improved A-star Algorithm for Safety Insured Optimal Path with Smoothed Corner Turns

Duan Shuyong, Qifan Wang, Xu Han, Guirong LiuJournal of Mechanical Engineering 2020

Abstract: Path planning is essential for improving search efficiency and ensuring operational safety for robots. Standard algorithms often prioritize distance over safety, leading to paths that dangerously hug obstacles. This paper proposes an improved A* algorithm that integrates a 4-neighborhood search for efficiency and a Safety Distance Matrix to maintain clearance. A two-stage smoothing process involving skip-node simplification and circular arc transitions is applied to reduce mechanical wear. Experimental results demonstrate that the proposed algorithm significantly reduces turning points and search time while ensuring high reliability and safety during task execution.

Introduction

Standard A is the "bread and butter" of path planning because it is guaranteed to find the shortest path in a grid. However, "shortest" isn't always "best" for real-world robots. Two main issues arise: Safety Risks, where paths scrape against obstacle edges, and Mechanical Wear, caused by jagged, high-torque turns that reduce machine lifespan. This paper introduces an improved A algorithm designed to solve these issues by integrating a "Safety Distance Matrix" into the cost function and applying a two-stage smoothing process.

Methodology

The proposed approach consists of three main innovations designed to optimize both the search process and the resulting trajectory.

Neighborhood Optimization

By comparing 4-neighborhood, 8-neighborhood, and 24-neighborhood searches, the researchers found that 4-neighborhood search is often superior. While it produces a slightly longer initial path, it results in significantly fewer turning points and faster search times, making the subsequent smoothing process much simpler.

Safety Distance Matrix ($K_n$)

Instead of just looking at the current node, the algorithm evaluates a matrix centered on the potential next step. If an obstacle falls within this "buffer zone," a penalty term $aK(n)$ is added to the cost function: $$f(n) = g(n) + h(n) + aK(n)$$ This pushes the path away from obstacles without requiring a complete pre-processing of the map.

Flowchart of the improved A* algorithm implementation.

Two-Stage Path Smoothing

  1. Skip-Node Simplification: The algorithm looks ahead to see if a straight line between non-adjacent points is unobstructed, effectively "string-pulling" the path taut.
  2. Circular Arc Transitions: Remaining sharp corners are replaced with smooth circular arcs, allowing a robot to maintain momentum rather than coming to a full stop at every turn.

Results and Discussion

The 4-neighborhood search matched the speed of the 8-neighborhood search (1.5s) but reduced the number of turning points from 8 down to just 1 in comparative tests. Visual results confirm that the path successfully shifts away from obstacle boundaries as the safety matrix size increases.

Final optimized path showing smooth transitions and safe clearance from obstacles.

The post-processing successfully transformed jagged, multi-segment paths into continuous trajectories with rounded corners. This significantly reduces the "stop-and-go" nature of the movement, which the paper explicitly links to reduced peak motor current and prevention of mechanical fatigue.

Conclusion

The improved A* algorithm provides a robust solution for robot path planning by balancing search efficiency with physical safety and hardware longevity. By using a 4-neighborhood search and a tunable safety matrix, the system can be adapted for various robot sizes and workspace complexities. Future work will focus on extending these concepts to dynamic environments and 3D workspaces.

Summary updated

BibTeX
@article{shuyong2020improved,
  author = {DUAN Shuyong and Qifan Wang and Xu Han and Guirong Liu},
  title = {{Improved A-star Algorithm for Safety Insured Optimal Path with Smoothed Corner Turns}},
  journal = {Journal of Mechanical Engineering},
  year = {2020},
  doi = {10.3901/jme.2020.18.205},
}
Figure