Robotics StackExchange | Archived questions

Define topics for image_publisher

I would like to use the imagepublisher to debug and demonstrate my code. The problem is that everytime i run the imagepublisher, the topics are anonymous and different. Is there anyway i could set the topic to be a topic that i like?

Asked by oferbar on 2021-12-22 17:23:39 UTC

Comments

Yes, ROS can create predictable topic names. Please edit your description and show us: 1) the code you use to init the node (or node handle in c++), 2) the code you use to create the publisher object, 3) an example of an anonymous topic name.

You edit using the "edit" button at the end of the description.

Asked by Mike Scheutzow on 2021-12-23 10:47:30 UTC

Answers