ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Using rqt to visualize a number.

asked 2016-09-23 13:24:06 -0500

Hello all,

I'm in the process of building a custom rqt GUI perspective file to control/monitor a robot I'm working with. We are using it for us to visualize SMACH information as well as plot various things and stream camera information. One thing I would like to do is visualize a single number, not as a graph, but a static sub-window that just shows the number. Similar to an indicator in LabVIEW.

Anyone Know how this can be done?

Thanks in advance!

edit retag flag offensive close merge delete


Are you using the C++ API, or the Python API?

Also: have you seen bgromov/ros_qml?

gvdhoorn gravatar image gvdhoorn  ( 2016-09-24 03:22:04 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2022-02-03 20:44:15 -0500

lucasw gravatar image can show a single number from a std_msgs number message or a marti_common_msgs number message.

The user interface is extremely minimal, you have first export then edit the rqt .perspective file to enter the topic in:

    "plugin__rqt_topic_display__Number Display__1": {
      "keys": {},
      "groups": {
        "dock_widget__NumberDisplayUi": {
          "keys": {
            "dock_widget_title": {
            "topic": {
              "repr": "'/foo/my_number'",
              "type": "repr"
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-09-23 13:24:06 -0500

Seen: 423 times

Last updated: Feb 03 '22