日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

ubuntu18.04 安装 CARLA0.9.10

發布時間:2023/12/8 Ubuntu 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ubuntu18.04 安装 CARLA0.9.10 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

ubuntu18.04 安裝 CARLA0.9.10

https://carla.readthedocs.io/en/0.9.10/build_linux/

方法1 :Debian 安裝

1. Set up the Debian repository in the system:

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"

2.安裝carla 并且在 /opt/ 文件夾下可以找到

sudo apt-get update # Update the Debian package indexapt-cache madison carla-simulator # 查看可用版本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 revisioncd /opt/carla-simulator # Open the folder where CARLA is installed

方法2:源碼編譯安裝

安裝依賴

Install dependencies

# Install dependencies sudo apt-get update && sudo apt-get install wget software-properties-common && sudo add-apt-repository ppa:ubuntu-toolchain-r/test && wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - && sudo apt-add-repository "deb http://apt.llvm.org/$(lsb_release -c --short)/ llvm-toolchain-$(lsb_release -c --short)-8 main" && sudo apt-get update

Additional dependencies for Ubuntu 18.04

sudo apt-get install build-essential clang-8 lld-8 g++-7 cmake ninja-build libvulkan1 python python-pip python-dev python3-dev python3-pip libpng-dev libtiff5-dev libjpeg-dev tzdata sed curl unzip autoconf libtool rsync libxml2-dev libxerces-c-dev && pip2 install --user setuptools && pip3 install --user -Iv setuptools==47.3.1 && pip2 install --user distro && pip3 install --user distro

Change default clang version

python -m habitat_sim.utils.datasets_download --uids habitat_test_scenes --data-path ~/Documents....python -m habitat_sim.utils.datasets_download --uids habitat_example_objects --data-path ~/Documents....

安裝虛擬引擎

這是Epic Games公司的私有庫,所以要想從Github上下載UE的代碼,你需要首先將你的Github賬號與Epic Games公司賬號綁定。進入EPIC官網,推薦先使用微軟的賬號先登陸。

然后進入個人中心,再進行關聯。

在郵件點擊確認,接著fork一下。

然后進入自己的github,就能看到這個私有庫了。

克隆 Unreal Engine 4.24

git clone --depth=1 -b 4.24 https://github.com/EpicGames/UnrealEngine.git ~/UnrealEngine_4.24

報錯 參考https://blog.csdn.net/weixin_41010198/article/details/119698015 進行token的配置 然后在密碼位置輸入配置好的token

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

再次克隆

git clone --depth=1 -b 4.24 https://github.com/EpicGames/UnrealEngine.git ~/UnrealEngine_4.24

下載補丁

wget https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/UE_Patch/430667-13636743-patch.txt 430667-13636743-patch.txt patch --strip=4 < 430667-13636743-patch.txt

編譯

./Setup.sh && ./GenerateProjectFiles.sh && make

**打開UE **

cd ~/UnrealEngine_4.24/Engine/Binaries/Linux && ./UE4Editor

安裝CARLA

sudo apt-get install aria2git clone https://github.com/carla-simulator/carla #進入carla源代碼目錄 cd carla # 拉取更新遠程分支列表 git remote update origin --prune #查看carla版本 git tag --list#簽出0.9.10.1版本,UE4.24對應,必須對應,否則使用python會出錯 git checkout -b 0.9.10.1 0.9.10.1# 查看本地分支 git branch -vv./Update.sh export UE4_ROOT=~/UnrealEngine_4.24

make CARLA

Make sure to run make PythonAPI to prepare the client and make launch for the server.

make launch # 可能要多試幾遍

然后漫長的等待

構建PythonAPI

## 創建python 虛擬環境 conda create -n carla python=3.7 conda activate carlamake PythonAPI ## 安裝依賴包 pip install -r requirements.txt pip install networkxcd PythonAPI/examples python3 automatic_control.py

總結

以上是生活随笔為你收集整理的ubuntu18.04 安装 CARLA0.9.10的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。