Welcome to my college final project (TCC) on Self-Driving Cars! This repository contains all the materials and code.
This project was developed as part of the Self-Driving Cars Specialization, which covers various aspects of autonomous vehicle technology, including:
- Computer Vision
- Camara Sensor
- Localization
- Path Planning
- Control
To get started with the project, follow these steps:
- Clone the repository:
git clone https://github.com/ARRETdaniel/CARLA_simulator_YOLO-openCV_realTime_objectDetection_for_autonomousVehicles.git
-
Download CarlaUE4 modified version CARLA Installation Guide in the CarlaSimulator folder.
-
Follow the instructions in the CARLA Installation Guide folder for troubleshooting and additional info or/and to set up the environment and run the code.
Make sure you have the following software installed (It'll only work in version mentioned below):
- CarlaUE4 modified version
- Python 3.6.x
- Required Python libraries (listed in
CarlaSimulator/PythonClient/FinalProject/requirements.txt
)
cd CarlaSimulator/PythonClient/FinalProject
pip install -r requirements.txt
- Launch CARLA in Server Mode:
Open a command prompt and execute the following commands to start the CARLA simulator on Town 1 (CarlaUE4 modified version):
C:
cd \CarlaSimulator\CarlaUE4\Binaries\Win64
CarlaUE4.exe /Game/Maps/Course4 -windowed -carla-server -benchmark -fps=30
Note: The -benchmark and -fps=30 flags set a fixed time-step mode, which is essential for consistent simulation results.
- Execute the Python Client:
In another command prompt, run your custom solution script:
C:
cd \CarlaSimulator\PythonClient\FinalProject
python module_7.py
This project is licensed under the MIT License. See the LICENSE
file for more details.
We would like to thank the instructors and contributors of the Self-Driving Cars Specialization for their valuable resources and guidance.