|
|
@ -42,8 +42,8 @@ def start_juggler(fn=None, dbc=None, layout=None): |
|
|
|
extra_args = " ".join(extra_args) |
|
|
|
extra_args = " ".join(extra_args) |
|
|
|
subprocess.call(f'{pj} --plugin_folders {os.path.join(juggle_dir, "bin")} {extra_args}', shell=True, env=env, cwd=juggle_dir) |
|
|
|
subprocess.call(f'{pj} --plugin_folders {os.path.join(juggle_dir, "bin")} {extra_args}', shell=True, env=env, cwd=juggle_dir) |
|
|
|
|
|
|
|
|
|
|
|
def juggle_route(route_name, segment_number, qlog, can, stream, layout): |
|
|
|
def juggle_route(route_name, segment_number, qlog, can, layout): |
|
|
|
if route_name is None and stream: |
|
|
|
if route_name is None: |
|
|
|
print("Select \"Cereal Subscriber\" in plugin list and click Start!") |
|
|
|
print("Select \"Cereal Subscriber\" in plugin list and click Start!") |
|
|
|
print("Make sure to set environment variable `ZMQ` if needed\n") |
|
|
|
print("Make sure to set environment variable `ZMQ` if needed\n") |
|
|
|
start_juggler() |
|
|
|
start_juggler() |
|
|
@ -98,7 +98,6 @@ def get_arg_parser(): |
|
|
|
|
|
|
|
|
|
|
|
parser.add_argument("--qlog", action="store_true", help="Use qlogs") |
|
|
|
parser.add_argument("--qlog", action="store_true", help="Use qlogs") |
|
|
|
parser.add_argument("--can", action="store_true", help="Parse CAN data") |
|
|
|
parser.add_argument("--can", action="store_true", help="Parse CAN data") |
|
|
|
parser.add_argument("--stream", action="store_true", help="Start PlotJuggler without a route to stream data using Cereal") |
|
|
|
|
|
|
|
parser.add_argument("--layout", nargs='?', help="Run PlotJuggler with a pre-defined layout") |
|
|
|
parser.add_argument("--layout", nargs='?', help="Run PlotJuggler with a pre-defined layout") |
|
|
|
parser.add_argument("route_name", nargs='?', help="The name of the route that will be plotted.") |
|
|
|
parser.add_argument("route_name", nargs='?', help="The name of the route that will be plotted.") |
|
|
|
parser.add_argument("segment_number", type=int, nargs='?', help="The index of the segment that will be plotted") |
|
|
|
parser.add_argument("segment_number", type=int, nargs='?', help="The index of the segment that will be plotted") |
|
|
@ -110,4 +109,4 @@ if __name__ == "__main__": |
|
|
|
arg_parser.print_help() |
|
|
|
arg_parser.print_help() |
|
|
|
sys.exit() |
|
|
|
sys.exit() |
|
|
|
args = arg_parser.parse_args(sys.argv[1:]) |
|
|
|
args = arg_parser.parse_args(sys.argv[1:]) |
|
|
|
juggle_route(args.route_name, args.segment_number, args.qlog, args.can, args.stream, args.layout) |
|
|
|
juggle_route(args.route_name, args.segment_number, args.qlog, args.can, args.layout) |
|
|
|