asw_component/__init__.py +3−0 View file@@ -0,0 +1,3 @@
1 +
from .component import execute 2 +
3 +
__all__ = ["execute"][참조 MVP] 작업자 추종 이송 AMR — 작업자 목표와 적재·배터리 상태를 이송 플랫폼 명령으로 결합하는 참조 MVP입니다.
https://git.agrithing.ai/cwsfa/following-transport-amr.git a9ee8ba c42d1d9 716132f 330e8cc 716132ff060f42f389b33100ae96e318a57b0d70 asw_component/__init__.py +3−0 View filefrom .component import execute__all__ = ["execute"]asw_component/component.py +7−0 View filefrom __future__ import annotationsdef execute(payload: dict) -> dict: if not isinstance(payload, dict) or not payload: raise ValueError("a non-empty object is required") return {"component": "cwsfa/following-transport-amr", "accepted": True, "status": "READY", "target": "acu", "input_fields": sorted(payload.keys())}examples/input.json +6−0 View file{ "workerTrackId": "worker-04", "distanceM": 2.4, "payloadKg": 86, "batteryPercent": 68}pyproject.toml +5−0 View file[project]name = "following-transport-amr"version = "0.1.0"description = "작업자 목표와 적재·배터리 상태를 이송 플랫폼 명령으로 결합하는 참조 MVP입니다."requires-python = ">=3.11"run.py +9−0 View filefrom __future__ import annotationsimport jsonimport sysfrom asw_component import executepath = sys.argv[1] if len(sys.argv) > 1 else Nonewith open(path, encoding="utf-8") if path else sys.stdin as source: payload = json.load(source)print(json.dumps(execute(payload), ensure_ascii=False, indent=2))