forked from move-fast/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathstart_carla.sh
More file actions
executable file
·28 lines (25 loc) · 928 Bytes
/
Copy pathstart_carla.sh
File metadata and controls
executable file
·28 lines (25 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#Requires nvidia docker - https://github.com/NVIDIA/nvidia-docker
if ! $(apt list --installed | grep -q nvidia-container-toolkit); then
if [ -z "$INSTALL" ]; then
echo "Nvidia docker is required. Re-run with INSTALL=1 to automatically install."
exit 0
else
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
echo $distribution
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker
fi
fi
docker pull carlasim/carla:0.9.11
docker run \
--rm \
--net=host \
-e DISPLAY= \
-e SDL_VIDEODRIVER=offscreen \
-it \
--gpus all \
carlasim/carla:0.9.11 \
./CarlaUE4.sh -opengl -nosound -quality-level=Epic