Function blocking if connection is lost. How to solve?
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)?
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.
If this is still a problem, please file a new issue with code, settings and clear steps to reproduce the issue.