Vaibhav Shende Vaibhav Shende

Bug Path Planner — Interactive Navigation Algorithm Visualizer

C++ implementation of reactive navigation algorithms (Bug0, Bug1, Bug2) with SDL2 visualization. Features real-time animation, step-through debugging, interactive map editor, and algorithm comparison.

Navigation Software Robotics
Bug Path Planner — Interactive Navigation Algorithm Visualizer

Overview

Interactive visualization tool for classical reactive navigation algorithms (Bug0, Bug1, Bug2) with real-time animation and step-by-step debugging.

Bug Path Planner — Bug1 Algorithm Demonstration

Features

  • Three Algorithms: Bug0 (simple), Bug1 (guaranteed), Bug2 (optimized)
  • Real-time Animation: Configurable speed (15-200 ms/tick)
  • Interactive Map Editor: Paint obstacles, save/load maps
  • Step-through Debugging: Frame-by-frame path analysis
  • Performance Comparison: Compare algorithms across 6 environments

Technical Details

  • Language: C++
  • Graphics: SDL2
  • Build: CMake
  • Platform: Linux

Getting Started

git clone https://github.com/svaibhav101/bug-nav-cpp-sim.git
cd bug-nav-cpp-sim && mkdir build && cd build
cmake .. && make
./bug_planner

Algorithm Comparison

AlgorithmGuaranteedSpeedBest For
Bug0NoFastOpen spaces
Bug1YesSlowSafe navigation
Bug2YesFastMixed environments