1 Star 0 Fork 2

笑容_郭 / AirSim

forked from zdzhaoyong / AirSim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.md 4.83 KB
一键复制 编辑 原始数据 按行查看 历史
clovett 提交于 2017-02-21 16:41 . add faq

How To Build and Install

Make sure you have read the prerequisites.

Install Unreal Engine

  1. Download the Unreal 4 engine from unreal.com. While the Unreal Engine is open source, cross platform and free to download, registration is still required as of this writing. You need version 4.14 or higher.
  2. After the download, run the Epic Game Launcher and click the big yellow "Install" button under the Unreal Engine tab.

Epic launcher install.

Install Dependencies

AirSim code has two external dependencies: Eigen library and Boost library.

  1. If you don't have already, install Boost.
  2. If you don't have already, install Eigen.

Get the Code and Build

  1. You need Visual Studio 2015 Update 3 (make sure to install VC++). Other versions haven't been tested.
  2. Start VS2015 x64 Native Tools Command Prompt. Create a folder for repo and run git clone https://github.com/Microsoft/AirSim.git
  3. Run build. If everything goes ok, it will copy all the binaries that you need to Unreal/Plugins folder in your repo. This Plugins folder can then be simply copied to your Unreal environment.
  4. Linux build is coming... stay tuned.

Create Unreal Environment Project

To run the simulator, you need an environment and its very easy to create one! Unreal Marketplace has dozens of prebuilt extra-ordinarily detailed environments ranging from Moon to Mars and everything in between. The one we have used for testing is called Modular Neighborhood Pack but you can use any environment.

  1. Either purchase an environment from Unreal Marketplace or choose one of the free ones such as Infinity Blade series. Alternatively, if you look under the Learn tab in Epic Game Launcher, you will find many free samples that you can use. One of our favorites is "A Boy and His Kite" which is a 100 square miles of highly detailed environment (caution: you will need very beefy PC to run it!). Epic Launcher - Learn
  2. Once you have the environment, you can simply go to the Library tab of the Epic Game Launcher and add in to any project you like. We recommend creating a new blank C++ project with no Starter Content and add your environment in to it.
  3. If the environment comes with MatineeActor, delete it to avoid any startup demo sequences. There might be other ways to remove it as well, for example, click on Blueprints button, then Level Blueprint and then look at Begin Play event in Event Graph. You might want to disconnect any connections that may be starting "matinee".
  4. You might have to set default map for your project. For example, if you are using Modular Neighborhood Pack, set the Editor Starter Map as well as Game Default Map to Demo_Map in Project Settings > Maps & Modes..

Install the AirSim Plugin

Copy plugins folder

Copy the Unreal\Plugins folder from the build you did in the above section into the root of your Unreal project's folder. The overall structure should look something like this:

Unreal folder structure

Enable plugin for your Unreal project

In your Unreal project's .uproject file, add Plugins section and key AdditionalDependencies so your project file looks like this:

  {
      "FileVersion": 3,
      "EngineAssociation": "4.14",
      "Category": "",
      "Description": "",
      "Modules": [
          {
              "Name": "MyUnrealProject",
              "Type": "Runtime",
              "LoadingPhase": "Default",
              "AdditionalDependencies": [
                  "AirSim"
              ]
          }
      ],
      "Plugins": [
          {
              "Name": "AirSim",
              "Enabled": true
          }
      ]
  }  

Ready, Set, Go!

You are all ready to go now!

  1. Right click on the Unreal project .uproject file, then Generate Visual Studio Project files.
  2. Double click on .sln file to open the solution.
  3. Hit F5.
  4. After Unreal Editor comes up, go to the World settings and select Game Mode = SimGameMode.
  5. Make sure your environment has a Player Start component or add one. This is where the quadrotor will be placed.
  6. Hit Play button.

Congratulations! You are now running AirSim in your own Unreal environment.

FAQ

If you run into problems, check the FAQ and feel free to post issues on the AirSim github.

1
https://gitee.com/xiaorongguo/AirSim.git
git@gitee.com:xiaorongguo/AirSim.git
xiaorongguo
AirSim
AirSim
master

搜索帮助