Ask Your Question
0

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. http://engineering.sdsu.edu/~johnston/me295/modules/labview/images/labview_0076.jpg.

Anyone Know how this can be done?

Thanks in advance!

edit retag flag offensive close merge delete

Comments

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
0

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

lucasw gravatar image

https://github.com/lucasw/rqt_topic_d... 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 228 times

Last updated: Feb 03