參考:https://carla.readthedocs.io/en/latest/start_quickstart/
1、檢查python版本,以python3為例:
sudo apt install python3-pip
pip3 -V
2、關閉防火牆,並添加python的一些庫依賴
pip3 install --user pygame numpy
3、Debian CARLA installation
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1AF1527DE64CB8D9
sudo add-apt-repository "deb [arch=amd64] http://dist.carla.org/carla $(lsb_release -sc) main"
3.1 安裝Carla
sudo apt-get update # Update the Debian package index
sudo apt-get install carla-simulator # Install the latest CARLA version, or update the current installation
注意:carla安裝需要較大的空間,安裝前需要檢測默安裝文件的空間大小;
df -hl
du -sh
3.2 打開安裝路徑查看安裝情況
cd /opt/carla-simulator
4、啟動Carla
cd /opt/carla-simulator/bin/
./CarlaUE4.sh