From e2f298abf824bc0af3c323640ef5e22cfd644866 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 21 May 2024 22:24:28 +0200 Subject: [PATCH] host command line argument --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b80937a..ae2be60 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,7 +24,9 @@ int main(int argc, char* argv[]) { int port = clParser.getOption("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