Skip to the content.

Simulation Installation and Environment Setup (Windows)

Back to Simulation Docs

Note: This page applies only to Windows users.

There are several pieces of software needed to get up and running with the simulator, namely PX4, Unreal Engine, and MavSDK. You will also need the software ubiquitous to the software team:

Table of Contents

It is recommended you follow this tutorial in the order listed.

The Unreal Engine version you will download is 4.27.2. AirSim, which allows us to simulate multirotors in Unreal, does not work with Unreal Engine 5 or greater.

Finally, run Unreal Engine at least once before continuing to the next steps.

Installing AirSim

Visual Studio

To install AirSim, you must first install Microsoft’s Visual Studio Community 2022. This will also be the IDE you will use for programming C++ code for Unreal.

When installing, you must select the following: When installing, you must select the following under the Individual Components tab:

AirSim

AirSim is an Unreal Engine plugin for simulating multirotors and cars that was previously maintained by Microsoft; it is the backbone of simulation.

To install AirSim, follow these steps:

  1. clone the AirSim GitHub repository: git clone https://github.com/Microsoft/AirSim
    • the location of your local copy does not matter
  2. Launch x64 Native Tools Command Prompt for VS 2022 (using Windows search)
    • navigate to where you cloned AirSim with the cd command
    • run the command .\build.cmd
    • wait for AirSim to build
      • you can move on to the next step while waiting

Incompatible Execution Policy

If you encountered no errors completing the above, you may skip this.

Sometimes, Windows may not allow you to run PowerShell scripts due to your Execution Policy. To fix this, start a PowerShell/Terminal as Administrator (right-click the application as click “Run as Administrator”). Then, run the following command:

Set-ExecutionPolicy RemoteSigned

Afterward, restart all Terminal/PowerShell instances to apply the change.

Next Steps

If you’ve run all the above steps, you’re environment should be set up!