AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

using airsim without visualisation

Open Jacquesval opened this issue 8 years ago • 6 comments

Hello, I want to use some reinforcement learning for self driving car algorithm, and I'm wondering if it's possible to use the API without visualization? I just need the sensor data and the collision state. Thanks

Jacquesval avatar Feb 20 '18 16:02 Jacquesval

@aburgm has added PR https://github.com/Microsoft/AirSim/pull/850. It's very close to be done.

sytelus avatar Feb 27 '18 14:02 sytelus

Note however that also with #850 it will still open a window, that window will just remain black (or just keep showing the last rendered frame), except for the log messages. So depending on for what exactly you need the visualization disabled, this might or might not be what you are looking for. It's mostly about improving performance of the API or subwindows.

aburgm avatar Feb 27 '18 16:02 aburgm

BTW, I've run AirSim in Azure via Batch. In that case, AirSim gets started in Session 0 because there is no monitor attached to to computer (although you will need to use the OpenGL3 renderer instead of the DirectX). There is no window created, but the exe is running and the API works.

mitchellspryn avatar Feb 28 '18 08:02 mitchellspryn

Thank you very much it's what I wanted to know. And if I use it on Azure, should I build the code or can I use directly the binaries ?

Jacquesval avatar Mar 01 '18 13:03 Jacquesval

Either should work. From the perspective of Batch, it's just kicking off an arbitrary command, so it shouldn't matter if you're using the exe from the repo or if you're running an exe you've created by integrating AirSim into your custom environment.

mitchellspryn avatar Mar 02 '18 08:03 mitchellspryn

PR https://github.com/Microsoft/AirSim/pull/850 is merged which allows to turn off rendering for the main view port.

sytelus avatar Apr 12 '18 00:04 sytelus