This project enables a CARLA simulation for automatic vehicle control along a predefined route, using Docker containers and a web interface to visualize the front camera. Refer to Group07_Report.pdf for detailed explaination of the entire system.
-
Start the Docker containers (CARLA server + client):
./docker_run_server.sh ./docker_run_client.sh docker attach <CONTAINER ID client>
-
Extract the
Progettofolder into the following path:/workspace/team_code/carlaContolL6 -
Navigate to the
Progettofolder:cd workspace/team_code/carlaContolL6/Progetto
To set or modify the vehicle route:
-
You can change the XML file path directly in:
run_test.sh
-
Alternatively, you can edit the existing XML file:
Progetto/routes/route_controlling.xml -
All the routes used to test the agent in simulation are avaiable in the "routes" directory.
Before each simulation, clean the output from previous runs using:
./clean.shLaunch the simulation:
nohup python3 server_http.py > ./log/output_server.log 2>&1 &nohup ./run_test.sh > ./log/output_run_test.log 2>&1 &Make sure port 9818 is free for the HTTP server.
To view the front camera stream from a browser:
http://172.16.174.233:9818/
To modify file paths or references, check and edit:
run_test.sh
The outputs generated by the simulation are saved in the folders:
Progetto/results
Progetto/log