Carla は,自動運転用のシミュレータ. オープンソースである.
Carla のドキュメント: https://carla.readthedocs.io/en/latest
Carla の Windows 版,Linux 版は, https://github.com/carla-simulator/carla/blob/master/Docs/download.md からダウンロードできる.
このページでは,Carla をソースコードからビルドする.その手順は,次のページによる.
【サイト内の関連ページ】
【関連する外部ページ】
Python の公式ページ: https://www.python.org/
Windows での Git, cmake, 7-Zip のインストール手順: 別ページ »で説明している.
【サイト内の関連ページ】
Windows での Visual Studio Community 2022 のインストール: 別ページ »で説明している.なお,Visual Studio には,ビルドツール(Build Tools)が含まれている.
Windows での ビルドツール for Visual Studio 2022 (Build Tools for Visual Studio 2022) のインストール: 別ページ »で説明している.
【関連する外部ページ】
C:\Program Files\Epic Games\UE_4.24 に設定
「4.24」のところは,実際のディレクトリに一致させること.
msvc-16 に設定
C:\boost\lib に設定
mkdir c:\tools rmdir /s /q carla git clone https://github.com/carla-simulator/carla
最新版のファイルのファイルIDを確認する.
cd carla cd Util type ContentVersions.txt
「20210730_564bcdc」のところは,いま確認したファイルのファイルIDに一致させること.
cd c:/tools curl -O http://carla-assets.s3.amazonaws.com/20210730_564bcdc.tar.gz
エラーメッセージが出ていないこと.
cd c:/tools "c:\Program Files\7-Zip\7z.exe" x 20210730_564bcdc.tar.gz
cd c:\tools\carla cd 20210730_564bcdc cd Unreal\CarlaUE4 mkdir Content cd Content mkdir Carla "c:\Program Files\7-Zip\7z.exe" x c:\tools\20200422_ea5179a.tar
上の4つのファイルについて, 「-G VisualStudio 15 2017 Win64」を, 「-G VisualStudio 16 2019」に書き換え
cd .. make launch
これは,サーバをビルドし,Unreal Engine を起動する.
make PythonAPI cd PythonAPI/examples python spawn_npc.py