# Course 3: Motion Planning & Navigation

- HTML Page: https://roboticsconcepts.dev/courses/motion-planning-navigation/
- Estimated Time: 3–4 hrs

## Core Focus
Teach how a robot finds safe, collision-free paths around obstacles and turns rough geometric paths into smooth, physically executable trajectories over time.

## Why It Matters Today
Classical planners remain standard for warehouse navigation, industrial arms, and autonomous synthetic data generation for training imitation learning models.

## Modules
- **Module 3.1: [Configuration Space (C-Space) Intuition](https://roboticsconcepts.dev/courses/motion-planning-navigation/configuration-space-intuition.md)** | [Python notebook (.py)](https://roboticsconcepts.dev/downloads/notebooks/course-3/01_configuration_space_intuition.py)
  Shrinking a multi-joint arm or shaped mobile base into a single point moving through joint angle space while mapping physical obstacles into C-space regions.
- **Module 3.2: [Grid Search and Graph Planning](https://roboticsconcepts.dev/courses/motion-planning-navigation/grid-search-and-graph-planning.md)** | [Python notebook (.py)](https://roboticsconcepts.dev/downloads/notebooks/course-3/02_grid_search_astar.py)
  Occupancy grids, costmaps, Breadth-First Search, Dijkstra, and A* heuristics for 2D navigation.
- **Module 3.3: [Sampling-Based Planners for High Dimensions](https://roboticsconcepts.dev/courses/motion-planning-navigation/sampling-based-planners.md)** | [Python notebook (.py)](https://roboticsconcepts.dev/downloads/notebooks/course-3/03_sampling_based_planners_rrt.py)
  Why grid search explodes on 6- and 7-joint arms; building Probabilistic Roadmaps (PRM) and Rapidly-Exploring Random Trees (RRT and RRT*).
- **Module 3.4: [Local Reactive Obstacle Avoidance](https://roboticsconcepts.dev/courses/motion-planning-navigation/local-reactive-obstacle-avoidance.md)** | [Python notebook (.py)](https://roboticsconcepts.dev/downloads/notebooks/course-3/04_local_reactive_obstacle_avoidance.py)
  Artificial potential fields, local minima traps, and velocity-space rollout methods like the Dynamic Window Approach.
- **Module 3.5: [Trajectory Smoothing and Time Parameterization](https://roboticsconcepts.dev/courses/motion-planning-navigation/trajectory-smoothing-time-parameterization.md)** | [Python notebook (.py)](https://roboticsconcepts.dev/downloads/notebooks/course-3/05_trajectory_smoothing_time_parameterization.py)
  Converting jagged planner waypoints into smooth polynomial splines that respect maximum velocity, acceleration, and jerk limits.

## Interactive Sandboxes
- **Synchronized Workspace & C-Space Obstacle Mapper** (native-canvas): Drag obstacles around a 2-link arm on the left and watch the corresponding collision regions morph live in the (θ₁, θ₂) configuration space on the right.
- **BFS, Dijkstra, A*, and RRT Pathfinding Visualizer** (native-canvas): Draw walls and narrow passages, then race BFS, Dijkstra, A*, and RRT side-by-side to compare node expansions, path optimality, and exploration shape.
- **Trajectory Spline & Velocity Profile Tuner** (marimo): Turn raw waypoints into smooth time-parameterized trajectories and inspect position, velocity, acceleration, and jerk curves in a reactive marimo notebook.
