Robotics StackExchange | Archived questions

A ROS node subscriber to show the received message in GUI

Hey guys,

For a part of my project I should receive a message from a simple publisher which just publishes a text file and show it in a graphical interface (GUI) shape. Because I'm new in ROS I have no idea how to do this. If any one can help me I do really appreciate it.

Thanks Tags

Asked by Saeid on 2015-06-19 08:59:54 UTC

Comments

Answers

All messages have a operator<< , so you can just receive the message move that into a stringstream. With that string you can do whatever you'd usually do to display it in your GUI.

Asked by dornhege on 2015-06-19 09:09:18 UTC

Comments

Thanks man for your answer, Actually my main problem is how to show my message in a GUI, I don't know how to create a GUI.

Asked by Saeid on 2015-06-19 09:18:18 UTC