remapping in rqt_plugins
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:
<launch>
<node name="my_plugin" pkg="my_plugin" type="my_plugin" >
<remap from="/input_topic" to="/camera/image_raw"/>
</node>
</launch>
2) Remapping for rqt_gui and load my_plugin into rqt_gui
<launch>
<node name="rqt_gui" pkg="rqt_gui" type="rqt_gui" >
<remap from="/input_topic" to="/camera/image_raw"/>
</node>
</launch>
Edit 28.08.2014: Anyone?
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?
Okay, thank you! I'll have a look at that...