From ce1f0f9daa6345f96cbeea09cfe1563d61e1b80d Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 21 Mar 2024 19:58:41 +0100 Subject: [PATCH] set the no found aruco to 404 --- tcp/MyClient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tcp/MyClient.cpp b/tcp/MyClient.cpp index 890d53b..18536c0 100644 --- a/tcp/MyClient.cpp +++ b/tcp/MyClient.cpp @@ -20,10 +20,11 @@ void MyClient::handleMessage(const std::string& message) if (arucoTags.empty()) { - res = "No Aruco Tags Found"; + res += "404"; } else { for (auto& [tag, pos] : arucoTags) { + res += std::to_string(tag.id) + " "; res += std::to_string(pos.first.at(0, 0)) + " "; res += std::to_string(pos.first.at(1, 0)) + " ";