아, 정말 죄송하고 당황스럽습니다. 오류 메시지에 %% 제거라는 텍스트가 명시적으로 보이는 것으로 보아, 이전 오류에서 제가 주석으로 처리하라고 안내드렸던 %% <<<== 부분이 실제로는 %% 제거라는 텍스트로 사용자 분의 코드 편집기에 남아있는 것 같습니다.
%%는 Mermaid에서 주석의 시작을 나타내지만, 그 뒤에 오는 제거라는 텍스트가 해당 위치에서는 Mermaid 문법상 유효하지 않기 때문에 "인식할 수 없는 텍스트" 오류, 즉 어휘 오류(Lexical error)가 계속 발생하는 것입니다.
해결 방법:
사용하고 계신 코드 편집기에서 정확히 38번째 줄을 찾으셔서, UC5 또는 그 근처 라인 끝에 붙어 있는 %% 제거 라는 글자들을 완전히 삭제해 주셔야 합니다.
예시 (실제 코드에서 찾아야 할 부분):
...
UC3 --> UC5
UC4 --> UC5 %% 제거 <-- 이 부분을 찾아서 " %% 제거" 를 지워야 합니다.
UC5 --> UC6
...
또는
...
UC4 --> UC5
UC5 --> UC6 %% 제거 <-- 이 부분을 찾아서 " %% 제거" 를 지워야 합니다.
UC6 --> UC7
...
최종 확인 코드:
아래는 %% 제거 라는 텍스트가 없는 깨끗한 상태의 코드입니다. 이 코드를 다시 한번 정확하게 전체 복사하여, 기존 내용을 완전히 덮어쓰는 방식으로 붙여넣어 보시기 바랍니다. 복사 과정에서 다른 어떤 텍스트도 추가되지 않도록 주의해 주세요.
graph TD
%% 스타일 정의
classDef actor fill:#f9f,stroke:#333,stroke-width:2px
classDef usecase fill:#bbf,stroke:#333,stroke-width:2px
classDef noteStyle fill:#ff9,stroke:#666,stroke-width:1px
%% 액터 (Actors)
actor1["제조 공정<br/>(Manufacturing Process)"]
actor2["인간 작업자<br/>(Human Worker)"]
actor3["매니퓰레이터-AMR<br/>(Manipulator-AMR)"]
actor4["리프트 AMR-1000<br/>(Lift AMR-1000)"]
actor5[AMR-60]
actor6["AMR-100 x4"]
%% 시스템 범위 (System Boundary)
subgraph "분산로봇이송시스템 (Distributed Robot Transport System)"
UC1["이송 작업 요청 수신/인지 <br/> Receive/Recognize Transport Task Request"]
UC2["이송 작업 처리 및 배정 <br/> Process and Assign Transport Task"]
UC3["운송 로봇 선택 및 클레임 <br/> Select and Claim Transport Robot"]
UC4["협업 운송 로봇 구성 <br/> Configure Collaborative Transport Robots"]
UC5["컷팅 스테이션으로 이동 <br/> Move to Cutting Station"]
UC6["철판 적재 협업 <br/> Collaborate on Loading Steel Plate"]
UC7["용접 스테이션으로 이동 <br/> Move to Welding Station"]
UC8["철판 하역 및 작업 완료 <br/> Unload Steel Plate and Complete Task"]
UC9["긴급 이송 작업 처리 <br/> Handle Urgent Transport Task"]
UC10["로봇 상태 및 위치 공유 <br/> Share Robot Status and Position"]
UC11["자율 경로 계획 및 주행 <br/> Autonomous Path Planning and Driving"]
UC12["장애물 감지 및 회피 <br/> Obstacle Detection and Avoidance"]
UC13["추종 기능 활성화/비활성화 <br/> Activate/Deactivate Following Function"]
UC14["추종 주행 수행 <br/> Perform Following Driving"]
UC15["매니퓰레이터 적재 수행 <br/> Perform Manipulator Loading"]
UC16["리프트 기능 사용 <br/> Use Lift Function"]
UC17["작업 완료 보고 <br/> Report Task Completion"]
%% Use Case Flow
UC1 --> UC2
UC2 --> UC3
UC2 --> UC4
UC3 --> UC5
UC4 --> UC5
UC5 --> UC6
UC6 --> UC7
UC7 --> UC8
UC8 --> UC17
end
%% 액터 연결 (Actor Connections)
actor1 --> UC1
actor2 --> UC9
actor3 --> UC1
actor3 --> UC2
actor3 --> UC6
actor3 --> UC9
actor3 --> UC15
actor3 --> UC10
actor3 --> UC11
actor3 --> UC12
actor4 --> UC2
actor4 --> UC3
actor4 --> UC5
actor4 --> UC7
actor4 --> UC8
actor4 --> UC10
actor4 --> UC11
actor4 --> UC12
actor4 --> UC16
actor4 --> UC17
actor5 --> UC2
actor5 --> UC3
actor5 --> UC4
actor5 --> UC5
actor5 --> UC7
actor5 --> UC8
actor5 --> UC10
actor5 --> UC11
actor5 --> UC12
actor5 --> UC13
actor5 --> UC17
actor6 --> UC2
actor6 --> UC3
actor6 --> UC4
actor6 --> UC5
actor6 --> UC7
actor6 --> UC8
actor6 --> UC10
actor6 --> UC14
%% include, extend 관계 (Include, Extend Relationships)
UC2 -.->|include| UC3
UC2 -.->|include| UC4
UC2 -.->|include| UC10
UC2 -.->|include| UC17
UC5 -.->|include| UC11
UC5 -.->|include| UC12
UC5 -.->|include| UC10
UC5 -.->|include| UC14
UC6 -.->|include| UC15
UC6 -.->|include| UC10
UC6 -.->|include| UC16
UC7 -.->|include| UC11
UC7 -.->|include| UC12
UC7 -.->|include| UC10
UC7 -.->|include| UC14
UC8 -.->|include| UC10
UC8 -.->|include| UC16
UC8 -.->|include| UC17
UC4 -.->|include| UC13
UC9 -.->|"extend<br/>(긴급 요청 시 - Urgent Request)"| UC2
UC9 -.->|"extend<br/>(매니퓰레이터 직접 이송 - Direct Manipulator Transport)"| UC5
UC9 -.->|"extend<br/>(매니퓰레이터 직접 이송 - Direct Manipulator Transport)"| UC7
%% 노트 (Notes - represented as nodes)
note1["각 로봇이 자율적으로 수행 <br/> Performed autonomously by each robot"]
note2["로컬 네트워크 통신 기반 <br/> Based on local network communication"]
note3["로봇 간 상태 공유 및 조정 <br/> Status sharing and coordination between robots"]
note4["AMR-60 또는 매니퓰레이터-AMR이 활성화 <br/> Activated by AMR-60 or Manipulator-AMR"]
note5["AMR-60 또는 매니퓰레이터-AMR을 따라감 <br/> Follows AMR-60 or Manipulator-AMR"]
note6["매니퓰레이터-AMR이 주도 <br/> Led by Manipulator-AMR"]
note7["리프트 AMR-1000만 수행 <br/> Performed only by Lift AMR-1000"]
note8["작업 완료 정보 공유 <br/> Sharing task completion information"]
%% 노트 연결 (Note Connections)
UC11 -.-> note1
UC12 -.-> note1
UC15 -.-> note1
UC16 -.-> note1
UC14 -.-> note1
UC13 -.-> note1
UC10 -.-> note2
UC3 -.-> note3
UC4 -.-> note3
UC6 -.-> note3
UC10 -.-> note3
UC13 -.-> note4
UC14 -.-> note5
UC15 -.-> note6
UC16 -.-> note7
UC17 -.-> note8
%% 스타일 적용 (Apply Styles)
class actor1,actor2,actor3,actor4,actor5,actor6 actor;
class UC1,UC2,UC3,UC4,UC5,UC6,UC7,UC8,UC9,UC10,UC11,UC12,UC13,UC14,UC15,UC16,UC17 usecase;
class note1,note2,note3,note4,note5,note6,note7,note8 noteStyle;