buffer in/out 시퀀스 작성중

This commit is contained in:
backuppc
2025-12-11 08:22:52 +09:00
parent 9a0a389e07
commit 6024f372d3
23 changed files with 671 additions and 806 deletions

View File

@@ -43,6 +43,8 @@ namespace AGVNavigationCore.Models
/// </summary>
public event EventHandler<string> ErrorOccurred;
#endregion
#region Fields
@@ -83,6 +85,8 @@ namespace AGVNavigationCore.Models
#region Properties
public bool Turn180 { get; set; } = false;
/// <summary>
/// 대상 이동시 모터 방향
/// </summary>
@@ -647,6 +651,19 @@ namespace AGVNavigationCore.Models
#endregion
/// <summary>
/// 노드 ID를 RFID 값으로 변환 (NodeResolver 사용)
/// </summary>
public string GetRfidByNodeId(List<MapNode> _mapNodes, string nodeId)
{
var node = _mapNodes?.FirstOrDefault(n => n.NodeId == nodeId);
return node?.HasRfid() == true ? node.RfidId : nodeId;
}
#region Private Methods
/// <summary>
@@ -799,6 +816,9 @@ namespace AGVNavigationCore.Models
BatteryLevel = Math.Max(0, BatteryLevel);
}
public MapNode StartNode { get; set; } = null;
public MapNode TargetNode { get; set; } = null;
private void ProcessNextNode()
{
if (_remainingNodes == null || _currentNodeIndex >= _remainingNodes.Count - 1)