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

kiro/pinching-end-effector Private

[참조 MVP] 적심 엔드이펙터 제어 — 생장점 접근·파지·절단 순서를 안전 상태와 함께 실행하는 참조 MVP입니다.

https://git.agrithing.ai/kiro/pinching-end-effector.git
4 commits
2 items · feat/concrete-mvp-v2
·/ asw_component/component.py
python · 808 B · d0b7225 Download
from __future__ import annotationsdef execute(payload: dict) -> dict:    reasons = []    force = float(payload.get("forceLimitN", 0))    if payload.get("operation") != "pinching": reasons.append("UNSUPPORTED_OPERATION")    if payload.get("safetyState") != "READY": reasons.append("SAFETY_NOT_READY")    if not 1 <= force <= 18: reasons.append("FORCE_LIMIT_OUT_OF_RANGE")    accepted = not reasons    sequence = ["APPROACH", "GRIP", "CUT", "RETRACT"] if accepted else []    return {"component": "kiro/pinching-end-effector", "accepted": accepted,            "status": "SEQUENCE_READY" if accepted else "BLOCKED", "target": "mcu",            "targetId": str(payload.get("targetId", "unknown")), "sequence": sequence,            "interlocks": reasons, "estimatedCycleMs": 2800 if accepted else 0}