# RAI: ROS 2 detection and segmentation services

Launch detection and segmentation service nodes used by RAI robot agents.

ID: `rai-src-rai-extensions-rai-perception-rai-perception-scripts-run-pe-06864147bf08`

Record version: `source-fcd33f6953f5128086ce6275d0c8ee8103076e727f3f35edad34e68a59bf834d`

Hub commit: `ab214094ec555451d7f9892e295dff22ed3c451c`

## Access

Fetch the pinned repository, verify this source checksum, and use upstream installation and invocation. This record does not install or execute code.

Optional inert file retrieval: `python /PATH_TO_SKILL/scripts/rsh.py fetch-source rai-src-rai-extensions-rai-perception-rai-perception-scripts-run-pe-06864147bf08 --expected-source-revision b018729833742c6f71e1e9f332ee2b435676fb4f --expected-source-sha256 fcd33f6953f5128086ce6275d0c8ee8103076e727f3f35edad34e68a59bf834d --project ./experiment --json`. This verifies one file, preserves provenance and never installs or runs it. See [source-file retrieval](https://hub.superfastrobotics.com/source-files.md).

Hub preparation adapter: **false**. Runtime verification: **not_run**.

Upstream setup: https://github.com/RobotecAI/rai/blob/b018729833742c6f71e1e9f332ee2b435676fb4f/docs/setup/install.md

## Source and license

- Repository: https://github.com/RobotecAI/rai
- Pinned source: https://github.com/RobotecAI/rai/blob/b018729833742c6f71e1e9f332ee2b435676fb4f/src/rai_extensions/rai_perception/rai_perception/scripts/run_perception_services.py
- Revision: `b018729833742c6f71e1e9f332ee2b435676fb4f`
- Path: `src/rai_extensions/rai_perception/rai_perception/scripts/run_perception_services.py`
- Source SHA256: `fcd33f6953f5128086ce6275d0c8ee8103076e727f3f35edad34e68a59bf834d`
- Source bytes: 2717
- Original authors: Robotec.AI (per-file copyright notice)
- License: [Apache-2.0](https://github.com/RobotecAI/rai/blob/b018729833742c6f71e1e9f332ee2b435676fb4f/LICENSE)
- License scope: Selected first-party source and per-file notices; excludes models, dependencies, datasets, simulator assets and external service terms.

License SHA256: `c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4`

## Artifact

```json
{
  "kind": "workflow",
  "format": "python",
  "workflow_role": "perception-inference"
}
```

## Requirements

```json
{
  "python": "Root/core/whoami/perception/semap/s2s use >=3.10,<3.13; standalone finetune uses >=3.10,<3.12. Match sourced ROS distribution Python.",
  "packages": [
    "Pinned RAI checkout",
    "Matching ROS 2 and rai_interfaces",
    "Per-workflow packages, local model or hosted-provider dependencies from pinned setup"
  ],
  "display": "Official setup documents ROS 2 Humble/Jazzy, rai_interfaces and feature-specific environment. Nothing installed or runtime verified.",
  "execution_domain": "computation-or-hardware",
  "source_imports": [
    "os",
    "rai.agents",
    "rai.communication.ros2",
    "rai_perception.services",
    "rclpy",
    "threading"
  ],
  "notes": "Upstream per-workflow profile declarations only; provider availability, dependency resolution and runtime/robot compatibility are unverified.",
  "declared_requirements": {
    "perception": {
      "gpu": "README declares an NVIDIA CUDA GPU for optimal performance. No memory capacity or runtime result is established.",
      "external_models": "GroundingDINO and Grounded-SAM-2 dependencies/checkpoints. Services download missing weights on first use to their configured cache; none were obtained.",
      "api": "The standalone perception service wrapper does not require a hosted LLM API; integrated agent demos also need an LLM.",
      "evidence_paths": [
        "src/rai_extensions/rai_perception/README.md",
        "src/rai_extensions/rai_perception/pyproject.toml",
        "src/rai_extensions/rai_perception/rai_perception/services/base_vision_service.py",
        "src/rai_extensions/rai_perception/rai_perception/services/weights.py"
      ]
    }
  }
}
```

## Invocation

```json
{
  "entrypoint": "python -m rai_perception.scripts.run_perception_services",
  "notes": "Source/setup invocation shape only; not executed or runtime verified. Source references only; no Hub adapter, compatibility promise, provider access grant or runtime result. Perception README says Python 3.8+, while its pinned package declaration is >=3.10,<3.13. Package declaration is retained; no dependency environment was resolved."
}
```

## Compatibility

```json
[]
```

Missing environment fields remain unknown. Source discovery labels do not establish robot compatibility.

## Evidence

Level: **source_reviewed**. Runtime verification: **not_run**.

Verified exact source, applicable license and author/setup document bytes at a full Git commit; parsed the Python AST and reviewed this guarded operational entrypoint and its explicit license notices. No upstream code, installation, robot command, dataset, mesh or checkpoint was executed or loaded.

Source review and contributor reports do not establish task completion. Preserve upstream attribution and licenses.
