mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-14 09:00:53 +00:00
compat.
This commit is contained in:
parent
18e2a72f2b
commit
c00f9b4c4a
1 changed files with 2 additions and 1 deletions
|
|
@ -58,9 +58,10 @@ class ImageConverter:
|
||||||
if len(corners) > 0:
|
if len(corners) > 0:
|
||||||
if ids is not None:
|
if ids is not None:
|
||||||
# print('corners:', corners, 'ids:', ids)
|
# print('corners:', corners, 'ids:', ids)
|
||||||
rvec, tvec, _ = cv.aruco.estimatePoseSingleMarkers(
|
ret = cv.aruco.estimatePoseSingleMarkers(
|
||||||
corners, 0.05, self.camera_matrix, self.dist_coeffs
|
corners, 0.05, self.camera_matrix, self.dist_coeffs
|
||||||
)
|
)
|
||||||
|
(rvec, tvec) = (ret[0], ret[1])
|
||||||
(rvec - tvec).any()
|
(rvec - tvec).any()
|
||||||
|
|
||||||
print("rvec:", rvec, "tvec:", tvec)
|
print("rvec:", rvec, "tvec:", tvec)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue