ArticleslgStudy

engineering

Any-angle path planning

Any-angle path planning is a engineering topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Any-angle path planning rather than just read about it. In short: Any-angle path planning algorithms are pathfinding algorithms that search for a Euclidean shortest path between two points on a grid map while allowing the turns in the path to have any angle. The result is a path that cuts directly through open areas and has relatively few turns.

Any-angle path planning — main illustration
Any-angle path planning — illustration

Key takeaways

  • Any-angle path planning belongs to engineering; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Any-angle path planning to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Any-angle path planning from memory before moving on to harder problems.

Reference excerpt

Any-angle path planning algorithms are pathfinding algorithms that search for a Euclidean shortest path between two points on a grid map while allowing the turns in the path to have any angle. The result is a path that cuts directly through open areas and has relatively few turns. More traditional pathfinding algorithms such as A* either lack in performance or produce jagged, indirect paths.

Background Real-world and many game maps have open areas that are most efficiently traversed in a direct way. Traditional algorithms are ill-equipped to solve these problems:

A* with an 8-connected discrete grid graph (2D; 26 for the 3D triple cubic graph) is very fast, but only looks at paths in 45-degree increments. This behavior gives on average 8% extra path length in 2D and 13% in 3D. A quick post-smoothing step can be used to straighten (thus shorten) the jagged output, but the result is not guaranteed to be optimal as it does not look at all the possible paths. (More specifically, they cannot change what side of a blocked cell is traversed.) The advantage is that all optimizations of grid A* like jump point search will apply. A visibility graph with all the grid points can be searched with A* for the optimal solution in 2D space. However, the performance is problematic since the number of edges in a graph with V vertices is O(V2). Such a graph does not always provide an optimal solution in 3D space. An any-angle path planning algorithm aims to produce optimal or near-optimal solutions while taking less time than the basic visibility graph approach. Fast any-angle algorithms take roughly the same time as a grid-based solution to compute.

Definitions Taut path A path where every heading change in the path “wraps” tightly around some obstacle. For a uniform grid, only taut paths can be optimal. Single-source A path-finding problem that seeks to find the shortest path to all parts from the graph, starting from one vertex.

Algorithms

A*-based So far, five main any-angle path planning algorithms that are based on the heuristic search algorithm A* have been developed, all of which propagate information along grid edges:

Field D* (FD*) and 3D Field D* - Dynamic pathfinding algorithms based on D* that use interpolation during each vertex expansion and find near-optimal paths through regular, nonuniform cost grids. Field D* therefore tries to solve the weighted region problem and 3D Field D* the corresponding three-dimensional problem. Multi-resolution Field D* – Extension of Field D* for multi-resolution grids. Theta* - Uses the same main loop as A*, but for each expansion of a vertex s, there is a line-of-sight check between parent(s) and the successor of s, s′. If there is line-of-sight, the path from parent(s) to s′ is used since it will always be at least as short as the path from parent(s) to s and s to s′. This algorithm works only on uniform-cost grids. AP Theta* is an optimization of Theta* that uses angle-propagation to decrease the cost of performing line-of-sight calculations to O(1). Lazy Theta* is another optimization of Theta* that uses lazy evaluation to reduce the number of line-of-sight calculations by delaying the line-of-sight calculations for each node from when it is explored to when it is expanded. It is capable enough to run in 3D space. Incremental Phi* is an incremental, more efficient variant of Theta* designed for unknown 2D environments. Strict Theta* and Recursive Strict Theta* improves Theta* by restricting the search space to Taut Paths introduced by ANYA. Like Theta*, This is an algorithm that returns near-optimal paths. Block A* - Generates a local distance database containing all possible paths on a small section of the grid. It references this database to quickly find piece-wise any-angle paths. ANYA - Finds optimal any-angle paths by restricting the search space to the Taut paths (a path where every heading change in the path “wraps” tightly around some obstacle); looking at an interval of points as a node rather than a single point. The fastest online optimal technique known. This algorithm is restricted to 2D grids. CWave - Uses geometric primitives (discrete circular arcs and lines) to represent the propagating wave front on the grid. For single-source path-planning on practical maps, it is demonstrated to be faster than graph search based methods. There are optimal and integer-arithmetic implementations. There are also A*-based algorithm distinct from the above family:

The performance of a visibility graph approach can be greatly improved by a sparse approach that only considers edges able to form taut paths. A multi-level version called ENLSVG is known to be faster than ANYA, but it can only be used with pre-processing. PolyAnya generalizes ANYA to work on non-grid maps with polygonal obstacles. It is fast, does not require preprocessing (unlike ENLSVG), and is optimal (unlike RRT). Similar to the RRT solution discussed below, it is often necessarily to also take into account steering constraints when piloting a real vehicle. Hybrid A* is an extension of A* that considers two additional dimension representing vehicle state, so that the paths are actually possible. It was created by Stanford Racing as part of the navigation system for Junior, their entry to the DARPA Urban Challenge. A more detailed discussion is written by Peterit, et al.

RRT-based

Besides, for search in high-dimensional search spaces, such as when the configuration space of the system involves many degrees of freedom that need to be considered (see Motion planning), and/or momentum needs to be considered (which could effectively double the number of dimensions of the search space; this larger space including momentum is known as the phase space), variants of the rapidly-exploring random tree (RRT) have been developed that (almost surely) converge to the optimal path by increasingly finding shorter and shorter paths:

Rapidly-exploring random graph (RRG) and RRT* Informed RRT* improves the convergence speed of RRT* by introducing a heuristic, similar to the way in which A* improves upon Dijkstra's algorithm.

Other algorithms Probabilistic roadmap

Applications Any-angle path planning are useful for robot navigation and real-time strategy games where more optimal paths are desirable. Hybrid A*, for example, was used as an entry to a DARPA challenge. The steering-aware properties of some examples also translate to autonomous cars.

See also Motion planning – Computational problem

References

… excerpt ends here. Continue reading the full article.

Illustrations

Any-angle path planning: The path found by A* on an octile grid vs. the shortest path between the start and goal nodes.
The path found by A* on an octile grid vs. the shortest path between the start and goal nodes.

Worked examples

Example 1 — a first encounter with Any-angle path planning

Start with the simplest possible case. Write down what Any-angle path planning claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In engineering, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Any-angle path planning before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Any-angle path planning ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Any-angle path planning

In research
Any-angle path planning appears in engineering research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Any-angle path planning in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Any-angle path planning is common in secondary-school and first-year university syllabi. It links to neighbouring topics Path planning, Robot navigation, so understanding it makes those chapters shorter.
In everyday life
Look for Any-angle path planning outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Any-angle path planning” →

How to study Any-angle path planning in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Any-angle path planning means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Any-angle path planning out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Any-angle path planning in simple terms?

Any-angle path planning algorithms are pathfinding algorithms that search for a Euclidean shortest path between two points on a grid map while allowing the turns in the path to have any angle. The result is a path that cuts directly through open areas and has relatively few turns.

Why does Any-angle path planning matter?

Because it connects several engineering ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Any-angle path planning?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Any-angle path planning.

Tags

  • Path planning
  • Robot navigation

Keep exploring