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

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,

Marc

edit retag flag offensive close merge delete

Comments

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
3

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
2

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 http://code.opencv.org/issues/1387 could address that downstream. (Do gazebo cameras support distortion yet? http://gazebosim.org/tutorials?tut=ca... 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 http://wiki.ros.org/screengrab_ros 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

2 followers

Stats

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

Seen: 5,784 times

Last updated: Feb 23 '16