-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 API #3573
Comments
Could you test #3278, it should fix the problem for settings as well |
In fact, I have seen this commit. Yes, I modify my local airsim code, and it test ok for THAT issue. According to #3278, the API But this is a different issue, I set FoV using |
@xyxu1024 You're correct, the linked PR doesn't solve the issue, sorry for that. I had a look at the code, the main problem here is that the settings allows different FoVs for different image types, which raises the question as to what should be the reported FoV in this case |
Futher more testing, the fov info returned from the API
|
So should this be classified as a bug to be fixed or a "feature" 😅. Anyways, a note regarding this should definitely be added to the docs |
I think the camera FOV being based on the value set with ImageType=-1 is the intended behavior here. There is a note in the docs here that specifies that the ImageType value -1 is a special value used for setting the camera's parameters (as opposed to just the capture) |
Bug report
What's the issue you encountered?
My AirSim
setting.json
is hereAll image sensor will give me a RGB picture of fov 150:
But when I call the API
simGetCameraInfo
, it always says fov is 90:These are result:
I think the setting.json is efficient, but the API
simGetCameraInfo
returns an incorrect fov infoSettings
How can the issue be reproduced?
Include full error message in text form
What's better than filing an issue? Filing a pull request :).
The text was updated successfully, but these errors were encountered: