ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Is there a topic for camera FOV info?

asked 2020-07-22 08:55:06 -0600

Myzhar gravatar image

Hi, I'd like to publish info about the field of view of a camera, but I cannot find a standard topic for this information. Before creating a custom topic I want to be sure that there is nothing just ready for it.

Thank you Walter

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-07-22 09:44:58 -0600

Mehdi. gravatar image

The information about the camera FOV can be extracted from the camera info message of your camera, so it is kind of redundant to publish the FOV separately. And to answer your question, there isn't a message for publishing a camera FOV, at least not in the official ROS packages.

edit flag offensive delete link more

Comments

1

Do you mean using those formulas? fov_x = 2 * atan2( w, (2*f_x) ) and fov_y = 2 * atan2( h, (2*f_y) )

Myzhar gravatar image Myzhar  ( 2020-07-22 09:51:21 -0600 )edit

yes something like that.

Mehdi. gravatar image Mehdi.  ( 2020-07-22 10:46:43 -0600 )edit

It will be very helpful if you could add for how to extract FOV from the camera_info message. The first comment doesn't state what each parameter is, and where it is taken from.

omers gravatar image omers  ( 2022-09-18 02:08:36 -0600 )edit
1

W is image width and h is image height in pixels. F_x and f_y are the focal lengths, from the camera matrix K[0][0] and K[1][1]

Mehdi. gravatar image Mehdi.  ( 2022-09-19 06:59:14 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2020-07-22 08:55:06 -0600

Seen: 1,067 times

Last updated: Jul 22 '20