AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

how to drive the multirotor rotate on pitch angle and roll angle

Open Cming7 opened this issue 4 years ago • 4 comments

Question

What's your question?

I want to drive the multirotor rotate on pitch angle and roll angle. Does multirotor support moveByAngleZAsync? What's the TODO meaning in the Unity APIs?

Include context on what you are trying to achieve

I just find the rotateToYawAsync API to drive the multirotor rorate on yaw angle. And the multirotor pose doesn't change using moveByAngleZAsync API.

client.moveByAngleZAsync(0, 0, -2, 30 / 180 * math.pi, 5).join()

Looking forward to your reply. Thank you so much!

Cming7 avatar Jan 20 '22 01:01 Cming7

Are you building Airsim on Unity? If an API says TODO in the Unity APIs, then that means it works in Unreal Engine but not Unity.

Gastastrophe avatar Jan 20 '22 16:01 Gastastrophe

Are you building Airsim on Unity? If an API says TODO in the Unity APIs, then that means it works in Unreal Engine but not Unity.

I build the project on UE4.27.

Cming7 avatar Jan 21 '22 00:01 Cming7

Hi @Cming7, the server binding for this API was removed in #2297. You'll want to use the moveByRollPitchYawZAsync API instead.

zimmy87 avatar Feb 02 '22 20:02 zimmy87

I put out PR #4338 to fix this.

zimmy87 avatar Feb 02 '22 20:02 zimmy87