swapping between two topics in rqt_image_view
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 ...
Asked by VAMSI GONTU on 2018-08-31 08:35:39 UTC
Answers
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.
Asked by Dirk Thomas on 2018-08-31 11:51:24 UTC
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?
Asked by VAMSI GONTU on 2018-08-31 12:19:59 UTC
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).
Asked by Dirk Thomas on 2018-08-31 12:54:20 UTC
You could write a small node that subscribes to both topics and republishes one of them depending on your button state.
Asked by NEngelhard on 2018-09-01 09:13:13 UTC
Comments