Skip to content

Commit 940d3d9

Browse files
committed
修复运动间隔时间
1 parent c5056b2 commit 940d3d9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

main.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ def moved(self, x, y, yaw_degrees):
16761676
# send coordinates to move mycobot
16771677
if func == 'QR code recognition' or func == '二维码识别':
16781678
self.move_coords_to_angles = [
1679-
[-60.9, 1.75, -1098.45, 24.69, 90.17, -58.62], # D Sorting area
1679+
[-60.9, 1.75, -98.45, 24.69, 90.17, -58.62], # D Sorting area
16801680
[-24.69, -54.58, -36.65, 9.31, 90.35, -20.74], # C Sorting area
16811681
[58.178, -55.45, -28.74, 3.51, 87.8, 46.14], # A Sorting area
16821682
[99.58, -5.0, -92.9, 6.32, 87.89, -77.78], # B Sorting area
@@ -1688,7 +1688,7 @@ def moved(self, x, y, yaw_degrees):
16881688
self.myCobot.send_coords(
16891689
[self.home_coords[0] + x, self.home_coords[1] + y, self.camera_z, 178.99, -3.78, -62.9],
16901690
100, 1)
1691-
time.sleep(2.5)
1691+
time.sleep(6)
16921692
elif func == 'Intelligent gripping' or func == '智能夹取':
16931693
print('rotation angle:', yaw_degrees)
16941694
if yaw_degrees > 169:
@@ -1734,7 +1734,7 @@ def moved(self, x, y, yaw_degrees):
17341734
[self.home_coords[0] + x, self.home_coords[1] + y, self.camera_z, tmp_coords[3],
17351735
tmp_coords[4],
17361736
tmp_coords[5]], 100, 1)
1737-
time.sleep(3)
1737+
time.sleep(6)
17381738
# close gripper
17391739
self.gripper_off()
17401740

@@ -1753,20 +1753,20 @@ def moved(self, x, y, yaw_degrees):
17531753
self.myCobot.send_coords([x, y, 250, -174.51, 0.86, -85.93], 100, 1)
17541754
time.sleep(2.5)
17551755
self.myCobot.send_coords([x, y, self.camera_z, -174.51, 0.86, -85.93], 100, 1)
1756-
time.sleep(3)
1756+
time.sleep(6)
17571757
# close gripper
17581758
self.gripper_off()
17591759
elif func == 'shape recognition' or func == 'Keypoints' or func == '形状识别' or func == '特征点识别' or func == 'yolov5':
17601760
self.move_coords_to_angles = [
1761-
[-60.9, 1.75, -1098.45, 24.69, 90.17, -58.62], # D Sorting area
1761+
[-60.9, 1.75, -98.45, 24.69, 90.17, -58.62], # D Sorting area
17621762
[-24.69, -54.58, -36.65, 9.31, 90.35, -20.74], # C Sorting area
17631763
[58.178, -55.45, -28.74, 3.51, 87.8, 46.14], # A Sorting area
17641764
[99.58, -5.0, -92.9, 6.32, 87.89, -77.78], # B Sorting area
17651765
]
17661766
self.myCobot.send_coords([x, y, 230, -173.84, -0.14, -74.37], 100, 1)
17671767
time.sleep(2.5)
17681768
self.myCobot.send_coords([x, y, self.camera_z, -173.84, -0.14, -74.37], 100, 1) #
1769-
time.sleep(3)
1769+
time.sleep(6)
17701770
else:
17711771
self.move_coords_to_angles = [
17721772
[-61.61, 3.6, -100.63, 12.91, 95.44, -59.06], # D Sorting area
@@ -1778,7 +1778,7 @@ def moved(self, x, y, yaw_degrees):
17781778
time.sleep(3)
17791779
self.myCobot.send_coords([x, y, self.camera_z, -173.84, -0.14, -74.37], 100,
17801780
1) # origin z : 100
1781-
time.sleep(4.5)
1781+
time.sleep(6.5)
17821782

17831783
# open pump
17841784
if func != 'object recognition' or func != '物体识别' or func != 'Color recognition grip' or func != '颜色识别 夹爪' or func != 'Intelligent gripping' or func != '智能夹取':

0 commit comments

Comments
 (0)