1 | initial version |
I decrease the horizontal_hov values, the object in the camera frame would look a lot closer but the horizontal field of view decreases accordingly.
That's correct, and it's the definition of field of view. Camera's FOV is directly related to the lens's focal length (or zoom). Having 160-degree FOV means the camera can see 80 degrees to the left and to the right, which makes it almost a fisheye camera (180-degree means you can see everything in front of the sensor's plane. Wideangle lenses (smaller focal lengths) have larger FOV and objects will look farther in the image, while telephoto lenses or more commonly known as zoom lenses (larger focal length) have smaller FOV and objects will look closer and larger.
Also, I got the distortion values from the real camera, but by adding those numbers in gazebo didn't show any barrel effect like I saw in the hardware camera.
I'm not sure if ROS plugin do that for you. You can try by placing the distortion information in the <camera>
itself. I only use SDF format, and the reference is here http://sdformat.org/spec?ver=1.7&elem=sensor#camera_distortion