Skip to content

Unreal Simulation Setup

Devon Ash edited this page Feb 4, 2019 · 19 revisions

Prerequisites

Install Unreal and Simbotic

Unreal

git clone -b 4.21 git@github.com:EpicGames/UnrealEngine.git
cd UnrealEngine
./Setup.sh
./GenerateProjectFiles.sh
make

Using Simbotic instead of AirSim (These are alternative/pending instructions, see "Current Instructions" below)

git clone --recursive git@github.com:VertexStudio/Simbotic.git

Environment variables:

export SIMBOTIC_UE4=/path/to/UE4_21
export SIMBOTIC_ROOT=/path/to/Simbotic

Generate project files and build:

cd $SIMBOTIC_ROOT
./generate.sh
./build_airsim.sh
./build.sh

Run sim:

./run.sh

Important: After launching Simbotic by calling run.sh you have to press play inside the running Unreal editor.

MADARA and GAMS

git clone -b gpc-unreal git@github.com:jredmondson/gams.git
export UNREAL_ROOT=/path/to/unreal
export SIMBOTIC_ROOT=/path/to/Simbotic
export SIMBOTIC_UE4=/path/to/unreal

Build

./scripts/linux/base_build.sh madara gams airlib clang

Important: Add the environment variables which are printed by the base_build script to your .bashrc or activation script.

Current Instructions (Using AirSim directly)

Important: If you are using the most recent gpc-unreal branch (as per the clone above), your "using_airlib.mpb" file will be pointing to $(AIRSIM_ROOT) rather than $(SIMBOTIC_ROOT). If you wish to use Simbotic (in development) please see the above instructions. (AirSim is default in gpc-unreal as of Monday, Feb 4th, 2019), follow these instructions (from https://microsoft.github.io/AirSim/docs/build_linux/)

Clone AirSim and build it: bash

   # go to the folder where you clone GitHub projects
   git clone https://github.com/Microsoft/AirSim.git
   cd AirSim
   ./setup.sh
   ./build.sh

Set your $(AIRSIM_ROOT) to be wherever you installed AirSim.

Waypoint Demo

Launch Simbotic and press play inside the Unreal Editor.

$GAMS_ROOT/scripts/simulation/waypoints/waypoints.pl

Clone this wiki locally