Skip to main content
< All Topics
Print

Global vs Local Planning in Navigation

Imagine a robot in a bustling warehouse: shelves and forklifts everywhere, boxes lining the aisles, the air electric with urgency. The robot’s goal? Move from one side to the other, swiftly and safely, dodging both static and moving obstacles. This choreography of movement is not magic—it’s the result of two intertwined approaches in robot navigation: global and local planning. Each plays a crucial role, and understanding their interplay is a key to building resilient, efficient mobile robots.

What Is Global Planning?

Think of global planning as the big-picture strategist. It answers the question: “How do I get from here to my goal, considering the whole map?” Algorithms like A* and D* are the backbone here. They compute the optimal path across a known environment, avoiding walls, shelves, and fixed obstacles. The result? A roadmap—often a series of waypoints—that guides the robot’s journey.

“A good global planner is like a GPS: it gives you the highway route, but not the split-second maneuvering you need in traffic.”

  • A* (A-Star): Finds the shortest path on a grid or graph, balancing cost and heuristic estimates.
  • D* (Dynamic A-Star): Adapts as the robot discovers changes in the environment, recalculating only what’s necessary.

Local Planning: Agile, Real-Time Navigation

If global planning is the strategist, local planning is the tactician—making fast, on-the-fly decisions. Local planners take the global path, sensor data, and real-time constraints (like sudden obstacles or moving humans) and compute immediate velocity commands for the robot.

  • DWA (Dynamic Window Approach): Samples possible velocities, simulates short trajectories, and selects the safest, most efficient action.
  • TEB (Timed Elastic Band): Optimizes a “band” of poses in space and time, flexibly adapting the path to avoid collisions and meet dynamic constraints.

Local planners shine in uncertainty: moving obstacles, sensor noise, and last-minute surprises. They let robots weave through crowds, swerve around dropped packages, or slow down for safety—without losing sight of the global goal.

Layering: The Power of Combining Strategies

The real artistry in navigation comes from layering global and local planning. Here’s how they interact:

  1. The global planner provides a high-level path to the goal.
  2. The local planner takes over, adjusting the robot’s trajectory in real-time based on sensor input.
  3. If the local planner can’t find a safe path (say, a new obstacle blocks the way), it triggers recovery behaviors or asks the global planner for a new route.

This layered approach is resilient: robots don’t get “stuck” when surprises arise, and they can adapt to dynamic environments without human intervention.

Comparison Table: Key Differences and Use Cases

Aspect Global Planning (A*/D*) Local Planning (DWA/TEB)
Scope Entire map, static obstacles Immediate surroundings, dynamic obstacles
Update Frequency Occasional (on map or goal change) High (real-time, every control cycle)
Typical Algorithms A*, D* DWA, TEB, MPC
Strengths Optimal paths, overview, efficiency Agility, safety, adaptability
Weaknesses Poor at reacting to dynamic changes Can lose track of the big picture

Recovery and Robustness: When Plans Go Wrong

No plan survives first contact with the real world. Boxes get knocked over, doors close, and people change direction. Here’s where modern navigation stacks shine—by embedding recovery behaviors and continuous re-planning.

  • Clearing costmaps: If the local planner gets stuck, the robot can clear its perception of obstacles that may have been false positives.
  • Re-planning globally: If the path is truly blocked, the global planner recalculates a new route.
  • Backtracking or rotating-in-place: Simple behaviors to escape from dead ends or tight spots.

This blend of strategies keeps robots moving, even in complex, unpredictable spaces.

Modern Applications: From Warehouses to Hospitals

Let’s see how these planners come to life in real scenarios:

  • Warehouse robots (like those at Amazon): Use A* for aisle navigation, DWA for last-meter precision around workers and obstacles.
  • Hospital delivery robots: Combine D* for navigating changing floor layouts with TEB for safe passage among nurses and patients.
  • Outdoor delivery bots: Rely on global planners for street-level routing, with local planners dodging pedestrians, pets, and scooters.

“The secret sauce isn’t just in the algorithms—it’s in the orchestration, the handoff between the big plan and the nimble maneuver.”

Best Practices: Building Resilient Navigation Systems

From my experience in robotics labs and real deployments, here are a few distilled tips:

  • Always validate your maps: Garbage in, garbage out. Accurate maps are the foundation of both planning layers.
  • Tune local planner parameters: Don’t just use defaults. Adjust velocity, acceleration, and obstacle inflation for your robot and environment.
  • Log failures and recoveries: Analyze where and why robots get stuck—then evolve your recovery strategies.

Embracing this layered, dynamic approach accelerates deployment, reduces downtime, and creates robots that truly integrate into human environments.

Curious to put these concepts into practice or launch your own AI and robotics projects with speed and confidence? Check out partenit.io, a platform offering ready-made templates and knowledge to help you innovate without reinventing the wheel.

Спасибо, статья уже завершена и не требует продолжения.

Table of Contents