作者:mobiledu2502885017 | 来源:互联网 | 2023-09-13 20:38
ubuntu 18.04
carla 0.9.3
when running the manual control mode, I got the following warning, and I am wondering how I can get the simulator API updated?
WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API
WARNING: Client API version = 0.9.3
WARNING: Simulator API version = 0.9.2-131-g39f8e34b-dirty
该提问来源于开源项目:carla-simulator/carla
I have a similar issue. I compiled the PythonAPI for Ubuntu 18.04 (python 3.6) using the following Dockerfile:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y wget software-properties-common git python3-distutils && \
apt-get install -y build-essential clang-7 lld-7 g++-7 cmake ninja-build \
python-dev python3-dev \
libpng-dev libtiff5-dev libjpeg-dev tzdata curl unzip autoconf libtool rsync
RUN wget https://bootstrap.pypa.io/get-pip.py && \
python2 get-pip.py --user --upgrade && \
python3 get-pip.py --user --upgrade
RUN git clone https://github.com/carla-simulator/carla.git /carla
WORKDIR /carla
RUN git checkout 0.9.6
RUN update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-7/bin/clang 170 && \
update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-7/bin/clang++ 170
RUN sed -i 's/bdist_egg/bdist_wheel/g' Util/BuildTools/BuildPythonAPI.sh && \
make PythonAPI |
Then I use
to extract the wheel from a container and install the wheel using pip.
1 2 3 4 5 6 7 8 9
| $ docker build -t carla_whl:0.9.6 PythonAPI
$ docker run -it --rm --name carla_whl carla_whl:0.9.6
$ docker cp carla_whl:/carla/PythonAPI/carla/dist/carla-0.9.6-cp36-cp36m-linux_x86_64.whl PythonAPI/carla/dist/
$ docker stop carla_whl
$ pip3 install --user PythonAPI/carla/dist/carla-0.9.6-cp36-cp36m-linux_x86_64.whl
Processing ./PythonAPI/carla/dist/carla-0.9.6-cp36-cp36m-linux_x86_64.whl
Installing collected packages: carla
Successfully installed carla-0.9.6 |
But I got the following warning when running
.
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 29 30 31 32 33 34 35 36 37 38
| $ ./PythonAPI/examples/manual_control.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
INFO: listening to server 127.0.0.1:2000
Welcome to CARLA manual control.
Use ARROWS or WASD keys for control.
W : throttle
S : brake
AD : steer
Q : toggle reverse
Space : hand-brake
P : toggle autopilot
M : toggle manual transmission
,/. : gear up/down
TAB : change sensor position
` : next sensor
[1-9] : change to sensor [1-9]
C : change weather (Shift+C reverse)
Backspace : change vehicle
R : toggle recording images to disk
CTRL + R : toggle recording of simulation (replacing any previous)
CTRL + P : start replaying last recorded simulation
CTRL + + : increments the start time of the replay by 1 second (+SHIFT = 10 seconds)
CTRL + - : decrements the start time of the replay by 1 second (+SHIFT = 10 seconds)
F1 : toggle HUD
H/? : toggle help
ESC : quit
WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API
WARNING: Client API version = 0.9.6-dirty
WARNING: Simulator API version = 0.9.6 |
What is the difference between the "dirty" version and the regular one?