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 -0600

lucasw gravatar image

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

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 -0600

gvdhoorn gravatar image

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

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

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

Stats

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

Seen: 27 times

Last updated: Aug 31