From ba1a530dd5aac57df01d171004a317d48d9859eb Mon Sep 17 00:00:00 2001 From: ChiKyun Kim Date: Mon, 15 Sep 2025 16:45:45 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20RFID=20=EA=B0=92=20=EA=B8=B0=EB=B0=98?= =?UTF-8?q?=20=EC=BD=98=EC=86=94=20=EB=A1=9C=EA=B7=B8=20=ED=91=9C=EC=8B=9C?= =?UTF-8?q?=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - DirectionChangePlanner에 GetDisplayName 헬퍼 메서드 추가 - RFID 값이 있으면 표시, 없으면 (NodeID) 형태로 표시 - 갈림길 정보 출력 시 사용자 친화적 형식 적용 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../PathFinding/DirectionChangePlanner.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Cs_HMI/AGVNavigationCore/PathFinding/DirectionChangePlanner.cs b/Cs_HMI/AGVNavigationCore/PathFinding/DirectionChangePlanner.cs index 6a96cab..9d4478e 100644 --- a/Cs_HMI/AGVNavigationCore/PathFinding/DirectionChangePlanner.cs +++ b/Cs_HMI/AGVNavigationCore/PathFinding/DirectionChangePlanner.cs @@ -245,7 +245,7 @@ namespace AGVNavigationCore.PathFinding // 실제 방향 전환 노드 찾기 (우회 노드) string actualDirectionChangeNode = FindActualDirectionChangeNode(changePath, junctionNodeId); - string description = $"갈림길 {junctionNodeId}를 통해 {actualDirectionChangeNode}에서 방향 전환: {currentDirection} → {requiredDirection}"; + string description = $"갈림길 {GetDisplayName(junctionNodeId)}를 통해 {GetDisplayName(actualDirectionChangeNode)}에서 방향 전환: {currentDirection} → {requiredDirection}"; return DirectionChangePlan.CreateSuccess(changePath, actualDirectionChangeNode, description); } @@ -514,5 +514,20 @@ namespace AGVNavigationCore.PathFinding var junctions = _junctionAnalyzer.GetJunctionSummary(); return string.Join("\n", junctions); } + + /// + /// 노드의 표시명 가져오기 (RFID 우선, 없으면 (NodeID) 형태) + /// + /// 노드 ID + /// 표시할 이름 + private string GetDisplayName(string nodeId) + { + var node = _mapNodes.FirstOrDefault(n => n.NodeId == nodeId); + if (node != null && !string.IsNullOrEmpty(node.RfidId)) + { + return node.RfidId; + } + return $"({nodeId})"; + } } } \ No newline at end of file