Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 255

Remapping rqt published topics

$
0
0
I am developing an rqt GUI plugin to set some values in another node, but the rqt plugins seem to always place a namespace in front of my desired published topic name. For example, my rqt plugin is called "rqt_blueview," and I declare a published topic in the rqt plugin like this... this->max_range_pub_ = getNodeHandle().advertise("sonar_max_range", 1); However, the actual topic is published with the following topic name: /rqt_blueview/sonar_max_range I want to publish to `/sonar_max_range` I tried to remap the topic, but I can't seem to get it to work. I tried the following in a launch file: and I tried placing the remap tag inside the tags as well, but with no results. I think this has something to do with how the rqt plugin is loaded into the rqt higher-level Qt window. I was able to remap the subscribed topic `/sonar_max_range` to `/rqt_blueview/sonar_max_range` on the normal C++ ROS node subscribed side of the topic, but this naming convention doesn't seem natural to me. Is there a best practice for naming topics when using rqt plugins? I won't want a launch file remapping the rqt GUI plugins since the idea is to open rqt and then "add" the other rqt plugins to the main window. Thanks.

Viewing all articles
Browse latest Browse all 255

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>