Skip to content
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

Closed
Natalybr opened this issue Jul 10, 2017 · 5 comments
Closed

Unreal engine simulation crash in SITL mode on Mac and on Windows #330

Natalybr opened this issue Jul 10, 2017 · 5 comments

Comments

@Natalybr
Copy link

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:

Vehicle controller could not be started, please check your settings.json
Could not find a connected px4 flight controller

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.

@sytelus
Copy link
Contributor

sytelus commented Jul 11, 2017

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.

@Natalybr
Copy link
Author

I upgraded to the latest version of Windows as you suggested, though I still get the same errors.
I also tried using this advice with no luck.

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?

@sytelus
Copy link
Contributor

sytelus commented Jul 17, 2017

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.

@Natalybr
Copy link
Author

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.
The following message was shown:
Connect not allowed during Firmware Upgrade

@sytelus
Copy link
Contributor

sytelus commented Jul 19, 2017

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?

@sytelus sytelus closed this as completed Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants