This article needs additional citations for verification. (June 2013) (Learn how and when to remove this template message) |

**Motion planning**, also **path planning** (also known as the **navigation problem** or the **piano mover's problem**) is a computational problem to find a sequence of valid configurations that moves the object from the source to destination. The term is used in computational geometry, computer animation, robotics and computer games.

For example, consider navigating a mobile robot inside a building to a distant waypoint. It should execute this task while avoiding walls and not falling down stairs. A motion planning algorithm would take a description of these tasks as input, and produce the speed and turning commands sent to the robot's wheels. Motion planning algorithms might address robots with a larger number of joints (e.g., industrial manipulators), more complex tasks (e.g. manipulation of objects), different constraints (e.g., a car that can only drive forward), and uncertainty (e.g. imperfect models of the environment or robot).

Motion planning has several robotics applications, such as autonomy, automation, and robot design in CAD software, as well as applications in other fields, such as animating digital characters, video game, architectural design, robotic surgery, and the study of biological molecules.

A basic motion planning problem is to compute a continuous path that connects a start configuration S and a goal configuration G, while avoiding collision with known obstacles. The robot and obstacle geometry is described in a 2D or 3D *workspace*, while the motion is represented as a path in (possibly higher-dimensional) configuration space.

A configuration describes the pose of the robot, and the configuration space C is the set of all possible configurations. For example:

- If the robot is a single point (zero-sized) translating in a 2-dimensional plane (the workspace), C is a plane, and a configuration can be represented using two parameters (x, y).
- If the robot is a 2D shape that can translate and rotate, the workspace is still 2-dimensional. However, C is the special Euclidean group
**SE**(2) =**R**^{2}**SO**(2) (where**SO**(2) is the special orthogonal group of 2D rotations), and a configuration can be represented using 3 parameters (x, y, θ). - If the robot is a solid 3D shape that can translate and rotate, the workspace is 3-dimensional, but C is the special Euclidean group
**SE(3)**=**R**^{3}**SO**(3), and a configuration requires 6 parameters: (x, y, z) for translation, and Euler angles (α, β, γ). - If the robot is a fixed-base manipulator with N revolute joints (and no closed-loops), C is N-dimensional.

The set of configurations that avoids collision with obstacles is called the free space C_{free}. The complement of C_{free} in C is called the obstacle or forbidden region.

Often, it is prohibitively difficult to explicitly compute the shape of C_{free}. However, testing whether a given configuration is in C_{free} is efficient. First, forward kinematics determine the position of the robot's geometry, and collision detection tests if the robot's geometry collides with the environment's geometry.

Target space is a subspace of free space which denotes where we want the robot to move to. In global motion planning, target space is observable by the robot's sensors. However, in local motion planning, the robot cannot observe the target space in some states. To solve this problem, the robot goes through several virtual target spaces, each of which is located within the observable area (around the robot). A virtual target space is called a sub-goal.

Obstacle space is a space that the robot can not move to. Obstacle space **is not** opposite of free space.

Low-dimensional problems can be solved with grid-based algorithms that overlay a grid on top of configuration space, or geometric algorithms that compute the shape and connectivity of C_{free}.

Exact motion planning for high-dimensional systems under complex constraints is computationally intractable. Potential-field algorithms are efficient, but fall prey to local minima (an exception is the harmonic potential fields). Sampling-based algorithms avoid the problem of local minima, and solve many problems quite quickly. They are unable to determine that no path exists, but they have a probability of failure that decreases to zero as more time is spent.

Sampling-based algorithms are currently considered state-of-the-art for motion planning in high-dimensional spaces, and have been applied to problems which have dozens or even hundreds of dimensions (robotic manipulators, biological molecules, animated digital characters, and legged robots).

There is the motion planning parallel algorithm (A1-A2) for objects manipulation (for catching the flying object). ^{[1]}

Grid-based approaches overlay a grid on configuration space, and assume each configuration is identified with a grid point. At each grid point, the robot is allowed to move to adjacent grid points as long as the line between them is completely contained within C_{free} (this is tested with collision detection). This discretizes the set of actions, and search algorithms (like A*) are used to find a path from the start to the goal.

These approaches require setting a grid resolution. Search is faster with coarser grids, but the algorithm will fail to find paths through narrow portions of C_{free}. Furthermore, the number of points on the grid grows exponentially in the configuration space dimension, which make them inappropriate for high-dimensional problems.

Traditional grid-based approaches produce paths whose heading changes are constrained to multiples of a given base angle, often resulting in suboptimal paths. Any-angle path planning approaches find shorter paths by propagating information along grid edges (to search fast) without constraining their paths to grid edges (to find short paths).

Grid-based approaches often need to search repeatedly, for example, when the knowledge of the robot about the configuration space changes or the configuration space itself changes during path following. Incremental heuristic search algorithms replan fast by using experience with the previous similar path-planning problems to speed up their search for the current one.

These approaches are similar to grid-based search approaches except that they generate a paving covering entirely the configuration space instead of a grid.^{[2]} The paving is decomposed into two subpavings X^{−},X^{+} made with boxes such that X^{−} ⊂ C_{free} ⊂ X^{+}. Characterizing C_{free} amounts to solve a set inversion problem. Interval analysis could thus be used when C_{free} cannot be described by linear inequalities in order to have a guaranteed enclosure.

The robot is thus allowed to move freely in X^{−}, and cannot go outside X^{+}. To both subpavings, a neighbor graph is built and paths can be found using algorithms such as Dijkstra or A*. When a path is feasible in X^{−}, it is also feasible in C_{free}. When no path exists in X^{+} from one initial configuration to the goal, we have the guarantee that no feasible path exists in C_{free}. As for the grid-based approach, the interval approach is inappropriate for high-dimensional problems, due to the fact that the number of boxes to be generated grows exponentially with respect to the dimension of configuration space.

An illustration is provided by the three figures on the right where a hook with two degrees of freedom has to move from the left to the right, avoiding two horizontal small segments.

The decomposition with subpavings using interval analysis also makes it possible to characterize the topology of C_{free} such as counting its number of connected components.^{[3]}

Point robots among polygonal obstacles

Translating objects among obstacles

Finding the way out of a building

- farthest ray trace

Given a bundle of rays around the current position attributed with their length hitting a wall, the robot moves into the direction of the longest ray unless a door is identified. Such an algorithm was used for modeling emergency egress from buildings.

One approach is to treat the robot's configuration as a point in a potential field that combines attraction to the goal, and repulsion from obstacles. The resulting trajectory is output as the path. This approach has advantages in that the trajectory is produced with little computation. However, they can become trapped in local minima of the potential field and fail to find a path, or can find a non-optimal path. The artificial potential fields can be treated as continuum equations similar to electrostatic potential fields (treating the robot like a point charge), or motion through the field can be discretized using a set of linguistic rules.^{[4]}
A Navigation function^{[5]} or a probabilistic Navigation function^{[6]} are sorts of artificial potential functions which have the quality of not having minimum points except the target point.

Sampling-based algorithms represent the configuration space with a roadmap of sampled configurations.
A basic algorithm samples N configurations in C, and retains those in C_{free} to use as *milestones*. A roadmap is then constructed that connects two milestones P and Q if the line segment PQ is completely in C_{free}. Again, collision detection is used to test inclusion in C_{free}. To find a path that connects S and G, they are added to the roadmap. If a path in the roadmap links S and G, the planner succeeds, and returns that path. If not, the reason is not definitive: either there is no path in C_{free}, or the planner did not sample enough milestones.

These algorithms work well for high-dimensional configuration spaces, because unlike combinatorial algorithms, their running time is not (explicitly) exponentially dependent on the dimension of C. They are also (generally) substantially easier to implement. They are probabilistically complete, meaning the probability that they will produce a solution approaches 1 as more time is spent. However, they cannot determine if no solution exists.

Given basic *visibility* conditions on C_{free}, it has been proven that as the number of configurations N grows higher, the probability that the above algorithm finds a solution approaches 1 exponentially.^{[7]} Visibility is not explicitly dependent on the dimension of C; it is possible to have a high-dimensional space with "good" visibility or a low-dimensional space with "poor" visibility. The experimental success of sample-based methods suggests that most commonly seen spaces have good visibility.

There are many variants of this basic scheme:

- It is typically much faster to only test segments between nearby pairs of milestones, rather than all pairs.
- Nonuniform sampling distributions attempt to place more milestones in areas that improve the connectivity of the roadmap.
- Quasirandom samples typically produce a better covering of configuration space than pseudorandom ones, though some recent work argues that the effect of the source of randomness is minimal compared to the effect of the sampling distribution.
- Employs local-sampling
^{[8]}by performing a directional Markov chain Monte Carlo random walk with some local proposal distribution. - It is possible to substantially reduce the number of milestones needed to solve a given problem by allowing curved eye sights (for example by crawling on the obstacles that block the way between two milestones
^{[9]}). - If only one or a few planning queries are needed, it is not always necessary to construct a roadmap of the entire space. Tree-growing variants are typically faster for this case (single-query planning). Roadmaps are still useful if many queries are to be made on the same space (multi-query planning)

A motion planner is said to be complete if the planner in finite time either produces a solution or correctly reports that there is none. Most complete algorithms are geometry-based. The performance of a complete planner is assessed by its computational complexity.

*Resolution completeness* is the property that the planner is guaranteed to find a path if the resolution of an underlying grid is fine enough. Most resolution complete planners are grid-based or interval-based. The computational complexity of resolution complete planners is dependent on the number of points in the underlying grid, which is O(1/h^{d}), where h is the resolution (the length of one side of a grid cell) and d is the configuration space dimension.

*Probabilistic completeness* is the property that as more "work" is performed, the probability that the planner fails to find a path, if one exists, asymptotically approaches zero. Several sample-based methods are probabilistically complete. The performance of a probabilistically complete planner is measured by the rate of convergence.

*Incomplete* planners do not always produce a feasible path when one exists. Sometimes incomplete planners do work well in practice.

Many algorithms have been developed to handle variants of this basic problem.

- Manipulator arms (with dynamics)

- Cars
- Unicycles
- Planes
- Acceleration bounded systems
- Moving obstacles (time cannot go backward)
- Bevel-tip steerable needle
- Differential Drive Robots

Hybrid systems are those that mix discrete and continuous behavior. Examples of such systems are:

- Robotic manipulation
- Mechanical assembly
- Legged robot locomotion
- Reconfigurable robots

- Motion uncertainty
- Missing information
- Active sensing
- Sensorless planning

- Robot navigation
- Automation
- The driverless car
- Robotic surgery
- Digital character animation
- Protein folding
^{[10]} - Safety and accessibility in computer-aided architectural design

- Gimbal lock – similar traditional issue in mechanical engineering
- Kinodynamic planning
- Mountain climbing problem
- OMPL - The Open Motion Planning Library
- Pathfinding
- Pebble motion problems – multi-robot motion planning
- Shortest path problem
- Velocity obstacle

**^**.mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .id-lock-free a,.mw-parser-output .citation .cs1-lock-free a{background:linear-gradient(transparent,transparent),url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited a,.mw-parser-output .id-lock-registration a,.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:linear-gradient(transparent,transparent),url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription a,.mw-parser-output .citation .cs1-lock-subscription a{background:linear-gradient(transparent,transparent),url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:linear-gradient(transparent,transparent),url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit} Bodrenko, A.I. (2019). "New Method Of Using Mobile Robots For Moving Cargo In Warehouse".*Bulletin of Science and Practice*.**5**(6): 192–211. doi:10.33619/2414-2948/43/26.**^**Jaulin, L. (2001). "Path planning using intervals and graphs" (PDF). *Reliable Computing*.**7**(1).**^**Delanoue, N.; Jaulin, L.; Cottenceau, B. (2006). *Counting the Number of Connected Components of a Set and Its Application to Robotics*(PDF).*Applied Parallel Computing, Lecture Notes in Computer Science*. Lecture Notes in Computer Science.**3732**. pp. 93–101. CiteSeerX 10.1.1.123.6764. doi:10.1007/11558958_11. ISBN 978-3-540-29067-4.**^**Wolf, Joerg Christian; Robinson, Paul; Davies, Mansel (2004). "Vector Field path planning and control of an autonomous robot in a dynamic environment". *Proc. 2004 FIRA Robot World Congress*. Busan, South Korea: Paper 151.**^**Lavalle, Steven, Planning Algorithms Chapter 8**^**Hacohen, Shlomi; Shoval, Shraga; Shvalb, Nir (2019). "Probability Navigation Function for Stochastic Static Environments". *International Journal of Control, Automation and Systems*.**17**(8): 2097–2113. doi:10.1007/s12555-018-0563-2. S2CID 164509949.**^**Hsu, D.; J.C. Latombe, J.C.; Motwani, R. (1997). "Path planning in expansive configuration spaces". *Proceedings of International Conference on Robotics and Automation*.**3**. pp. 2719–2726. doi:10.1109/ROBOT.1997.619371. ISBN 978-0-7803-3612-4. S2CID 11070889.**^**Lai, Tin; Morere, Philippe; Ramos, Fabio; Francis, Gilad (2020). "Bayesian Local Sampling-Based Planning". *IEEE Robotics and Automation Letters*.**5**(2): 1954–1961. arXiv:1909.03452. doi:10.1109/LRA.2020.2969145. ISSN 2377-3766. S2CID 210838739.**^**Shvalb, N.; Ben Moshe, B.; Medina, O. (2013). "A real-time motion planning algorithm for a hyper-redundant set of mechanisms". *Robotica*.**31**(8): 1327–1335. CiteSeerX 10.1.1.473.7966. doi:10.1017/S0263574713000489.**^**Steven M. LaValle (29 May 2006). *Planning Algorithms*. Cambridge University Press. ISBN 978-1-139-45517-6.