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

Publishing virtual camera images from RVIZ

asked 2014-03-20 03:48:28 -0500

MZofka gravatar image

updated 2014-03-31 01:25:14 -0500

Hi Guys,

is it possible to define some kind of virtual camera model in the 3d world of rviz, where the video stream or single images can be published and therefore processed by successive ros nodes?

With best regards,


edit retag flag offensive close merge delete


Do you want to use that for visualization/presentation purposes or to run vision algorithms based on that?

dornhege gravatar image dornhege  ( 2014-03-31 03:30:41 -0500 )edit

Hi, thank you for your fast response. I want to run vision algorithms, like segmentation on that simulated camera view. With best regards, Marc

MZofka gravatar image MZofka  ( 2014-03-31 03:48:37 -0500 )edit

That sounds like you want a simulation like gazebo that does this.

dornhege gravatar image dornhege  ( 2014-03-31 05:01:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-30 10:15:30 -0500

lucasw gravatar image

updated 2016-02-23 06:41:54 -0500

rviz_camera_stream publishes an image rendered in rviz. It builds in jade at least, but likely works in hydro and indigo, and following the fork back leads to a pre-catkin version.

It needs an input camera_info to get camera intrinsics and resolution. The distortion coefficients are ignored, but a image_proc like node that implements could address that downstream. (Do gazebo cameras support distortion yet? says version 5.0 does)

The input camera_info topic and output image topic are set in the rviz plugin gui.

Old suggestion:

One hacky solution is to run a screen grab node and position the rviz window just so, though it would be very brittle and hard to automate with launch files.

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



Asked: 2014-03-20 03:48:28 -0500

Seen: 4,724 times

Last updated: Feb 23 '16