This repository contains PlotJuggler plugins for using data from the Goby3 project that was recorded using goby_logger
and then converted (as necessary) by the goby_log_tool
.
To build, PlotJuggler must be installed in your system.
For instance, in Ubuntu, you should perform a full compilation and installation (e.g., to /opt/plotjuggler
):
sudo apt -y install qtbase5-dev libqt5svg5-dev libqt5websockets5-dev libqt5opengl5-dev \
libqt5x11extras5-dev libprotoc-dev libfmt-dev liblua5.3-dev
git clone --recurse-submodules https://github.com/facontidavide/PlotJuggler.git
cd PlotJuggler
mkdir build; cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/plotjuggler
make -j`nproc`
sudo make install
Then, build and install the plugin:
git clone https://github.com/GobySoft/plotjuggler-goby-plugins.git
cd plotjuggler-goby-plugins
mkdir build; cd build
cmake .. -Dplotjuggler_DIR=/opt/plotjuggler/lib/cmake/plotjuggler \
-DCMAKE_INSTALL_PREFIX=/opt/plotjuggler
make -j`nproc`
sudo make install
The best way to do that is to install/copy the plugin in the same folder
where the executable plotjuggler
is located (e.g., /opt/plotjuggler/bin
), which will be done if the steps in Build, above, are followed.
Alternatively, there is a number of additional folders which will be used to load plugins. Check App->Preferences... in PlotJuggler to learn more.
The current plugin uses JSON files generated by goby_log_tool
, e.g.,
goby_log_tool --format=JSON --input_file=some.goby --output_file=some.json
Run /opt/plotjuggler/bin/plotjuggler
or add /opt/plotjuggler/bin
to your $PATH
and run plotjuggler
.
Then use the Load data from file
button under File->Data to load the JSON file, e.g., some.json