From 2197ba443779749c487863139a1e2dd8a41f4a1b Mon Sep 17 00:00:00 2001 From: ackimixs Date: Wed, 10 Apr 2024 13:42:58 +0200 Subject: [PATCH] remove unused things --- aruco/ArucoDetector.cpp | 3 +-- tcp/MyClient.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/aruco/ArucoDetector.cpp b/aruco/ArucoDetector.cpp index bfc2ca8..61330a9 100644 --- a/aruco/ArucoDetector.cpp +++ b/aruco/ArucoDetector.cpp @@ -204,9 +204,8 @@ std::pair>>> Ar cv::Mat rotaEuler = (cv::Mat_(3, 1) << roll, pitch, yaw); // Apply the homogeneous transformation to tvec - cv::Mat translat = (cv::Mat_(4, 1) << tvec.at(2, 0), tvec.at(1, 0), (tvec.at(0, 0)), 1); - result.second.emplace_back(tag, std::make_pair(translat, rotaEuler)); + result.second.emplace_back(tag, std::make_pair(tvec, rotaEuler)); } } diff --git a/tcp/MyClient.cpp b/tcp/MyClient.cpp index c1b3b5a..a1fbc80 100644 --- a/tcp/MyClient.cpp +++ b/tcp/MyClient.cpp @@ -25,8 +25,8 @@ void MyClient::handleMessage(const std::string& message) { res += std::to_string(tag.id) + ","; res += tag.name + ","; - res += std::to_string(pos.first.at(0, 0)) + ","; res += std::to_string(pos.first.at(2, 0)) + ","; + res += std::to_string(pos.first.at(0, 0)) + ","; res += std::to_string(pos.second.at(0, 0)) + ","; res += std::to_string(pos.second.at(1, 0)) + ","; res += std::to_string(pos.second.at(2, 0)) + ",";