ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

rviz Camera display incorporating CameraInfo operational parameters?

asked 2013-04-16 08:16:04 -0500

kmaroney gravatar image

updated 2014-01-28 17:16:12 -0500

ngrennan gravatar image

Does rviz support incorporating the operational parameters described in the camera_info message (sensor_msgs/CameraInfo) when overlaying the data from elsewhere (robot model, tf, markers) while displaying a camera feed?

The source (rviz camera display) shows creating a projection based on the camera height and width fields, as well as the projection camera matrix P - the calibration parameters. These are typically described by full camera frame calibration data rep 104. Is rviz not following the CameraInfo rep? Should it create the projection matrix based on the roi and binning parameters?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-16 09:38:37 -0500

dgossow gravatar image

RViz shouldn't care about the binning, since the image is painted on a textured polygon with a fixed size. ROI probably won't work, but should.

Please file a ticket on if you need this feature.

edit flag offensive delete link more


Thanks for the reply, this is helpful information. I think rviz should care about binning, only in the sense that this will effect the ROI width and height.

kmaroney gravatar image kmaroney  ( 2013-04-16 10:09:35 -0500 )edit

REP-0104 states that the ROI is specified in the full (unbinned) image coordinates:

joq gravatar image joq  ( 2013-04-16 14:17:31 -0500 )edit

I agree joq. The problem here is that the rviz camera display uses the height and width. As stated these should change only when the camera is calibrated. You should still be able to operate the camera at different image sizes..

kmaroney gravatar image kmaroney  ( 2013-04-17 10:46:20 -0500 )edit

and resolutions. It seems to me rviz is expecting your current image size to match the calibration-parameters image size. If we do choose to take into account the current ROI (specified in unbinned coordinates) we will have to create a new projection matrix based on this ROI and the binning.

kmaroney gravatar image kmaroney  ( 2013-04-17 10:50:10 -0500 )edit

answered 2018-05-30 07:40:57 -0500

lalten gravatar image

This is fixed in rviz 1.12.16:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-04-16 08:16:04 -0500

Seen: 758 times

Last updated: May 30 '18