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

Subscribe and publish to topic

$
0
0
HI I just read the explanation about the topics. Looking at the codes in c++ I manage to understand how to subscribe to a topic and how to publish into a topic. My question is, how can a node A publish into a topic "/tutle1/cmd_vel" and another node B subscribe to the same topic knowing that in A it gives as topic name "turtle1/cmd_vel" and in B just "cmd/vel"?

Viewing all articles
Browse latest Browse all 99

Trending Articles



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