✨
This commit is contained in:
@ -39,7 +39,7 @@ def find_aruco(image):
|
|||||||
|
|
||||||
def find_arucos(arlo):
|
def find_arucos(arlo):
|
||||||
aruco_dict = {}
|
aruco_dict = {}
|
||||||
theta = np.deg2rad(30)
|
theta = np.deg2rad(-20)
|
||||||
rot = [[[cos(theta), -sin(theta)], [sin(theta), cos(theta)]]]
|
rot = [[[cos(theta), -sin(theta)], [sin(theta), cos(theta)]]]
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
@ -67,12 +67,7 @@ def find_arucos(arlo):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
arlo = Robot()
|
arlo = Robot()
|
||||||
arucos = find_arucos(arlo)
|
aruco_positions = find_arucos(arlo)
|
||||||
|
|
||||||
print(arucos)
|
|
||||||
aruco_positions = np.array([cv2.aruco.estimatePoseSingleMarkers(
|
|
||||||
np.array([aruco]), 14.5, CAMERA_MATRIX, DIST_COEF
|
|
||||||
)[1][0][0] for aruco in arucos])
|
|
||||||
|
|
||||||
print(aruco_positions)
|
print(aruco_positions)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user