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

Camera FOV becomes unrealistic above 120 degrees #2129

Open
M-J-Murray opened this issue Aug 8, 2019 · 3 comments
Open

Camera FOV becomes unrealistic above 120 degrees #2129

M-J-Murray opened this issue Aug 8, 2019 · 3 comments

Comments

@M-J-Murray
Copy link

M-J-Murray commented Aug 8, 2019

Hello

I am attempting to simulate a camera on the default drone with airsim that is as close as possible to a camera I want to use in real-life. However, I'm finding that the FOV functionality in airsim isn't suitable for fisheye lenses. I want to use a 185 degrees FOV on my camera, however, when I configure the simulation to use these settings the results are bizarre, and highly unrealistic. Everything becomes warped and the camera perspective is completely wrong.
I have captured screen shots of what the ue4 shows vs what the simulated camera shows (this is for a custom 3d environment). The simulated camera is face down on the drone.
gameplay_host
gameplay_xavier
You can probably guess which one is which.

I used the following settings.json for the simulation:

{
	"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md",
	"SettingsVersion": 1.2,
	"SimMode": "Multirotor",
	"Vehicles": {
		"PX4": {
			"VehicleType": "PX4Multirotor",
			"Cameras": {
				"bottom_center": {
					"CaptureSettings": [
						{
							"ImageType": 0,
							"Width": 1280,
							"Height": 960,
							"FOV_Degrees": 185
						}
					],
					"X": 0, "Y": 0, "Z": 0.1,
					"Roll": 0, "Pitch": -90, "Yaw": 0 
				}
			},
			"Sensors": {
				"Barometer": {
					"SensorType": 1,
					"Enabled": true
				},
				"Imu": {
					"SensorType": 2,
					"Enabled": true
				},
				"Gps": {
					"SensorType": 3,
					"Enabled": true
				},
				"Magnetometer": {
					"SensorType": 4,
					"Enabled": true
				},
				"Distance": {
					"SensorType": 5,
					"Enabled": true
				}
			}
		}
	}
}

Is there any way the FOV calculations could be re-written so that they are more realistic?
Let me know if you require any more information.

@alwynmathew
Copy link

Can we model a 180 degree fisheye camera in AirSim? @saihv

@petergerten
Copy link

@M-J-Murray I am trying to get a 220 deg fisheye camera to work and get similar results. Could you eventually solve this?

@stale
Copy link

stale bot commented Apr 17, 2022

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.

@stale stale bot added the stale label Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants