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

How do I change the topic that rqt_robot_monitor subscribes to?

asked 2021-04-02 18:19:39 -0500

BesterJester gravatar image

I'm trying to use the rqt_robot_monitor package. The tutorial page claims that:

"The robot_monitor package provides the Robot Monitor GUI that displays the aggregated diagnostics from a robot. The Robot Monitor subscribes to the /diagnostics_agg topic, which is published by the diagnostic_aggregator."

However, as shown by my rqt_plot (picture attached), it appears that rqt_robot_monitor (which I've labled /RuntimeMonitor) does not subscribe to /diagnostics_agg (which is the data aggregated/filtered by my diagnostic_aggregator). It instead subscribes directly to the raw diagnostics data (/diagnostics).

All I need to do is get the rqt_robot_monitor to subscribe to /diagnostics_agg, but I can't figure out where in the code to do that.image descriptionimage description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-04-02 18:27:10 -0500

BesterJester gravatar image

updated 2021-04-02 18:28:05 -0500

I found a work-around. By entering in the below command when I start rqt_runtime_monitor, I remap what topic the node looks for. It is expecting diagnostics but I remap it to expect diagnostics_agg

rosrun rqt_runtime_monitor rqt_runtime_monitor __name:=RuntimeMonitor diagnostics:=diagnostics_agg

I'd still prefer a permanent solution though, as opposed to entering this work-around in every time I start rqt_runtime_monitor

edit flag offensive delete link more

Comments

You can remap the topics in your launch file

mohamed ahmed gravatar image mohamed ahmed  ( 2021-04-04 05:56:31 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-04-02 18:19:39 -0500

Seen: 280 times

Last updated: Apr 02 '21