IE-482-582 / fall2020

Course materials for the Fall 2020 semester of IE 482/582
5 stars 9 forks source link

AirSim Install Method #20

Open Jeremiahs100 opened 4 years ago

Jeremiahs100 commented 4 years ago

Hello these were the specific steps I used to install AirSim and Unreal engine

Install from here Ubuntu from here

https://releases.ubuntu.com/18.04/

Instructions to install Ubunutu - I suggest using "dynamically allocated" hard drive rather that "fixed"

https://brb.nci.nih.gov/seqtools/installUbuntu.html

ROS Melodic Installation

Following the steps worked for me http://wiki.ros.org/melodic/Installation/Ubuntu

Install Unreal and AirSim

Follow the Steps on the website

Should be able to install Unreal or AirSim first it doesn't matter

https://microsoft.github.io/AirSim/build_linux/

Unreal Install git clone -b 4.24 https://github.com/EpicGames/UnrealEngine.git

In order for this to work you have to make to be registered with Epic Games and Link your account to Github https://www.unrealengine.com/en-US/blog/updated-authentication-process-for-connecting-epic-github-accounts

Check your email to accept invitation!

./Setup.sh - This took a while

./GenerateProjectFiles.sh - This took a while too

make - This also took a while

Before installing AirSim make sure to use sudo apt-get install gcc-8 g++-8

And

sudo apt-get install ros-melodic-tf2-sensor-msgs ros-melodic-mavros

Had no issues with this git clone https://github.com/Microsoft/AirSim.git;' 'cd AirSim;' './setup.sh;' './build.sh;

Do not use "Catkin build" use: cd ros; catkin build -DCMAKE_C_COMPILER=gcc-8 -DCMAKE_CXX_COMPILER=g++-8

This will not work roslaunch airsim_ros_pkgs airsim_node.launch;

cd AirSim/ros/src/airsim_ros_pkgs/launch chmod +x *.launch Change directory back to AirSim/ros then do: catkin build

This command should work now roslaunch airsim_ros_pkgs airsim_node.launch;

Opening Unreal Engine

An error I ran into was:

Incompatible Vulkan driver found

Fixed it by

Fixed the startup issue by uncommenting Line 2156 "+TargetedRHIs=GLSL_430" in file UnrealEngine/Engine/Config/BaseEngine.ini

Then

In this way the Vulkan requirement is skipped and the editor can start properly. Using the terminal reach the linux binaries folder( cd /UnrealEngine/Engine/Binaries/Linux ) and then use this code in order to launch the editor under ( ./UE4Editor -opengl4 ) or ( cd UnrealEngine/Engine/Binaries/Linux ) then type ( UE4Editor).

After this UE4 Editor opened