Carla的简易安装--详细步骤(ubuntu18.04)
参考: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