It all started wHEN

Build Unreal Engine and Airsim

  • Make sure you are registered with Epic Games. This is required to get source code access for Unreal Engine.

  • Clone Unreal in your favorite folder and build it (this may take a while!). Note: We only support Unreal 4.18 at present.

    # go to the folder where you clone GitHub projects
    git clone -b 4.18 https://github.com/EpicGames/UnrealEngine.git
    cd UnrealEngine
    make -j8
  • Clone AirSim and build it:

    # go to the folder where you clone GitHub projects
    git clone https://github.com/Microsoft/AirSim.git
    cd AirSim
    By default AirSim recommends using clang 5 to build the binaries as those will be compatible with Unreal.  The setup script
    will install the right version of cmake, llvm, and eigen:

    Optionally, if you need GCC binaries for some other reason, you can simply add gcc to the setup and build invocation, like this:

    ./setup.sh --gcc
    ./build.sh --gcc

    Build Unreal Environment

    Finally, you will need an Unreal project that hosts the environment for your vehicles. AirSim comes with a built-in "Blocks Environment" which you can use, or you can create your own. Please see setting up Unreal Environment

    //Install Snap and Pulse Audio prior to build

    $ sudo apt-get install snap
    $ snap install pulseaudio
  • $  sudo connections pulseaudio

    $ cd

    $ cd /UnrealEngine/Engine/Binaries/Linux

    $ ./UE4Engine -j8

    [Optional] Setup Remote Control (Multirotor Only)

    A remote control is required if you want to fly manually. See the remote control setup for more details.

    Alternatively, you can use APIs for programmatic control or use the so-called Computer Vision mode to move around using the keyboard.

    How to Use AirSim

    Once AirSim is set up by following above steps, you can,

    Go to UnrealEngine folder and start Unreal by running UnrealEngine/Engine/Binaries/Linux/UE4Editor.

    • When Unreal Engine prompts for opening or creating project, select Browse and choose AirSim/Unreal/Environments/Blocks (or your custom Unreal project).

    • If you get prompts to convert project, look for More Options or Convert-In-Place option. If you get prompted to build, chose Yes. If you get prompted to disable AirSim plugin, choose No.

    • After Unreal Editor loads, press Play button. Tip: go to 'Edit->Editor Preferences', in the 'Search' box type 'CPU' and ensure that the 'Use Less CPU when in Background' is unchecked.

    See Using APIs and settings.json for various options available.


//Errors Compiling Shaders

$ sudo nano /etc/default/grub

//Change the following line below

# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash noapic acpi=off"

$ update-grub2

$ reboot

$ cat /proc/cpuinfo | grep processor | wc -l