# Path Planning

> Working out a safe route for a robot. It goes from here to the goal.

**Field:** Artificial Intelligence  
**Category:** Robotics & Vision  
**Also known as:** Motion Planning, Robot Path Planning, Trajectory Planning

## Think of it like

It is like finding your way through a maze on paper. You draw the line before you walk.

## Definition

Path planning is how a robot works out a safe route from where it is to where it needs to be. It starts with a map of what is free and what is blocked. It then searches for a route that misses every obstacle. The best route is often the shortest, but it may also need to be smooth or keep a safe gap. The robot plans again whenever something new gets in the way.

## Example

A warehouse robot in Berlin must reach shelf 12. Its planner finds a route around two parked carts, then plans again when a worker steps in.

## Why it matters

A robot that cannot plan a path cannot move on its own. Good planning saves time, power and crashes.

## Common mistake

Planning once and never again. The world changes, so a robot has to plan again as it goes.

## Three principles

- **Map first.** Know what is free and blocked.
- **Search for a route.** Miss every obstacle on the way.
- **Plan again.** New obstacles mean a new route.

## Related terms

- [Simultaneous Localization and Mapping (SLAM)](https://learn.benibix.com/term/ai/slam)
- [Pathfinding](https://learn.benibix.com/term/development/pathfinding)
- [Inverse Kinematics (IK)](https://learn.benibix.com/term/ai/inverse-kinematics)
- [Autonomous Vehicle](https://learn.benibix.com/term/ai/autonomous-vehicle)
- [Drone](https://learn.benibix.com/term/ai/drone)

## Told apart from

- [SLAM vs Path Planning](https://learn.benibix.com/compare/slam-vs-path-planning): People think SLAM finds the way to the goal, and it does not. SLAM answers two questions: what is around me, and where am I on that map. Path planning takes the map and answers a third: how do I get from here to there without hitting anything. A robot needs both, and SLAM runs first.

![A grid map seen from above with grey blocks for obstacles. A robot sits at start in one corner and a flag marks the goal in the other. A bold line bends around the blocks to join them.](https://learn.benibix.com/diagrams/ai6-path-planning.svg)

---

Source: https://learn.benibix.com/term/ai/path-planning
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
