ANYbotics / rqt_multiplot_plugin

An rqt plugin for visualizing numeric values in multiple 2D plots.
GNU Lesser General Public License v3.0
125 stars 41 forks source link

How to plot from bag? #12

Open mikepurvis opened 8 years ago

mikepurvis commented 8 years ago

My plots are working great live, but I can't seem to plot from a bag.

There's some code here that looks like it accepts a multiplot-bag argument, but it's not clear how that argument is supplied. Looks like #10 addresses breaking it out to the Python wrapper, and in the meantime it seems something like this should work, but it's not doing right thing for me:

rqt --standalone rqt_multiplot --args --multiplot-bag path/to/my.bag

The only other place readBag is called looks like it's from a UI interaction, but there is commented out as well: https://github.com/ethz-asl/rqt_multiplot_plugin/blob/85f86a083eb47d5d8baefba168290b09fff333cf/rqt_multiplot/src/rqt_multiplot/MultiplotWidget.cpp#L109-L111

Is there something silly I'm missing here?

samuelba commented 8 years ago

Currently, it's not possible to load a bag from the command line. But you can load a bag file from GUI. See the first image in the README.

I will investigate the command line option mentioned in #10.

mikepurvis commented 8 years ago

Okay, I had tried that, but it didn't work for me either and I assumed it was due to the commented out section.

That might be due to us being pinned to an older version of rqt due to rqt_rviz, though. Will close until I've had a chance to confirm that there's a problem here when on all-public packages.

samuelba commented 8 years ago

This video shows what should happen (master branch): https://www.youtube.com/watch?v=rtqPlc_Ze5o Important is, that you have already configured your curves. Otherwise nothing happens.

The commented out section has nothing to do with the bag import from the GUI.

skohlbr commented 8 years ago

Just ran across the same issue. It's probably a good idea to document the need for prior curve configuration on the Readme (or make it possible to configure them when the bag is loaded ;) ).

jcarius commented 6 years ago

@samuelba is there still a plan to implement bag loading from the command line?

samuelba commented 6 years ago

@jcarius unfortunately I have no time to work on this plugin at the moment, but I'm happy to review a pull request ;)