AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

Pan tilt on the Drone

Open xlong0513 opened this issue 6 years ago • 4 comments

Hi, i want to adding pan-tilt on the drone to achieve a down-looking camera to capture images. I have got some inspirations from #539. First, i have set a camera 3(bottom_center) in setting files; second i use simSetCameraOrientation to achieve a the pan tilt. The attitude angles are all set as 0 to simulate down-looking effects. Part of the codes are as following screenshot. 2019-12-27 15-08-49

However, the captured images are still shaking with the drone? Can anyone tell us what's the matter?

#Update We have revised our code. We think the drone's altitude is affecting the camera, thus the orientation of the camera cannot be set to 0. So we got the current attitude of he drone and do a reverse rotation to the camera to achieve "pan tilt'. However, it still fail. The following is our new version code. 2019-12-27 16-27-50

xlong0513 avatar Dec 27 '19 07:12 xlong0513

Hey I have a fix for the shaking drone, check it out over at: https://github.com/microsoft/AirSim/issues/1394#issuecomment-629936379

currently running into some weird issues with set camera orientation jumping around

ACLeighner avatar Jul 17 '20 05:07 ACLeighner

Hello xlong0513,

I too have run into jittery camera issues - even after inverting the drone orientation. I have posted about it here:

https://github.com/microsoft/AirSim/issues/2595

I have not yet tried ACLeighner's solution but it sounds like they are still experiencing camera jitter issues. Hopefully between us we can figure this out!

nethtrick avatar Jul 20 '20 13:07 nethtrick

@ACLeighner @nethtrick Hi, there, thanks for the reply. However, I am now isolated at home now, and cannot work on it. When back to work, I will try the solution and reply.

xlong0513 avatar Aug 04 '20 01:08 xlong0513

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.

stale[bot] avatar Apr 17 '22 15:04 stale[bot]