AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Function blocking if connection is lost. How to solve?

Open luis-bernard opened this issue 8 years ago • 2 comments

If I call a function (moveByVelocity, simGetImage, etc.) and I lose connection to the drone for some reason (e.g. level reset) the function will get blocked. In my application of Airsim I am constantly resetting the level, which leads to losing connection to the drone, and so the code gets stuck in an Airsim API function.

Is there someway around this block like using an UNBLOCK flag (similar to when reading from a socket)? Or a try statement? Or testing for some sort of return (function would return -1 if it lost connection)?

luis-bernard avatar May 31 '18 18:05 luis-bernard

Haven't see this. You might want to produce precise steps to reproduce this problem. Also try out new version. Please note that AirSim 1.2 has new APIs so you will need change in client API.

sytelus avatar Jun 23 '18 04:06 sytelus

If this is still a problem, please file a new issue with code, settings and clear steps to reproduce the issue.

sytelus avatar Oct 17 '18 07:10 sytelus