From 55e14c7589eca6b35b8c25dad8a49e42f4a1b5cc Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 30 Apr 2024 16:10:27 +0200 Subject: [PATCH] remove log --- arucoDetector.cpp | 8 -------- tcp/MyClient.cpp | 2 ++ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/arucoDetector.cpp b/arucoDetector.cpp index e1c3b8c..321fb16 100644 --- a/arucoDetector.cpp +++ b/arucoDetector.cpp @@ -62,8 +62,6 @@ int main(int argc, char *argv[]) client.sendMessage("aruco;strat;get robot_pose;0"); - auto lastArucoFind = std::chrono::high_resolution_clock::now(); - while (true) { auto r = detector.detectArucoTags({whiteFlower, purpleFlower, solarPanel}); @@ -101,12 +99,6 @@ int main(int argc, char *argv[]) { break; } - - auto now = std::chrono::high_resolution_clock::now(); - std::cout << "Time since last find: " << std::chrono::duration_cast(now - lastArucoFind).count() << "ms" << std::endl; - - lastArucoFind = now; - std::cout << std::endl; } diff --git a/tcp/MyClient.cpp b/tcp/MyClient.cpp index db402d5..0627d7e 100644 --- a/tcp/MyClient.cpp +++ b/tcp/MyClient.cpp @@ -38,6 +38,8 @@ void MyClient::handleMessage(const std::string& message) std::cout << "Sent to client " << res << std::endl; this->sendMessage(res.c_str()); + + this->arucoTags.clear(); } else if (messageSplited[2] == "ping") { this->sendMessage("aruco;ihm;pong;1");