mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-01-19 00:47:36 +01:00
change aruco finder
This commit is contained in:
@@ -92,3 +92,7 @@ std::ostream& operator<<(std::ostream& os, const ArucoTag& tag) {
|
||||
os << "ArucoTag{id=" << tag.id() << ", name=" << tag.name() << ", pos=[" << tag.pos()[0] << ", " << tag.pos()[1] << "], rot=[" << tag.rot()[0] << ", " << tag.rot()[1] << ", " << tag.rot()[2] << "]}";
|
||||
return os;
|
||||
}
|
||||
|
||||
double distanceToTag(const ArucoTag& tag) {
|
||||
return std::sqrt(pow(tag.pos()[0], 2) + pow(tag.pos()[1], 2));
|
||||
}
|
||||
Reference in New Issue
Block a user