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

agerobotics/high-lift-mobile-platform Private

[참조 MVP] 고소작업 이동 플랫폼 — 주행·시저리프트·충전 상태를 단일 플랫폼 상태로 조정하는 참조 MVP입니다.

https://git.agrithing.ai/agerobotics/high-lift-mobile-platform.git
4 commits
COMMIT DETAIL

feat: 고소작업 이동 플랫폼 구체 MVP 구현

기관 승인 및 자동 품질검사를 통과한 구체 MVP 0.2.0 병합 Co-authored-by: age-dev <[email protected]>

age-dev <[email protected]> · 2026. 8. 3. 오후 3:12:51
00cd734f6b8f811b4b327910524ea5177e3633ae
7 changed files +58 −7 parent 5b12bc4
modified README.md +7−1 View file
@@ -11,6 +11,12 @@
11 11
12 12 주행·시저리프트·충전 상태를 단일 플랫폼 상태로 조정하는 참조 MVP입니다.
13 13
14 + ## MVP 동작 범위
15 +
16 + - 배터리·높이 안전범위 검사
17 + - 주행 중 리프트 인터록
18 + - 높이 오차 기반 승강 명령
19 +
14 20 ## 실행
15 21
16 22 ```bash
@@ -18,4 +24,4 @@ python run.py examples/input.json
18 24 python -m unittest discover -s tests -v
19 25 ```
20 26
21 실제 기관 구현은 `contracts/component.interface.json`의 저장소 식별자와 제품 기준선 연결 규칙을 유지하면서 교체할 수 있습니다.
27 + 정상 입력은 `examples/input.json`, 차단·안전 경로는 `examples/failure-input.json`으로 재현합니다. 실제 기관 구현은 `contracts/component.interface.json`의 저장소 식별자와 제품 기준선 연결 규칙을 유지하면서 교체할 수 있습니다.
modified asw_component/component.py +13−3 View file
@@ -2,6 +2,16 @@ from __future__ import annotations
2 2
3 3
4 4 def execute(payload: dict) -> dict:
5 if not isinstance(payload, dict) or not payload:
6 raise ValueError("a non-empty object is required")
7 return {"component": "agerobotics/high-lift-mobile-platform", "accepted": True, "status": "READY", "target": "mcu", "input_fields": sorted(payload.keys())}
5 + current, requested = float(payload.get("liftHeightM", 0)), float(payload.get("requestedHeightM", 0))
6 + battery = float(payload.get("batteryPercent", 0))
7 + delta = requested - current
8 + reasons = []
9 + if battery < 20: reasons.append("LOW_BATTERY")
10 + if not 0.4 <= requested <= 2.4: reasons.append("HEIGHT_OUT_OF_RANGE")
11 + if abs(delta) > 0.02 and payload.get("driveState") != "HOLD": reasons.append("DRIVE_NOT_HELD")
12 + accepted = not reasons
13 + command = "BLOCKED" if not accepted else ("HOLD" if abs(delta) <= 0.02 else ("LIFT" if delta > 0 else "LOWER"))
14 + return {"component": "agerobotics/high-lift-mobile-platform", "accepted": accepted,
15 + "status": "PLATFORM_READY" if accepted else "INTERLOCK", "target": "mcu",
16 + "command": command, "deltaM": round(delta, 3), "blockingReasons": reasons,
17 + "batteryPercent": battery}
modified contracts/component.interface.json +18−1 View file
@@ -5,7 +5,12 @@
5 5 "required": [
6 6 "component",
7 7 "accepted",
8 "status"
8 + "status",
9 + "target",
10 + "command",
11 + "deltaM",
12 + "blockingReasons",
13 + "batteryPercent"
9 14 ],
10 15 "properties": {
11 16 "component": {
@@ -19,6 +24,18 @@
19 24 },
20 25 "target": {
21 26 "const": "mcu"
27 + },
28 + "command": {
29 + "type": "string"
30 + },
31 + "deltaM": {
32 + "type": "number"
33 + },
34 + "blockingReasons": {
35 + "type": "array"
36 + },
37 + "batteryPercent": {
38 + "type": "number"
22 39 }
23 40 }
24 41 }
added examples/failure-input.json +6−0 View file
@@ -0,0 +1,6 @@
1 + {
2 + "driveState": "MOVING",
3 + "liftHeightM": 1,
4 + "requestedHeightM": 1.8,
5 + "batteryPercent": 76
6 + }
modified pyproject.toml +1−1 View file
@@ -1,5 +1,5 @@
1 1 [project]
2 2 name = "high-lift-mobile-platform"
3 version = "0.1.0"
3 + version = "0.2.0"
4 4 description = "주행·시저리프트·충전 상태를 단일 플랫폼 상태로 조정하는 참조 MVP입니다."
5 5 requires-python = ">=3.11"
modified release/manifest.json +1−1 View file
@@ -4,7 +4,7 @@
4 4 "displayName": "고소작업 이동 플랫폼",
5 5 "owner": "에이지로보틱스",
6 6 "implementationAuthor": "주식회사 비아 (연동 검증용 참조 구현)",
7 "version": "0.1.0-mvp",
7 + "version": "0.2.0-mvp",
8 8 "domain": "Mobile Platform",
9 9 "status": "REFERENCE_MVP",
10 10 "compatibility": {
modified tests/test_component.py +12−0 View file
@@ -12,6 +12,18 @@ class ComponentTest(unittest.TestCase):
12 12 result = execute(payload)
13 13 self.assertTrue(result["accepted"])
14 14 self.assertEqual(result["component"], "agerobotics/high-lift-mobile-platform")
15 + self.assertEqual(result["target"], "mcu")
16 + self.assertEqual(result["command"], "LIFT")
17 + self.assertEqual(result["deltaM"], 0.2)
18 + self.assertEqual(result["blockingReasons"], [])
19 +
20 + def test_safety_or_failure_path(self):
21 + payload = json.loads((ROOT / "examples/failure-input.json").read_text(encoding="utf-8"))
22 + result = execute(payload)
23 + self.assertEqual(result["component"], "agerobotics/high-lift-mobile-platform")
24 + self.assertFalse(result["accepted"])
25 + self.assertEqual(result["status"], "INTERLOCK")
26 + self.assertIn("DRIVE_NOT_HELD", result["blockingReasons"])
15 27
16 28 if __name__ == "__main__":
17 29 unittest.main()