sim: update CARLA to 0.9.12 (#22497)

* bump carla

* update dockerfile

* no need

* specify version

* some fixups

* fix start_carla

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
pull/22512/head
xia0long 4 years ago committed by GitHub
parent 04271fef55
commit a3c26a912a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .dockerignore
  2. 4
      tools/sim/.gitignore
  3. 6
      tools/sim/Dockerfile.sim
  4. 16
      tools/sim/install_carla.sh
  5. 13
      tools/sim/start_carla.sh

@ -36,5 +36,3 @@ xx/projects
!xx/projects/map3d !xx/projects/map3d
xx/ops xx/ops
xx/junk xx/junk
tools/sim/carla
tools/sim/*.tar.gz

@ -1,4 +0,0 @@
CARLA_*.tar.gz
carla
carla_tmp

@ -36,9 +36,9 @@ ENV QTWEBENGINE_DISABLE_SANDBOX 1
RUN dbus-uuidgen > /etc/machine-id RUN dbus-uuidgen > /etc/machine-id
# CARLA python api # Install CARLA python api
COPY ./tools/sim/install_carla.sh /tmp RUN pip install --upgrade pip && \
RUN /tmp/install_carla.sh pip install --no-cache-dir carla==0.9.12
# get same tmux config used on NEOS for debugging # get same tmux config used on NEOS for debugging
RUN cd $HOME && \ RUN cd $HOME && \

@ -1,16 +0,0 @@
#!/usr/bin/env bash
cd /tmp
FILE=CARLA_0.9.11.tar.gz
rm -f $FILE
curl -O https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/$FILE
rm -rf carla_tmp
mkdir -p carla_tmp
cd carla_tmp
tar xvf ../$FILE PythonAPI/
easy_install PythonAPI/carla/dist/carla-0.9.11-py3.7-linux-x86_64.egg || true
cd ..
rm -rf /tmp/$FILE
rm -rf carla_tmp

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#Requires nvidia docker - https://github.com/NVIDIA/nvidia-docker # Requires nvidia docker - https://github.com/NVIDIA/nvidia-docker
if ! $(apt list --installed | grep -q nvidia-container-toolkit); then if ! $(apt list --installed | grep -q nvidia-container-toolkit); then
if [ -z "$INSTALL" ]; then if [ -z "$INSTALL" ]; then
echo "Nvidia docker is required. Re-run with INSTALL=1 to automatically install." echo "Nvidia docker is required. Re-run with INSTALL=1 to automatically install."
@ -15,14 +15,13 @@ if ! $(apt list --installed | grep -q nvidia-container-toolkit); then
fi fi
fi fi
docker pull carlasim/carla:0.9.11 docker pull carlasim/carla:0.9.12
docker run \ docker run \
--rm \ --rm \
--gpus all \
--net=host \ --net=host \
-e DISPLAY= \ -v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-e SDL_VIDEODRIVER=offscreen \
-it \ -it \
--gpus all \ carlasim/carla:0.9.12 \
carlasim/carla:0.9.11 \ /bin/bash ./CarlaUE4.sh -opengl -nosound -RenderOffScreen -quality-level=Epic
./CarlaUE4.sh -opengl -nosound -quality-level=Epic

Loading…
Cancel
Save