Ask Your Question
0

swapping between two topics in rqt_image_view

asked 2018-08-31 08:35:39 -0500

VAMSI GONTU gravatar image

Hello all, I am a newbie to ROS. I am trying to visualize image feed from two cameras in RQT using image_view. But according to the conventional use, one needs two image_view windows. But considering the space constraint of the screen, i want to display both images in a single window and want to visualize one camera at a time. i.e., when i click a button i want to see image from camera1 and when i click another button i want to see image from camera2. could someone suggest a plain sailing method to do this ...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-08-31 11:51:24 -0500

Dirk Thomas gravatar image

You could open two image view plugins and then drag and drop one onto the other which will show them in a tabbed view. Then you can switch between them by clicking on the corresponding tab.

edit flag offensive delete link more

Comments

Thanks for the response, actually what I wanted is, Can we swap the topics in rqt when a external button in joystick is pressed or in Arduino a button is pressed i.e., through Serial node by sending a char or String?

VAMSI GONTU gravatar imageVAMSI GONTU ( 2018-08-31 12:19:59 -0500 )edit

Currently that is not supported. You might want to look into adding this feature to the plugin if that would be useful for you (and contribute the change through a pull request).

Dirk Thomas gravatar imageDirk Thomas ( 2018-08-31 12:54:20 -0500 )edit

You could write a small node that subscribes to both topics and republishes one of them depending on your button state.

NEngelhard gravatar imageNEngelhard ( 2018-09-01 09:13:13 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-08-31 08:35:39 -0500

Seen: 82 times

Last updated: Aug 31 '18