plotjuggler: support segment names (#23263)

* plotjuggler: support segment names

* update docs

* generic parser

* convert segment number to int when parsing

* add SegmentName

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 71132edf17a78b629e3fa244caa21bebdc488929
This commit is contained in:
Greg Hogan
2022-01-04 06:55:46 -08:00
committed by GitHub
parent 0c24902e05
commit bb3402b54d
3 changed files with 112 additions and 64 deletions
+9 -5
View File
@@ -13,14 +13,14 @@ Once you've cloned and are in openpilot, this command will download PlotJuggler
```
$ ./juggle.py -h
usage: juggle.py [-h] [--demo] [--qlog] [--can] [--stream] [--layout [LAYOUT]] [--install]
[route_name] [segment_number] [segment_count]
[route_or_segment_name] [segment_count]
A helper to run PlotJuggler on openpilot routes
positional arguments:
route_name The route name to plot (cabana share URL accepted) (default: None)
segment_number The index of the segment to plot (default: None)
segment_count The number of segments to plot (default: 1)
route_or_segment_name
The route or segment name to plot (cabana share URL accepted) (default: None)
segment_count The number of segments to plot (default: None)
optional arguments:
-h, --help show this help message and exit
@@ -32,10 +32,14 @@ optional arguments:
--install Install or update PlotJuggler + plugins (default: False)
```
Example:
Examples using route name:
`./juggle.py "4cf7a6ad03080c90|2021-09-29--13-46-36"`
Examples using segment name:
`./juggle.py "4cf7a6ad03080c90|2021-09-29--13-46-36--1"`
## Streaming
Explore live data from your car! Follow these steps to stream from your comma device to your laptop: