2021/8/9

carla9.11 release版本安装教程
我这里是安装的ubuntu20.04版本的,先下载carla9.11 release的压缩包,然后解压到home目录,把包名改为carla

注意:首先创建一个conda python3.7版本的虚拟环境,因为ubuntu20.04自带的是python3.8,carla9.11版本的egg文件不支持3.8,支持3.7

电脑配置,自己花钱买了一台,有点小心疼,哈哈

2021/8/9

1、要使用pip安装这两个模块,请运行以下命令。

pip install --user pygame numpy

2、carla安装

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"

安装 CARLA 并检查/opt/文件夹中的安装。这个/opt/文件夹在其他位置的计算机里面。

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
cd /opt/carla-simulator # Open the folder where CARLA is installed

此存储库包含 CARLA 0.9.10 及更高版本。要安装特定版本,请将版本标记添加到安装命令中。

sudo apt-get install carla-simulator=0.9.10-1 # In this case, "0.9.10" refers to a CARLA version, and "1" to the Debian revision

2021/8/9
3、运行 CARLA
cd carla
./CarlaUE4.sh

这个打开的界面不要关关了后面的步骤就执行不了

将弹出一个包含城市景观的窗口。这是旁观者的看法。要在城市周围飞行,请使用鼠标和WASD键(同时单击)。服务器模拟器现在正在运行并等待客户端连接并与世界交互。
现在是时候开始运行脚本了。以下示例将为城市带来一些活力:

Go to the folder containing example scripts
cd PythonAPI/examples

 python3 spawn_npc.py

一定要在python3.7环境下运行,不然会出现no module name ‘carla’.

本人基本上把carla所有的坑都踩了一遍,系统ubuntu18和ubuntu20重装了10遍吧,电脑配置原因也换了,但是我这电脑配置装ubuntu18不能连上网,坑贼多,买了linux版本的wifi适配器也不行,只能装ubuntu20,就差人没换了。Carla挺搞心态的,不用自建地图就安装release版本,轻松,愉快

Original: https://blog.csdn.net/qq_41170341/article/details/119535395
Author: 不干完活不休息
Title: 2021/8/9

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/784161/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球