|
|
@ -23,6 +23,7 @@ int main(int argc, char *argv[]) { |
|
|
|
cmd_parser.addHelpOption(); |
|
|
|
cmd_parser.addHelpOption(); |
|
|
|
cmd_parser.addPositionalArgument("route", "the drive to replay. find your drives at connect.comma.ai"); |
|
|
|
cmd_parser.addPositionalArgument("route", "the drive to replay. find your drives at connect.comma.ai"); |
|
|
|
cmd_parser.addOption({"demo", "use a demo route instead of providing your own"}); |
|
|
|
cmd_parser.addOption({"demo", "use a demo route instead of providing your own"}); |
|
|
|
|
|
|
|
cmd_parser.addOption({"auto", "auto load a route from the most suitable source"}); |
|
|
|
cmd_parser.addOption({"qcam", "load qcamera"}); |
|
|
|
cmd_parser.addOption({"qcam", "load qcamera"}); |
|
|
|
cmd_parser.addOption({"ecam", "load wide road camera"}); |
|
|
|
cmd_parser.addOption({"ecam", "load wide road camera"}); |
|
|
|
cmd_parser.addOption({"dcam", "load driver camera"}); |
|
|
|
cmd_parser.addOption({"dcam", "load driver camera"}); |
|
|
@ -69,7 +70,8 @@ int main(int argc, char *argv[]) { |
|
|
|
} |
|
|
|
} |
|
|
|
if (!route.isEmpty()) { |
|
|
|
if (!route.isEmpty()) { |
|
|
|
auto replay_stream = std::make_unique<ReplayStream>(&app); |
|
|
|
auto replay_stream = std::make_unique<ReplayStream>(&app); |
|
|
|
if (!replay_stream->loadRoute(route, cmd_parser.value("data_dir"), replay_flags)) { |
|
|
|
bool auto_source = cmd_parser.isSet("auto"); |
|
|
|
|
|
|
|
if (!replay_stream->loadRoute(route, cmd_parser.value("data_dir"), replay_flags, auto_source)) { |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
stream = replay_stream.release(); |
|
|
|
stream = replay_stream.release(); |
|
|
|