exclude bad plant

This commit is contained in:
ackimixs
2024-05-03 11:04:39 +02:00
parent ce21dcbfbf
commit 4e6fadc00a

View File

@@ -743,6 +743,12 @@ void TCPServer::handleArucoTag(ArucoTag &tag) {
return;
}
auto rotArray = tag.rot();
if (rotArray[2] > 0.3 && rotArray[2] < -0.3 && rotArray[0] > 3 && rotArray[0] < 2.5) {
return;
}
for (auto& t : arucoTags) {
if (tag.id() == t.id()) {
float tPosX = t.pos()[0];