2021-02-11 22:40:12 -08:00
# PlotJuggler
2021-02-27 21:11:36 -08:00
We've extended [PlotJuggler ](https://github.com/facontidavide/PlotJuggler ) to plot all of your openpilot logs. Check out our plugin: https://github.com/commaai/PlotJuggler.
2021-02-11 22:40:12 -08:00
## Installation
2021-02-27 21:11:36 -08:00
Once you've cloned openpilot, install our plugin with this command:
2021-02-11 22:40:12 -08:00
2021-02-27 21:11:36 -08:00
`cd tools/plotjuggler && ./install.sh`
2021-02-11 22:40:12 -08:00
2021-03-04 15:01:40 -08:00
Usage requires an installation of PlotJuggler. On systems with snap (e.g. Ubuntu), you can install PlotJuggler with this command:
`sudo snap install plotjuggler`
2021-02-11 22:40:12 -08:00
## Usage
2021-02-17 20:07:37 -08:00
```
batman@z840 -openpilot:~/openpilot/tools/plotjuggler$ ./juggle.py -h
2021-02-26 19:11:59 -08:00
usage: juggle.py [-h] [--qlog] [--layout [LAYOUT]] [route_name] [segment_number]
2021-02-17 20:07:37 -08:00
PlotJuggler plugin for reading rlogs
positional arguments:
2021-02-26 19:11:59 -08:00
route_name The name of the route that will be plotted. (default: None)
segment_number The index of the segment that will be plotted (default: None)
2021-02-17 20:07:37 -08:00
optional arguments:
2021-02-26 19:11:59 -08:00
-h, --help show this help message and exit
--qlog Use qlogs (default: False)
--layout [LAYOUT] Run PlotJuggler with a pre-defined layout (default: None)
2021-02-17 20:07:37 -08:00
```
2021-02-11 22:40:12 -08:00
Example:
2021-02-17 20:07:37 -08:00
`./juggle.py "0982d79ebb0de295|2021-01-17--17-13-08"`
2021-02-26 19:11:59 -08:00
## Demo:
2021-02-27 21:11:36 -08:00
For a quick demo, go through the installation step and run this command:
2021-02-26 19:11:59 -08:00
`./juggle.py "https://commadataci.blob.core.windows.net/openpilotci/d83f36766f8012a5/2020-02-05--18-42-21/0/rlog.bz2" --layout=demo_layout.xml`
2021-02-27 21:11:36 -08:00
