From 89421ccf341bfcdbfd3daade7ccade60e05277e6 Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Thu, 9 Jan 2025 13:31:41 +0100 Subject: [PATCH] replaced connect --- src/C++/Driver/src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index 5871450..d3e7236 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -327,9 +327,8 @@ void sendKobukiData(TKobukiData &data) { while (true) { if(!robot.isConnected()){ std::cout << "Kobuki is not connected anymore" << std::endl; - robot.connect("/dev/ttyUSB0"); - while(!robot.isConnected()){ robot.startCommunication("/dev/ttyUSB0", true, nullptr); + while(!robot.isConnected()){ std::this_thread::sleep_for(std::chrono::seconds(1)); } }