Skip to content

app: add a frame field to ServiceConfig - #957

Draft
Daniel Botros (danielbotros) wants to merge 1 commit into
mainfrom
rsdk-serviceconfig-frame
Draft

Daniel Botros (danielbotros) wants to merge 1 commit into
mainfrom
rsdk-serviceconfig-frame

Conversation

@danielbotros

Copy link
Copy Markdown
Member

Problem

A composite model can serve a component API (e.g. rdk:component:arm) while being configured under a service API. Such a resource needs a frame so the frame system registers it and motion works. ComponentConfig and RemoteConfig both have a frame field, but ServiceConfig does not — so a service-configured composite's configured frame is dropped at the proto boundary on its way to the device, and the frame system never receives it. The symptom on a machine is frame "<name>" not in frame system on the Move card.

The RDK frame-system builder already walks services and would register the frame if present; the proto is the only gap.

Change

Add Frame frame = 12; to ServiceConfig, mirroring ComponentConfig. Field 12 is the next free number (7 and 8 are historical gaps, left alone).

Regenerated: Go (app/v1/robot.pb.go) and web/TS (gen/js/app/v1/...). Python / Flutter / C++ bindings are separate gen targets and not regenerated here.

Downstream

  • rdk: carry Frame in config/proto_conversions.go ServiceConfigToProto / ServiceConfigFromProto (depends on this).
  • app: carry the frame in its service-config serialization/ingestion (depends on this).

🤖 Generated with Claude Code

A composite can serve a component API while configured under a service API, so a
service needs to carry a frame for the frame system. ComponentConfig already has
one; mirror it on ServiceConfig so a service-configured composite's frame reaches
the device instead of being dropped at the proto boundary.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test committer is a member of this org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants