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

remapping in rqt_plugins

asked 2014-08-19 03:17:58 -0500

Wolf gravatar image

updated 2014-08-28 04:02:04 -0500

Is that possible? If I launch an rqt node with <remap/> tag that does not appear to work... Is it supposed to?

Update with respect to @Dirk Thomas Comment:

Basically, I wanted an image_viewer with a fixed topic (for later adding some fancy overlays and so on...). I took the rqt_image_view (indeed C++!) as start point removed the topic spinner and related functions and subscribed the image_transport from a fixed topic. Works perfectly if the "hard-coded" topic exists. However, I did not manage to remap the topic in a launch file.

So far i tried 2 things (Both work with "hard-coded" topic but not with remap):

1) Remapping in launch file using the phyton script for stand alone launching my_plugin:

#!/usr/bin/env python

import sys

from rqt_gui.main import Main

main = Main()
sys.exit(main.main(sys.argv, standalone='my_plugin'))

Launch file:


  <node name="my_plugin" pkg="my_plugin" type="my_plugin" >  
    <remap from="/input_topic" to="/camera/image_raw"/>


2) Remapping for rqt_gui and load my_plugin into rqt_gui


  <node name="rqt_gui" pkg="rqt_gui" type="rqt_gui" >  
    <remap from="/input_topic" to="/camera/image_raw"/>


Edit 28.08.2014: Anyone?

edit retag flag offensive close merge delete



I should be possible but with the limitation that since all plugins share the same node there can only be a single global remapping. May be it does not work correctly for C++ plugins? What exactly are you trying to do?

Dirk Thomas gravatar image Dirk Thomas  ( 2014-08-19 11:24:21 -0500 )edit

Okay, thank you! I'll have a look at that...

Wolf gravatar image Wolf  ( 2014-08-29 00:55:19 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-08-28 17:49:27 -0500

Dirk Thomas gravatar image

As mentioned before It might simply be that this feature is not implemented for the C++ plugins. You could fill a feature request at (or might even consider providing a patch to implement it).

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-08-19 03:17:58 -0500

Seen: 354 times

Last updated: Aug 28 '14