HomeRobotics & KinematicsDynamic Window Approach: Local Obstacle Avoidance

Dynamic Window Approach: Local Obstacle Avoidance

Interactive 3D simulator of the Dynamic Window Approach — a real-time local motion planner that samples reachable (velocity, turn-rate) pairs, scores each on heading, clearance and speed, and steers a differential-drive robot through obstacles toward a moving goal.

Robotics & Kinematics3DAdvanced60 FPS📱 Mobile-adapted⇄ 2D version
robotics-topic-45 ↗ Open standalone

A differential-drive robot navigates a field of static obstacles toward a goal using the Dynamic Window Approach — the classic real-time local planner behind most mobile-robot obstacle avoidance. At every control step the planner samples the (linear speed, turn rate) pairs the robot can physically reach given its acceleration limits, forward-simulates a short arc for each, discards any arc that would collide, and scores the rest on how well they point at the goal, how much clearance they keep from obstacles, and how fast they move — then drives the winning arc. Tune the speed limit, angular acceleration, and clearance weight to see the trade-off between a robot that charges straight at the goal and one that gives obstacles a wide berth.

⚙ Under the hood

Watch a differential-drive robot dodge obstacles in real time using the Dynamic Window Approach: it samples every reachable (speed, turn-rate) pair, forward-simulates a short arc for each, discards any that collide, and drives the arc that best balances heading toward the goal, obstacle clearance, and speed.

roboticspath-planningobstacle-avoidancecontrol-theorydifferential-drivealgorithms

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)