-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unreal engine simulation crash in SITL mode on Mac and on Windows #330
Comments
I'd seen this issue report before where AirSim wasn't able to connect to SITL on Linux one of the setup however we never got around to debug it. With latest code, we have got everything working in Linux. To debug your seup tyou can probably use MavLinkTest (see logging). If you have xcode or Linux debugging experience, this is good place to contribute :). On Windows using PX4 SITL requires latest version of BashOnWindows. I think you need to upgrade to Windows 10 Creators Edition because older versions didn't had support for ports. Alternatively, if your goal is just to use computer vision, check out this doc. |
I upgraded to the latest version of Windows as you suggested, though I still get the same errors. When I tried opening a port from BoW and connected to it via UDP from Windows, that worked fine. I also verified with TCPView that PX4 is connected to port 14560. Any idea what might cause this issue? |
Could you see if you can connect to SITL via QGroundControl? If you can't then very likely you can't connect using AirSim either. |
I'm not sure what you mean by connect to SITL via QGroundControl; I opened QGroundControl, added a Link Configuration of UDP type on the PX4 port, and tried connecting to it. |
So may be that's the reason. If QGC can't connect then AirSim can't connect either. Do you see this message every time? Even if you restart everything? |
I have tried running AirSim in SITL mode both in MacOS and Windows 10, with no RC, UE4 release 4.15.3. I'm using AirSim-master for windows and a few weeks older version for Mac (I had trouble building the newest version on Mac so I just kept using the older one).
In both cases I tried using the block environment (following these instructions) and a simple custom environment (following these instructions), with a settings.json file that looks like this, except I changed useSerial to false.
In MacOS, when I hit play in the Unreal Engine (after switching to AirSimGameMode), it gets stuck and I have to force-quit it, though the log output does not indicate anything is wrong.
In Windows, after I hit play it first shows the errors:
and then crashes.
In both MacOS and Windows, the PX4 terminal is showing no messages after
INFO [simulator] Waiting for initial data on UDP port 14560. Please start the flight simulator to proceed..
.Please let me know what am I missing here.
The text was updated successfully, but these errors were encountered: