Skip to content

Commit 1ed40c3

Browse files
committed
update 320 aikit_UI
1 parent c26bcf5 commit 1ed40c3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

main.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,17 +1675,19 @@ def moved(self, x, y, yaw_degrees):
16751675
# send coordinates to move mycobot
16761676
if func == 'QR code recognition' or func == '二维码识别':
16771677
self.move_coords = [
1678-
[32, -228.3, 201.6, -168.07, -7.17, -92.56], # D Sorting area
1678+
# [32, -228.3, 201.6, -168.07, -7.17, -92.56], # D Sorting area
1679+
[26.8, -230.8, 229.3, -174.56, -8.33, -92.74], # D Sorting area
16791680
[266.5, -219.7, 209.3, -170, -3.64, -94.62], # C Sorting area
16801681
[253.8, 236.8, 224.6, -170, 6.87, -77.91], # A Sorting area
1681-
[35.9, 235.4, 211.8, -169.33, -9.27, 88.3], # B Sorting area
1682+
# [35.9, 235.4, 211.8, -169.33, -9.27, 88.3], # B Sorting area
1683+
[50.3, 237.1, 231.3, 178.18, -0.95, 87.9], # B Sorting area
16821684
]
16831685
self.myCobot.send_coords(
16841686
[self.home_coords[0] + x, self.home_coords[1] + y, 240, 178.99, -3.78, -62.9], 100,
16851687
1)
16861688
time.sleep(2)
16871689
self.myCobot.send_coords(
1688-
[self.home_coords[0] + x, self.home_coords[1] + y, self.camera_y, 178.99, -3.78, -62.9],
1690+
[self.home_coords[0] + x, self.home_coords[1] + y, self.camera_z, 178.99, -3.78, -62.9],
16891691
100, 1)
16901692
time.sleep(2.5)
16911693
elif func == 'Intelligent gripping' or func == '智能夹取':
@@ -1757,10 +1759,12 @@ def moved(self, x, y, yaw_degrees):
17571759
self.gripper_off()
17581760
elif func == 'shape recognition' or func == 'Keypoints' or func == '形状识别' or func == '特征点识别' or func == 'yolov5':
17591761
self.move_coords = [
1760-
[32, -228.3, 201.6, -168.07, -7.17, -92.56], # D Sorting area
1762+
# [32, -228.3, 201.6, -168.07, -7.17, -92.56], # D Sorting area
1763+
[26.8, -230.8, 229.3, -174.56, -8.33, -92.74], # D Sorting area
17611764
[266.5, -219.7, 209.3, -170, -3.64, -94.62], # C Sorting area
17621765
[253.8, 236.8, 224.6, -170, 6.87, -77.91], # A Sorting area
1763-
[35.9, 235.4, 211.8, -169.33, -9.27, 88.3], # B Sorting area
1766+
# [35.9, 235.4, 211.8, -169.33, -9.27, 88.3], # B Sorting area
1767+
[50.3, 237.1, 231.3, 178.18, -0.95, 87.9], # B Sorting area
17641768
]
17651769
self.myCobot.send_coords([x, y, 230, -173.84, -0.14, -74.37], 100, 1)
17661770
time.sleep(2.5)

0 commit comments

Comments
 (0)