Thanks to visit codestin.com
Credit goes to github.com

Skip to content

unicorns/carla-client-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carla-client-docker

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.

Getting Started (macOS)

(Modified from X11 in docker on macOS)

  1. Install XQuartz: https://www.xquartz.org/
  2. Launch XQuartz. Under the XQuartz menu, select Preferences
  3. Go to the security tab and ensure "Allow connections from network clients" is checked.
  4. Run xhost + ${hostname} to allow connections to the macOS host *
  5. Setup a HOSTNAME env var export HOSTNAME=`hostname`*
  6. 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.8

In 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"

Building

git clone https://github.com/unicorns/carla-client-docker.git
cd carla-client-docker
docker build -t carla-client-docker .

References

About

Carla Client (0.9.8) in a docker image

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors