asw_component/__init__.py +3−0 View file@@ -0,0 +1,3 @@
1 +
from .component import execute 2 +
3 +
__all__ = ["execute"][참조 MVP] 온실 LPS 측위·주행 — 온실 로컬 측위값과 작업열 경로로 이동 명령을 생성하는 참조 MVP입니다.
https://git.agrithing.ai/daedongrobotics/greenhouse-lps-navigation.git 2749f61 075262f 71c8d29 1a609d0 71c8d298e862db7df5b9798d9938a9e7e72dfa4b 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": "daedongrobotics/greenhouse-lps-navigation", "accepted": True, "status": "READY", "target": "lpu", "input_fields": sorted(payload.keys())}examples/input.json +11−0 View file{ "pose": { "x": 3.2, "y": 1.1 }, "goal": { "x": 8, "y": 1.1 }, "localizationQuality": 0.92}pyproject.toml +5−0 View file[project]name = "greenhouse-lps-navigation"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))