This commit is contained in:
backuppc
2025-12-22 16:02:57 +09:00
parent 5a4c73e4df
commit 3408e3fc30
8 changed files with 123 additions and 8 deletions

View File

@@ -117,6 +117,11 @@ namespace Project
PUB.sm.SetNewRunStep(ERunStep.READY);
return false;
}
else
{
PUB._mapCanvas.CurrentPath = PathResult.result;
PUB._virtualAGV.SetPath(PathResult.result);
}
PUB.log.AddI($"경로생성 {PUB._virtualAGV.StartNode.RfidId} -> {PUB._virtualAGV.TargetNode.RfidId}");
}
@@ -133,8 +138,16 @@ namespace Project
return false;
}
//predict 를 이용하여 다음 이동을 모두 확인한다.
var nextAction = PUB._virtualAGV.Predict();
if(nextAction.Reason == AGVNavigationCore.Models.eAGVCommandReason.PathOut)
{
//경로이탈
PUB._virtualAGV.CurrentPath.DetailedPath.Clear();
return false;
}
var message = $"[다음 행동 예측]\n\n" +
$"모터: {nextAction.Motor}\n" +