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

Publishing virtual camera images from RVIZ

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

MZofka gravatar image

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

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

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

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

1 Answer

Sort by ยป oldest newest most voted

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

lucasw gravatar image

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

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

Question Tools



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

Seen: 5,687 times

Last updated: Feb 23 '16