microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.34k stars 4.56k forks source link

Linux AirLib update #1418

Closed Bill1235813 closed 5 years ago

Bill1235813 commented 6 years ago

My team is working on a data-intensity project with AirSim environment. We really want a AirLib for Linux so we can work with headless mode on clusters, but it seems no way to make it now. When will you update the Linux Binaries?

TritonSailor commented 6 years ago

You can try this linux binary. Built yesterday with latest AirSim master and UE4 4.20.2

https://www.dropbox.com/s/iuzh03fm76vinzq/Redtail.tgz?dl=0

It's a forest trails environment. Runs sloooow compared to the Win64 version, but if it's in headless mode maybe won't matter, since the FPS is limited by the draw time. I haven't tried headless.

Bill1235813 commented 6 years ago

@TritonSailor Thanks, that's cool. But could you explain how to build this linux binary? We have a different map so we need to build it by our own.

DavidLSmyth commented 6 years ago

We're also hoping to build a linux binary for a custom map, any guidelines on how to do this would be fantastic

TritonSailor commented 6 years ago

Well, basically what you want to do is go to the File menu and select Package Project -> Linux.

That's the easy part. Next you get to fix all the errors that show up. Good luck. At this point in time, packaging seems to be significantly more challenging on Linux compared to Windows. Some errors may be related to AirSim, others for shader compilers, or linux system errors.

If you're going to make the binary available for public use, I'll try packaging it if you want to send me an email with link to the project files. chris.gaddis@gmail.com

DavidLSmyth commented 6 years ago

Thanks for the info, we'll give it a go and hopefully will be able to fix any errors. Thanks for the offer, we may take you up on it!

Bill1235813 commented 6 years ago

Thanks for the help of @TritonSailor, finally I made it with latest AirSim master and UE4 4.20.3. I followed the step of issue #1333 first. But I still had the problem of enabling PCH exceptions. I tried to disable PCH by bUsePCHFiles = false; in yourproject/Source/yourproject.Target.cs. This fixed my PCH problem in Ubuntu 16.04, but I'm not sure if it'll work in 18.04.

If you have further error of FModuleManager, you can add #include "Runtime/Core/Public/Modules/ModuleManager.h to Plugins/AirSim/Source/AirSimGameMode.cpp

If you still get the error of enabling PCH exceptions. Try running clean_rebuild.sh in AirSim.