How nitu55/llm-robot-navigation-simulator works
This is a Pygame grid-world robot navigation simulator. The user edits or controls a simulated robot, requests a route manually or in natural language, and observes movement, sensor readings, and navigation events. The principal runtime entry point is main.py, which owns the simulation and invokes A* planning; virtual sensing and LLM command interpretation are supporting stages. The README documents replanning and UI capabilities whose full implementation is not shown in the excerpts, so those links are noted as unverified where appropriate.
Main entry points: main.py Simulation runtime · llm_controller.py Command interpreter · astar.py A* path planner · sensors.py Virtual sensor model
Components 14
Simulation UI
- Simulation runtime
main.py - Grid and obstacles
main.py - Manual and auto controls
main.py - Simulation display
main.py - Decision log
main.py
Navigation
- Robot movement
main.py - Obstacle replanning
main.py - A* path planner
navigation/astar.py
Sensing
- Virtual sensor model
robot/sensors.py - Sensor readings display
main.py
LLM Commands
- Command input
main.py - Command interpreter
llm_controller.py
Other components
- User
- NVIDIA Nemotron
Connections 14
- User → Simulation runtime: operates
README.md - Simulation runtime → Grid and obstacles: initializes
main.py - Manual and auto controls → Simulation runtime: dispatches input
README.md - Simulation runtime → Robot movement: updates position
main.py - Simulation runtime → A* path planner: requests route
main.py - Obstacle replanning → A* path planner: recalculates route
main.py - Simulation runtime → Virtual sensor model: scans environment
main.py - Sensor readings display → Virtual sensor model: reads measurements
main.py - Simulation runtime → Simulation display: renders simulation
README.md - Simulation runtime → Decision log: records events
README.md - User → Command input: enters command
README.md - Command input → Simulation runtime: submits command
main.py - Simulation runtime → Command interpreter: interprets command
main.py - Command interpreter → NVIDIA Nemotron: requests interpretation
llm_controller.py