This project is a simulation of a self-driving car in the CARLA simulator. It is a simple implementation of a self-driving car that can navigate a course without hitting any obstacles.
Read more about CARLA here.
Install CARLA following the instructions here.
-
Run the CARLA server and set environment variables: In your .env file,
SERVER_HOST=<CARLA server host> SERVER_PORT=<CARLA server port> MAP_NAME=<CARLA map name> VEHICLE_BP=<CARLA vehicle blueprint name> VEHICLE_INDEX=<CARLA vehicle index>For example,
SERVER_HOST=localhost SERVER_PORT=2000 MAP_NAME=Town01 VEHICLE_BP=vehicle.tesla.model3 VEHICLE_INDEX=0To run the CARLA server, search the instructions here.
-
Install the necessary dependencies:
pip install -r requirements.txt
-
Run the main script:
python main.py