Carla Quick start
作者:互联网
From:https://carla.readthedocs.io/en/latest/start_quickstart/#carla-versions-prior-to-0912
1、下载安装包,并解压到文件夹carla
https://github.com/carla-simulator/carla/releases/tag/0.9.13
2、move the package to the Import folder and run the following script to extract the contents
cd carla ./ImportAssets.sh
3、Install client library
根据chenjian688创建Python虚拟环境
sudo apt install virtualenv mkdir proj_ws && cd proj_ws virtualenv -p /usr/bin/python2.7 venv #-p是显式指定Python版本,避免使用默认的python source ./venv/bin/active #进入虚拟环境 deactive #退出虚拟环境
在虚拟环境中安装服务器所需要的library
pip3 install carla
4、Running Carla
./CarlaUE4.sh
如果核心转储,根据chenjian688安装NVIDIA驱动,并运行
./CarlaUE4.sh -prefernvidia
5、Examples
cd PythonAPI/carla pip install -r requirements.txt cd .. cd examples python3 automatic_control.py
##以上环境配置及样例运行均建议在Python虚拟环境中进行
标签:Python,carla,sh,cd,start,Carla,虚拟环境,install,Quick 来源: https://www.cnblogs.com/jinxiaoxin/p/16285519.html