AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

HelloDrone.cpp: Waiting for Connection (Windows)

Open MelSoS opened this issue 7 years ago • 3 comments

Hello all,

Windows 10 VS 2017


  1. I created a new project on the Youtube video tutorial Unreal AirSim from Scratch: https://www.youtube.com/watch?v=1oY8Qu5maQQ
  2. Then I included the AirLib, and HelloDrone example to this project, and set HelloDrone as start project
  3. After Building and Running it, I get only following command line window, the unreal engine is not opening: image

Do you have any ideas what it was I did wrong?

MelSoS avatar Dec 18 '18 11:12 MelSoS

HelloDrone communicates with Unreal, but it does not operate inside unreal. It is waiting for a connection because there currently isn't anything for it to connect to. In order to run AirSim APIs, you must have your unreal binary running.

  • Open your unreal environment in the unreal editor
  • Press play
  • Run the HelloDrone binary

msb336 avatar Dec 18 '18 18:12 msb336

Thank's a lot, working (although during the build process of the helloDrone the rpc.lib cannot be found- but it works!)!

This opens up some more questions: Is and how is it possible to produce a "drone behavior" and "activate" it via Unreal --> API as part of Unreal, e.g., (exemplary usage) click the play-button in Unreal and the simulation would work?

MelSoS avatar Jan 02 '19 22:01 MelSoS

As far as I am aware, this is not possible. You need to communicate through the airsim server in order to make calls to the APIs.

If you have no more problems related to this issue, lets go ahead and close it.

msb336 avatar Jan 03 '19 15:01 msb336