Robotics StackExchange | Archived questions

how to clear the lines in rqt_plot

how to clear the lines in rqt_plot? The clear button removes the lines, but also the topics. I'd like to be able to clear the lines, but keep my topic list the same.

Scenario: I am using rqt_bag to play back some data from a bag file. I'm plotting one data from one topic, then I realize I need to compare it to another data from another topic, so I add that second one, and restart the playback.

I'm tempted to write a script to extract fields from topics and dump them to a csv file then use another tool (Libreoffice Calc or gnuplot to plot it...)

Asked by brice rebsamen on 2014-02-13 16:03:30 UTC

Comments

Answers

I'm not sure that rqt_plot has a button for that. You may find better options if you switch the plotting frontend.

In the past, I've used the -p option to rostopic echo to dump data in a CSV format. This works well for fixed-size messages, and not as well for messages that contain arrays and other large data structures. You could probably do something where you use rosbag play in one terminal and rostopic echo -p in another.

Asked by ahendrix on 2014-02-13 20:31:24 UTC

Comments