The project aims to improve traffic signaling systems by utilizing fuzzy logic to minimize waiting time for vehicles and pedestrians during traffic.
Figure-1: Illustration of an actual four-way intersection with designated phases.
- Phase 1: Roads 2 and 4
- Phase 2: Roads 1 and 3
Figure-2: Possible turning directions for vehicles on each road.
The blue line denotes the current position of vehicles, while the green lines indicate the available turning directions.
The repository consists of three main folders: "Code", "Sumo", and "Files."
Inside the "Code" folder, you can find Python scripts that implement the project's functionalities.
The "Sumo" folder contains four different Sumo traffic scenarios:
- Real Life
- Scenario with higher density in Phase 1
- Scenario with higher density in Phase 2
- Scenario with approximately equal density in Phase 1 and Phase 2
The "Files" folder includes Excel files where waiting times are recorded and a log.txt file containing improvement rates.
To run the project, follow these steps:
- Clone the repository to your local machine.
- Modify the
base_path
variable in thecode/constant_definitions.py
file to match the path where the project is located. - Run the main file to execute the project without further modifications.