host command line argument

This commit is contained in:
ackimixs
2024-05-21 22:24:28 +02:00
parent d0fcc760f4
commit e2f298abf8

View File

@@ -24,7 +24,9 @@ int main(int argc, char* argv[]) {
int port = clParser.getOption<int>("port", 8080);
Localization localizer(-1, -1, -1, "127.0.0.1", port);
auto host = clParser.getOption("host", "127.0.0.1");
Localization localizer(-1, -1, -1, host, port);
localizer.start();
localizer.sendMessage("strat", "ready", "1");
//LIDAR connection