Publishing text via RViz plugin

asked 2016-07-07 17:58:46 -0600

Joy16 gravatar image

updated 2016-07-11 19:11:51 -0600

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


edit retag flag offensive close merge delete


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?

jorge gravatar image jorge  ( 2016-07-08 02:22:08 -0600 )edit

I have added the details in the question now. Thank you very much!

Joy16 gravatar image Joy16  ( 2016-07-11 00:14:41 -0600 )edit

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.

Joy16 gravatar image Joy16  ( 2016-07-12 11:27:22 -0600 )edit

RViz is the subscriber for interactive markers. You wouldn't need any additional nodes.

gvdhoorn gravatar image gvdhoorn  ( 2016-07-13 00:49:27 -0600 )edit