From 19804cd326cac60c77faab016d50e6a35a0770c9 Mon Sep 17 00:00:00 2001
From: L <L@132>
Date: 星期四, 25 九月 2025 10:01:59 +0800
Subject: [PATCH] *
---
src/main/java/com/zy/core/MainProcess.java | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/main/java/com/zy/core/MainProcess.java b/src/main/java/com/zy/core/MainProcess.java
index 525972c..a6a86c4 100644
--- a/src/main/java/com/zy/core/MainProcess.java
+++ b/src/main/java/com/zy/core/MainProcess.java
@@ -24,7 +24,7 @@
private MainServiceImpl mainService;
// 鎵�灞炵嚎绋�
private Thread thread;
- private Thread thread2;
+ private Thread armThread;
// 棰戠巼
private int i = 0;
private int k = 0;
@@ -37,8 +37,8 @@
thread = new Thread(this::crnAndDevRun);
thread.start();
- thread2 = new Thread(this::roboticArmDispatch);
-// thread2.start();
+ armThread = new Thread(this::roboticArmDispatch);
+ armThread.start();
}
private void crnAndDevRun() {
while (!Thread.currentThread().isInterrupted()) {
@@ -150,12 +150,19 @@
try {
// 闂撮殧
- Thread.sleep(1000);
+ Thread.sleep(500);
// 绯荤粺杩愯鐘舵�佸垽鏂�
if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
continue;
}
+
+// //arm浠诲姟瀹屾垚
+// mainService.armMissionAccomplished();
+// mainService.armMissionAccomplishedScanToCheckIn();
+//
+// //arm浠诲姟涓嬪彂
+// mainService.armTaskAssignment();
} catch (Exception e) {
e.printStackTrace();
@@ -166,7 +173,7 @@
@PreDestroy
public void shutDown(){
if (thread != null) thread.interrupt();
- if (thread2 != null) thread2.interrupt();
+ if (armThread != null) armThread.interrupt();
}
}
--
Gitblit v1.9.1