Skip to main content

physicalai-runtime-adding-a-robot-integration

Adds or modifies robot hardware integrations under physicalai.robot. Use when implementing the Robot protocol, SO101 or Trossen WidowX drivers, robot connect helpers, verify.py checks, optional extras so101 or trossen, or tests in tests/unit/robot.

소스 정보

저장소
open-edge-platform/skills
최근 소스 활동
2026년 7월 24일 04:26
감지된 SKILL.md 언어
영어
스타
5
포크
5

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
physicalai-runtime-adding-a-robot-integration
description
Adds or modifies robot hardware integrations under physicalai.robot. Use when implementing the Robot protocol, SO101 or Trossen WidowX drivers, robot connect helpers, verify.py checks, optional extras so101 or trossen, or tests in tests/unit/robot.
license
Apache-2.0
# Adding a Robot Integration Robots satisfy the structural `Robot` protocol in `src/physicalai/robot/interface.py` — no base class inheritance required. References: `src/physicalai/robot/so101/`, `src/physicalai/robot/trossen/` (WidowX). Connection helpers: `src/physicalai/robot/connect.py`; validation: `src/physicalai/robot/verify.py`. ## Workflow 1. **Read `references/robot-protocol.md`** and an existing integration (SO-101 for serial servos, WidowX for arms). - Done when: required methods and observation shape are listed. 2. **Implement connect lifecycle**: idempotent `connect()`, `disconnect()`, `is_connected()`. 3. **Observations**: return a type exposing `joint_positions`, `timestamp` (`time.monotonic()`), optional `sensor_data` / `images`; implement `state` property when inference expects more than positions. 4. **Actions**: `send_action(action, *, goal_time=...)` with `action` shape matching training data conventions; document joint order via `joint_names`. 5. **Optional extra** in `pyproject.toml` (`physicalai[so101]`, `physicalai[trossen]`); lazy-import vendor SDKs. 6. **Export** public class from `physicalai.robot` when user-facing. 7. **Tests** under `tests/unit/robot/` with mocked hardware. - Done when: `uv run pytest tests/unit/robot -k <name>` passes. 8. **Verification CLI/docs** — wire `verify.py` patterns if the robot supports automated checks. ## Required checks - `isinstance(robot, Robot)` at runtime (`@runtime_checkable` protocol). - No action sent when disconnected. - Joint count and `joint_names` stay stable across connect/disconnect. - Security: validate user-supplied port/path strings; no shell invocation with unsanitized device paths. ## References - `references/robot-protocol.md` - `docs/explanation/robots.md`
GitHub에서 보기