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

Creating interactive image display(in rviz?)

asked 2013-02-24 22:02:46 -0600

devesh gravatar image

updated 2013-04-28 23:25:57 -0600

ipso gravatar image

Hi, I am a total ROS/gazebo noob. I recently installed groovy on ubuntu 12.10 and I am running the TUM's gazebo simulator for a quadrotor.

My question - There is an image topic being published by the simulator(which is the 2D image of the world that the quadrotor sees using its camera). I can view this image in rviz or using image_view package.

How do I create a gui window where I can display this image and when I click at a location in the image, I get the mouse click event(location of the click within the image window)?

I would appreciate if the solution is a bit more detailed or guiding as I am a total noob to ROS itself.(the solution need not be related to rviz)

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-03-17 04:17:08 -0600

devesh gravatar image

Finally got something working using this link below.

To create an image panel, all I needed to do was write a config file(which included a image display panel and the topic to subscribe from) and then load that config file.

Instead of manually creating the config file, I open rviz and then created a Display Panel in that and then added image to the Display and then set the topic in the properties for the image. Then, I saved these configs in from the File menu and am currently using it.

edit flag offensive delete link more

answered 2013-02-25 04:55:00 -0600

One way to do it might be to create a new panel in Rviz that displays the image. Then you can capture the click event and do what you need to with it. If that sounds like it meets your needs, this tutorial is probably a good place to start:

edit flag offensive delete link more


Sorry jj56. But I haven't been able to use that link because I am finding it hard. I believe I am much more of a noob than someone who could follow that tutorial. I still don't know how to add an image display panel.

devesh gravatar image devesh  ( 2013-02-28 04:29:25 -0600 )edit

Ah, yeah, it's definitely not a beginner tutorial. You might be able to do something similar by making your own GUI in python, but I haven't done that kind of thing before, so I can't really offer any advice.

Jeffrey Kane Johnson gravatar image Jeffrey Kane Johnson  ( 2013-02-28 07:08:14 -0600 )edit

Question Tools



Asked: 2013-02-24 22:02:46 -0600

Seen: 2,589 times

Last updated: Mar 17 '13