-
Create and activate a virtual environment:
On Linux/macOS:
python3.10 -m venv venv source venv/bin/activateOn Windows:
python3.10 -m venv venv venv\Scripts\activate
-
Install the required Python packages:
source venv/bin/activate pip install -r doc/requirements.txt -
Run the backend (Flask API + Mesa simulation):
source venv/bin/activate python src/backend/backend.py -
In another terminal, run the 3D visualization:
source venv/bin/activate python main.py
A window will open displaying a 3D city grid with autonomous garbage collection vehicles and trash objects.
-
Arrow keys: Rotate and elevate the camera view.
- Left/Right: Rotate horizontally
- Up/Down: Change elevation angle
-
WASD keys: Move the camera position (translate view)
- W: Move forward
- S: Move backward
- A: Move left
- D: Move right
- Q: Move down
- R: Move up
-
Close window: Exit the simulation