microsoft / AirSim

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

Does the position of camera keep same while the drone yaws left/right? #3068

Open Rutsow opened 4 years ago

Rutsow commented 4 years ago

mode: SimpleFlight. setting.json: { "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md", "SettingsVersion": 1.2, "SimMode": "Multirotor", "ViewMode": "Manual" } I try to get the depth image(144x256) of two consecutive conditions. In the case of yaw right (5 degrees), the right half of the previous image should ideally be the same as the left half of the next image. But the results is not so. previous image: image

next image: image

Ideally, the column 99 of the previous image should be the same as the column 83 of the next image. But there are still a few differences.

Is it because of the instability? Or a change in the position of camera?

nightduck commented 3 years ago

The camera is fixed relative to the drone, unless changed by simSetCameraOrienation(...). So if the drone yaws 5 degrees left, the camera viewport will also rotate 5 degrees. What you're seeing is likely do to minute lightning effects, but mostly the mechanics of camera lenses. Pixels become distorted apart the further they are from the center of your field of view. So a vertical line of pixels would not stay intact as you rotate them across your field of view. They would stretch and bend.

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.