PlotJuggler icon indicating copy to clipboard operation
PlotJuggler copied to clipboard

Cannot open .BIN file because of toLower()

Open Georacer opened this issue 1 year ago • 3 comments

Problem description

Would it be possible to remove the use of toLower here? https://github.com/facontidavide/PlotJuggler/blob/main/plotjuggler_app/mainwindow.cpp#L1460

It prevents our plugin from readings logs ending with .BIN. Instead, they need to be renamed to end with .bin.

Answer these questions (or I will ignore your issue)

  1. Describe your platform / Operative System and the version of PlotJuggler you are using. Ubuntu 22.04; PlotJuggler 3.9.1
  2. Compile and try the latest version in the main branch and check if the problem persists. Didn't do it, but I checked main and the line of code is still there.
  3. Check if the problem can be reproduced using the dummy data created by the command line argument "-t" or one of the files in the folder "datasamples". This check is not applicable to our custom .BIN file.
  4. If it can't be reproduced with the dummy data, please share the CSV file or the rosbag that can be used to reproduce the problem. Any Ardupilot dataflash log will do, but you'll need the plugin to open them. If you still need to try it, let me know.

Georacer avatar May 23 '24 21:05 Georacer

When we had a similar plugin problem, we just added the lower case extension name to the plugin's list of supported extensions. See the csv loader for an example: https://github.com/facontidavide/PlotJuggler/blob/2c51aa689a69c7f1a2d715fd62b9179850fc23ff/plotjuggler_plugins/DataLoadCSV/dataload_csv.cpp#L96

zdavkeos avatar Jun 30 '24 20:06 zdavkeos

Hello @zdavkeos,

Unfortunately, this is not working for the reasons I explained above. I tried it, for good measure, though.

As an example, a file called test_file.CSV cannot be opened by PlotJuggler, for the same reasons.

Georacer avatar Jul 01 '24 11:07 Georacer

THIS PR: https://github.com/facontidavide/PlotJuggler/pull/1003

muramura avatar Sep 11 '24 12:09 muramura