Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect FOV in simGetCameraInfo call #2977

Closed
clintlombard opened this issue Aug 26, 2020 · 7 comments · Fixed by #3278
Closed

Incorrect FOV in simGetCameraInfo call #2977

clintlombard opened this issue Aug 26, 2020 · 7 comments · Fixed by #3278
Labels

Comments

@clintlombard
Copy link

Using the Python API, changing the FOV_Degrees field in settings.json or using simSetCameraFov() to set a cameras FOV works. However, when querying the camera information with simGetCameraInfo(), it always returns a CameraInfo.fov = 90. Could this be incorrectly reporting the vertical FOV, or is it not being updated with the new horizontal FOV changes?

Python: 3.6.9
AirSim Plugin: commit bd8ee6b (latest on master at the time)
AirSim Python API: 1.2.8
UE: 4.25.3 (also tested in 4.24.3)
OS: Ubuntu 18.04 (docker container)

@VC86
Copy link

VC86 commented Aug 26, 2020

I confirm the issue on
Python 3.6
AirSim built on Windows from latest master commit: bd8ee6b
UE: 4.24.3
OS: Windows 10

@ironclownfish ironclownfish self-assigned this Aug 26, 2020
@MoBaT
Copy link

MoBaT commented Jan 5, 2021

Also seeing this issue on:

AirSim Plugin: commit f36efa6
UE: 4.25.3
OS: Ubuntu 18.04

@rajat2004
Copy link
Contributor

Will be great if someone can test #3278 and see if it fixes the problem

@desireB
Copy link

desireB commented Apr 15, 2021

Hi Clint,

Would you mind sharing your settings.json ?

Thank you.

@rajat2004
Copy link
Contributor

@desireB #3573 might be useful for some examples of settings

@desireB
Copy link

desireB commented Apr 15, 2021

Thanks, @rajat2004 !

@Shromm-Gaind
Copy link

I posted this issue on unrealcv, however, I am not sure if it is maintained or checked. Can someone please explain to me which format of the projection matrix does AirSim generate? Currently, I am getting;
[ 0.0, 1.0, 0.0, 0.0],
[ 0.0, 0.0, -1.8, 0.0],
[ 0.0, 0.0, 0.0, 10.0],
[ -1.0, 0.0, 0.0, 0.0]
But I am not sure about this...It seems wrong. I was expecting to get;
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants