This is the modernized, hackathon-ready version of the Drone Path Optimizer.
Unlike A*, which requires full recalculation whenever an obstacle is found, D Lite* is an incremental search algorithm. It only updates the affected nodes, making it significantly more efficient for dynamic environments where the drone discovers new obstacles on the fly.
- FastAPI Backend: High-performance, asynchronous Python backend.
- WebSocket Telemetry: Real-time position and battery updates.
- React Frontend: A professional dashboard with modular components.
backend/algorithms/: Contains the D* Lite and advanced coverage logic.backend/core/: The physical simulation layer (Grid, Drone logic).backend/api/: FastAPI routes and WebSocket handlers.frontend/src/: React source code with custom hooks for telemetry.
Choose one of the following to launch both frontend and backend:
npm run devlaunch.bat.\launch.ps1Then open http://localhost:3000 in your browser to see the frontend dashboard.
If you prefer to run services separately:
-
Backend Setup (Terminal 1):
cd backend ..\venv\Scripts\python main.py # or: python -m uvicorn main:app --reload # Backend runs at http://localhost:8000
-
Frontend Setup (Terminal 2):
cd frontend npm install npm run dev # Frontend runs at http://localhost:3000
- Python 3.12+
- Node.js 18+
- npm or yarn