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

Does getCameraInfo API actually work? #993

Open
Domi47 opened this issue Apr 19, 2018 · 1 comment
Open

Does getCameraInfo API actually work? #993

Domi47 opened this issue Apr 19, 2018 · 1 comment
Labels

Comments

@Domi47
Copy link

Domi47 commented Apr 19, 2018

Despite I change FOV value in settings.json file, getCameraInfo API always return 90 (what seems to be the default value). Also, this API takes camera ID as an argument but as far as I know when you set FOV in json file it depends on image type, not camera ID itself. So my questions are:
what does this API return? Is getCameraInfo API working, or settings.json file not changing FOV?

Thanks!

@sytelus sytelus added the bug label Apr 25, 2018
@sytelus
Copy link
Contributor

sytelus commented Apr 25, 2018

I see the problem and can confirm this is a bug. Each camera in AirSim actually has multiple sub-cameras (in Unreal lingo, SceneCapture2D) underneath it, one for each image type. When you set FOV, it gets applied to all sub-cameras handling that image type. However getCameraInfo() only returns scene type sub-camera.

I think we need to refactor few things here... probably create a new camera setting. Also, add image_type in getCameraInfo API. If you know how to do it, please feel free to contribute.

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

No branches or pull requests

4 participants