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

CinematicCamera on Drones #2311

Closed
ppueyor opened this issue Nov 13, 2019 · 11 comments · Fixed by #3949
Closed

CinematicCamera on Drones #2311

ppueyor opened this issue Nov 13, 2019 · 11 comments · Fixed by #3949

Comments

@ppueyor
Copy link
Contributor

ppueyor commented Nov 13, 2019

Hi!

I would like to know if there is a way to change the manual focus distance of the cameras of the drones, either through settings.md or by calling a function, like it is done in UE4 with a Cinematics Camera:

image

Is it possible to place a Cinematics Camera on the drones?

@ppueyor ppueyor changed the title Focus distance of drones Focus distance of the cameras Nov 13, 2019
@surongkai
Copy link

Hello, I want to know the photo shown in the picture above, where is the focus setting from?

@ppueyor
Copy link
Contributor Author

ppueyor commented Nov 21, 2019

In Unreal Editor 4, if you place a Cinematic Camera.

@surongkai
Copy link

When I perform the HIL simulation in the UE4, after setting the Setting file, I can generate the depth image. The camera used is the camera in the model. In this case, where can the internal reference such as the camera focal length be found?
thanks!

@ppueyor
Copy link
Contributor Author

ppueyor commented Nov 21, 2019

Yeah, that was my first question.

I can set those values of a Cinematics Camera if I place it in the editor of the map, but can't do it through the AirSim API or the Settings file. Seems like the camera integrated in AirSim is a regular camera. I guess it is not possible to place a cinematic camera in order to change those parameters, or to change things like the focus distance of the cameras integrated in the drones.

Would be interesting though!

@surongkai
Copy link

Is the camera that generates the depth map in airsim the same as the focal length of the Cinematics Camera? If not, if I want to see the internal parameters of the depth camera, where should you find it?
thanks!

@ppueyor
Copy link
Contributor Author

ppueyor commented Nov 25, 2019

The thing is that Unreal API does provice tools to play with the "UCineCameraComponent", where it is possible to change the FocusDistance programatically from their API. (code attached)

Would be great if AirSim would let us place a CineCameraComponent instead of a simple camera on the drones and change its params through the API.

image

@ppueyor ppueyor changed the title Focus distance of the cameras CinematicCamera on Drones Nov 28, 2019
@LIU-Xueming
Copy link

Hi,

Is the camera model in UE4 or Airsim a pinhole imaging model? Or other models?
I try to use the camera's internal parameters (like Equivalent Focal Length) and images for distance measurement.

Any suggestions ?

Thanks!

@ppueyor
Copy link
Contributor Author

ppueyor commented Oct 28, 2021

Hi @LIU-Xueming,

We are trying to integrate the Cinematic Camera into the main branch of AirSim as discussed in #3949.

In the meanwhile, CinemAirSim does the trick: https://github.com/ppueyor/CinemAirSim
U can install and use it.

Hope it helps!

@gudong321
Copy link

gudong321 commented Apr 6, 2022

CinemAirSim is just for Linux, but for win? And this bug #3487 @ppueyor

@ppueyor
Copy link
Contributor Author

ppueyor commented Apr 6, 2022

Hi @gudong321,

Theoretically, it is also available for Windows, but I didn't have the chance to test it there.

@jonyMarino
Copy link
Collaborator

@gudong321 the cinematographic camera works on windows too!

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

Successfully merging a pull request may close this issue.

6 participants