mirror of
https://github.com/modelec/detection_pot.git
synced 2026-01-19 17:17:20 +01:00
send warning message if no tags
This commit is contained in:
@@ -18,9 +18,14 @@ void MyClient::handleMessage(const std::string& message)
|
||||
{
|
||||
std::string res;
|
||||
|
||||
for (auto& [tag, pos] : arucoTags)
|
||||
if (arucoTags.empty())
|
||||
{
|
||||
res += std::to_string(tag.id) + " ";
|
||||
res = "No Aruco Tags Found";
|
||||
} else {
|
||||
for (auto& [tag, pos] : arucoTags)
|
||||
{
|
||||
res += std::to_string(tag.id) + " ";
|
||||
}
|
||||
}
|
||||
|
||||
this->sendMessage(res.c_str());
|
||||
|
||||
Reference in New Issue
Block a user