Move the Drone using Unreal Engine C++ code. #5027
Unanswered
AbderrahimJami
asked this question in
Support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm interested in controlling the drone using UE4 scripting, according to the AirSim settings controlling the drone using the Multirotor API can be performed using RPC, I tried digging into the code and unfortunately I can't seem to be able to use the same API functions inside a custom FlyingDrone custom UE4 C++ class. Is there any way for me to achieve this. I want to be able to encapsulate the movement logic of the drone inside it's own UE4 C++ class without relying on any extra C++ or Python process running.
I tried forcing the location of the drone using Unreal Engine API through the GetPawn()->SetActorLocation(FVector) but that cause issues with AirSim. I think the whole system wasn't designed around this and trying. When querying AirSim vehicle pose in fact, it still return the drone origin location. Not to mention the camera in "fly-with-me" mode seems to be moving in weird places.
I've tried looking for other discussions around this in here and online but I haven't been able to find much on this.
If the authors of AirSim can shine some light on this matter, that's be really grateful 🙌
Beta Was this translation helpful? Give feedback.
All reactions