asw_component/__init__.py +3−0 View file@@ -0,0 +1,3 @@
1 +
from .component import execute 2 +
3 +
__all__ = ["execute"][참조 MVP] 적과 엔드이펙터 제어 — 과실 후보에 대한 접근·분리·회수 시퀀스를 표현하는 참조 MVP입니다.
https://git.agrithing.ai/nas/thinning-end-effector.git 9073cca 61be75a bf80881 71123d9 bf80881c1c174b7828ed9daee23ea9b2cc884e91 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": "nas/thinning-end-effector", "accepted": True, "status": "READY", "target": "mcu", "input_fields": sorted(payload.keys())}examples/input.json +6−0 View file{ "operation": "thinning", "targetId": "fruit-17", "safetyState": "READY", "forceLimitN": 22}pyproject.toml +5−0 View file[project]name = "thinning-end-effector"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))