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

rqt_plot waiting for message

asked 2013-09-22 23:24:43 -0500

Miguel Riem de Oliveira gravatar image

updated 2013-10-08 17:16:50 -0500

130s gravatar image

Hello everyone

I am using rqt_plot in order to draw a couple variables (all floats) that come in several messages.

Problem is, some of the messages only come after some time.

So imagine I have

msg1/data, msg2/data and msg3/data

At start, only msg1 and msg2 are being published. After some time msg3 will also be published.

I wanted rqt_plot to draw all 3 values, but if I configure it to all msgs

rosrun rqt_plot rqt_plot /msg1/data /msg2/data /msg3/data

It will hang waiting for the first msg3 to be published:

WARNING: topic [/msg3/data] does not appear to be published yet. Waiting...

Is there a way to avoid this?

To make rqt_plot non blocking in waiting for messages?

Thanks

Miguel

edit retag flag offensive close merge delete

Comments

Do you think this happens with specific type of topics or happens with any kind of topics?

130s gravatar image 130s  ( 2013-09-23 01:26:03 -0500 )edit

Hi Saito It happens with all kinds of topics, I think. Regards Miguel

Miguel Riem de Oliveira gravatar image Miguel Riem de Oliveira  ( 2013-10-01 22:22:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-08 04:41:23 -0500

Chief_534 gravatar image

I came across this same issue. rqt_plot saves whatever you last had displayed in a config file for "convenience" the next time that it is used. You can fix this one of two ways easily:

(1) Clear all topics prior to exiting

(2) launch rqt_plot using: rosrun rqt_plot rqt_plot -e (the -e option stands for 'empty')

Hope that helps. I found this very annoying myself.

  • Chief
edit flag offensive delete link more

Comments

Thanks Chief, I'll give it a try

Miguel Riem de Oliveira gravatar image Miguel Riem de Oliveira  ( 2013-10-09 02:05:22 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-09-22 23:24:43 -0500

Seen: 217 times

Last updated: Oct 08 '13