Carla Client (0.9.8) as a docker image (ubuntu16.04)
This repo contains a Carla Python API precompiled on Ubuntu 16.04. This enables any machine capable of running docker to quickly set up a Carla client.
(Modified from X11 in docker on macOS)
- Install XQuartz: https://www.xquartz.org/
- Launch XQuartz. Under the XQuartz menu, select Preferences
- Go to the security tab and ensure "Allow connections from network clients" is checked.
- Run
xhost + ${hostname}to allow connections to the macOS host * - Setup a HOSTNAME env var
export HOSTNAME=`hostname`* - Pull and run the docker image
docker pull docker.pkg.github.com/unicorns/carla-client-docker/carla-client:0.9.8
docker run -e DISPLAY=$(hostname):0 -v /tmp/.X11-unix:/tmp/.X11-unix -it docker.pkg.github.com/unicorns/carla-client-docker/carla-client:0.9.8In the docker container, run (assuming Carla server is running on ports 2000-2002 on the host machine):
python3 examples/automatic_control.py --host "host.docker.internal"git clone https://github.com/unicorns/carla-client-docker.git
cd carla-client-docker
docker build -t carla-client-docker .