gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.2k stars 484 forks source link

Camera visual fov doesn't match horizontal_fov value of the sensor. #3306

Open InigoMoreno opened 1 year ago

InigoMoreno commented 1 year ago

Environment

Description

Steps to reproduce

Click to see world file ```xml model://ground_plane 0 0.5 0.05 0 0 0 0.1 0.000166667 0.000166667 0.000166667 0.1 0.1 0.1 0.1 0.1 0.1 1.047 320 240 0.1 100 1 30 true 1.0 0.5 1.0 0.0 0.0 0.0 0.1 0.000166667 0.000166667 0.000166667 0.1 0.1 0.1 0.1 0.1 0.1 2.047 320 240 0.1 100 1 30 true ```

Output

Both cameras have same visual FOV despite one having the double than the other, image

yg1031 commented 4 days ago

Same problem, did you solve this?

InigoMoreno commented 1 day ago

I did a fix for my gazebo version but that was a bit outdated and I haven't really thought about doing it for newer versions.