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

launching image_view for a topic

asked 2012-08-17 06:04:56 -0600

DocSmiley gravatar image

updated 2012-08-17 06:06:37 -0600

I am trying to view the images my robot's cameras are receiving remotely. The following in the command line will bring up a window with the video stream

$ rosrun image_view image_view image:=/stereo/right/image_raw

However I cannot find any information on how to put the "image:=/stereo/right/image_raw" part into a launch file

Alternatively, how can I use image_view in a python node to embed the video in a gui of my design?

I'm using: ROS electric

Ubuntu 11.10

uvc_camera

Tkinter

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
5

answered 2012-08-17 07:08:30 -0600

updated 2012-08-17 07:11:05 -0600

This is called remapping, and can be done using the remap tag.

You can display images from Python is using OpenCV's imshow function.

edit flag offensive delete link more
3

answered 2016-12-05 07:46:58 -0600

Dr Roboto gravatar image

here is what I did to get image_view to work from a launch file;

<node name="image_view" pkg="image_view" type="image_view" respawn="false" output="screen">
<remap from="image" to="/usb_cam/image_raw" />
</node>
edit flag offensive delete link more
2

answered 2019-03-26 07:21:01 -0600

The question is quite outdated but maybe an alternative approach will help somebody:

  <node pkg="rqt_image_view" type="rqt_image_view" name="image_view_debug" args="/debug_img"/>
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-08-17 06:04:56 -0600

Seen: 7,807 times

Last updated: Mar 26 '19