A-SW Hub / Repositories
Local Gitea · READ ONLY
← 저장소 Repositories
REPOSITORY

cwsfa/following-amr-validation Private

[참조 MVP] 추종형 이송로봇 통합검증 — 추종·정지·레일 진입·적재 이송 시나리오를 확인하는 참조 검증 자산입니다.

https://git.agrithing.ai/cwsfa/following-amr-validation.git
4 commits
COMMIT DETAIL

feat: add executable institution reference MVP

A-SW Reference Factory <[email protected]> · 2026. 8. 3. 오후 2:18:44
2898f911b80f98d5f0020b25f73173f2474e33b2
5 changed files +42 −0 parent 28e1cdb
added asw_component/__init__.py +3−0 View file
@@ -0,0 +1,3 @@
1 + from .component import execute
2 +
3 + __all__ = ["execute"]
added asw_component/component.py +9−0 View file
@@ -0,0 +1,9 @@
1 + from __future__ import annotations
2 +
3 +
4 + def execute(payload: dict) -> dict:
5 + scenarios = payload.get("scenarios", [])
6 + results = [{"id": item["id"], "passed": bool(item.get("passed"))} for item in scenarios]
7 + passed = sum(item["passed"] for item in results)
8 + accepted = bool(results) and passed == len(results)
9 + return {"component": "cwsfa/following-amr-validation", "accepted": accepted, "status": "READY" if accepted else "BLOCKED", "verdict": "PASS" if accepted else "FAIL", "passed": passed, "total": len(results), "results": results}
added examples/input.json +16−0 View file
@@ -0,0 +1,16 @@
1 + {
2 + "scenarios": [
3 + {
4 + "id": "FOLLOW-01",
5 + "passed": true
6 + },
7 + {
8 + "id": "STOP-01",
9 + "passed": true
10 + },
11 + {
12 + "id": "RAIL-01",
13 + "passed": true
14 + }
15 + ]
16 + }
added pyproject.toml +5−0 View file
@@ -0,0 +1,5 @@
1 + [project]
2 + name = "following-amr-validation"
3 + version = "0.1.0"
4 + description = "추종·정지·레일 진입·적재 이송 시나리오를 확인하는 참조 검증 자산입니다."
5 + requires-python = ">=3.11"
added run.py +9−0 View file
@@ -0,0 +1,9 @@
1 + from __future__ import annotations
2 + import json
3 + import sys
4 + from asw_component import execute
5 +
6 + path = sys.argv[1] if len(sys.argv) > 1 else None
7 + with open(path, encoding="utf-8") if path else sys.stdin as source:
8 + payload = json.load(source)
9 + print(json.dumps(execute(payload), ensure_ascii=False, indent=2))