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 2021-10-11 06:54:47 +08:00 committed by GitHub
parent 04271fef55
commit a3c26a912a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 33 deletions

View File

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

View File

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

View File

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

View File

@ -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

View File

@ -1,6 +1,6 @@
#!/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 [ -z "$INSTALL" ]; then
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
docker pull carlasim/carla:0.9.11
docker pull carlasim/carla:0.9.12
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
--net=host \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-it \
carlasim/carla:0.9.12 \
/bin/bash ./CarlaUE4.sh -opengl -nosound -RenderOffScreen -quality-level=Epic