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 のインストール手順: 別ページ »で説明している.
【インストールの判断】
Build Tools for Visual Studio は,開発ツールセットである. Visual Studio は統合開発環境であり,いくつかの種類があり,Build Tools for Visual Studioの機能を含むか連携して使用するものである.インストールは以下の基準で判断してください:
Visual Studio 2022 をインストールする際に,「C++ によるデスクトップ開発」を選択することで, Build Tools for Visual Studio 2022 の機能も一緒にインストールされる.
不明な点がある場合は,Visual Studio 全体をインストール を行う方が良い.
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