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

Visualize camera_info as a set of four image corner rays emanating from the camera origin in rviz?

asked 2021-08-31 14:14:02 -0500

lucasw gravatar image

updated 2021-08-31 14:16:18 -0500

I think this already exists (maybe it was one package among many in a github repo used in a robotics competition a few years ago), but I'm not finding it now. It would be nice to see where the corners of a camera intersect other geometry or point clouds in rviz while being able to rotate the camera around (as opposed to only looking at rviz geometry from the point of view of the camera with the Camera plugin).

A from-scratch implementation could use opencv to get a 3D vectors to each corner (or even generate additional intermediate rays to show the camera distortion), then make an rviz Marker out of them.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-08-31 14:21:10 -0500

gvdhoorn gravatar image

updated 2021-08-31 14:32:08 -0500

I know of at least jsk_rviz_plugins which can do this: jsk-visualization.readthedocs.io: CameraInfo:

camera_info rviz plugin

There are others I believe, but I'd have to search.

maybe it was one package among many in a github repo used in a robotics competition a few years ago

you may be remembering Team Vigir's RViz plugins: team-vigir/vigir_ocs_common. But from this, I get the impression it's basically the jsk_rviz_plugins plugin with some configuration options added.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-08-31 14:14:02 -0500

Seen: 116 times

Last updated: Aug 31 '21