|
|
|
@ -261,8 +261,11 @@ public abstract class PtrAgvItem extends ExecutorItem { |
|
|
|
oldDirection, direction); |
|
|
|
} |
|
|
|
|
|
|
|
boolean needCompute = false; |
|
|
|
// 从 runningDeviceTaskList 里面,找到完成到什么阶段
|
|
|
|
// 比如 (1,2) -> (2,2) -> (3,2) , 如果 updatePosition=3,2 ,那么前2个任务都要完成
|
|
|
|
if (this.runningDeviceTaskList != null && !this.runningDeviceTaskList.isEmpty() && |
|
|
|
this.planTaskSequence != null && !this.planTaskSequence.isEmpty()) { |
|
|
|
int finishTargetIndex = -1; |
|
|
|
for (int i = 0; i < runningDeviceTaskList.size(); i++) { |
|
|
|
PtrAgvDeviceTask task = runningDeviceTaskList.get(i); |
|
|
|
@ -272,8 +275,6 @@ public abstract class PtrAgvItem extends ExecutorItem { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
boolean needCompute = false; |
|
|
|
|
|
|
|
if (finishTargetIndex > 0) { |
|
|
|
needCompute = true; |
|
|
|
// 标记前面的任务都完成了
|
|
|
|
@ -297,6 +298,7 @@ public abstract class PtrAgvItem extends ExecutorItem { |
|
|
|
planTaskSequence = null; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (needCompute) { |
|
|
|
LockSupport.unpark(connectorThread); |
|
|
|
|