Publishing text via RViz plugin
I want to display text in my RViz plugin. I am not publishing, so I need to use a QTSlot for that.How do I go about that?
I want the display either over my robot inside RVIZ I was not able to find relevant example source code. It would be great if you could help me on how to go about it.
NOTE: I should not be using a publisher( Cannot have a publisher_object.publish() ) in my code. So I don't think visualization markers could work
Thanks!
Can you provide some more details? Do you want to show text in the big display area, over the robot? Or in a Qt widget in a side panel?
I have added the details in the question now. Thank you very much!
I am sorry for not being clear. It is my RViz plugin's requirement that my plugin can not have a publisher. If I have a rosbag, I should be able to open up RViz and use my plugin without running nodes or launching files. So I can not have a publisher in my plugin.
RViz is the subscriber for interactive markers. You wouldn't need any additional nodes.