microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.54k stars 4.61k forks source link

How to access the API within the UE4 C++ files (not externally) #2842

Open aaronalmeida opened 4 years ago

aaronalmeida commented 4 years ago

As the title states, I want to be able to use the API's to control a drone within Unreal Engine rather than having another Visual Studio solution running. For example, when I boot my project in Unreal, I want the API's to already start running in the background. Someone attempted to do it here #1759 and I tried replicating it, but ultimately couldn't get it to work on my own desktop.

Thank you!

saihv commented 4 years ago

By API, do you mean the AirSim functionality that's accessible through Python?

Once you've built a project through Visual Studio, you can just double click on the uproject and run UE directly (along with AirSim functionality) without having to open the sln.

aaronalmeida commented 4 years ago

Hey,

Thanks for the reply. I meant opening the UE project in C++ and coding the functionality of the AirSim API (as in the moveToPosition(), takeOf() functions) within that UE project file (I am using C++ rather than python). Currently, you would have to have the API code open on one screen while running UE on the other.

Appreciate any help you could provide me with!

jonyMarino commented 4 years ago

Hi @aaronalmeida, Why do you want to do that?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity from the community in the last year. It will be closed if no further activity occurs within 20 days.