I programmed a controller to provide longitudinal speed control (throttle and break) and lateral steering control.
The controller successfully direct the vehicle to complete a race track in CARLA simulator.
CarlaUE4Windows.zip and CarlaUE4Ubuntu.tar.gz can be downloaded from https://drive.google.com/drive/folders/101f_7jeTivCd6d38idCvvZD0b5TD6sxV?usp=sharing https://zhuxiaotan.xyz/self-driving-project/
Download the CarlaUE4Windows.zip file
Unzip the file to a working directory e.g. Path\Project\CarlaSimulator
Install dependencies
pip install -r Path\Project\CarlaSimulator\requirements.txt --user
Test Installation
cd Path\Project\CarlaSimulator
CarlaUE4.exe -windowed -carla-no-networking
This should load the CARLA simulator
Download the Project.zip file
Unzip the file into Path\Project\CarlaSimulator\PythonClient
Start a CARLA server
CarlaUE4.exe /Game/Maps/RaceTrack -windowed -carla-server -benchmark -fps=30
Start a CARLA client in another terminal
python module_7.py
Download the CarlaUE4Ubuntu.tar.gz file
Unzip the file to a working directory e.g. Path/Project/CarlaSimulator
Install dependencies
pip install -r Path/Project/CarlaSimulator/requirements.txt --user
Test Installation
cd Path/Project/CarlaSimulator
./CarlaUE4.sh -windowed -carla-no-networking
This should load the CARLA simulator
Download the Project.zip file
Unzip the file into Path/Project/CarlaSimulator/PythonClient
Start a CARLA server
./CarlaUE4.sh /Game/Maps/RaceTrack -windowed -carla-server -benchmark -fps=30
Start a CARLA client in another terminal
python module_7.py
CARLA simulator is not recommend to be run on MacOS.