The Tangent Bug algorithm is a popular algorithm for motion planning in robotics which involves moving along the boundary of an obstacle until the path can be connected to the goal. Here's an implementation in MATLAB:
main.m2151 chars65 lines
The tangent_bug
function takes in the starting point, goal point, and an occupancy grid map as input, and returns a path from the starting point to the goal point. The algorithm moves along the boundary of obstacles to find an obstacle-free path to the goal.
gistlibby LogSnag