feat(web): LCM by default for cockpit and SDK channels - #4037
Draft
paul-nechifor wants to merge 1 commit into
Draft
feat(web): LCM by default for cockpit and SDK channels#4037paul-nechifor wants to merge 1 commit into
paul-nechifor wants to merge 1 commit into
Conversation
paul-nechifor
added this pull request to stack #3481
September 10, 2026 01:49
paul-nechifor
temporarily deployed
to
cachix
September 10, 2026 01:49 — with
GitHub Actions
Inactive
❌ 7 Tests Failed:
View the full list of 7 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
paul-nechifor
force-pushed
the
paul/feat/lcm-encoding
branch
from
September 10, 2026 20:00
086cc84 to
4965d45
Compare
paul-nechifor
temporarily deployed
to
cachix
September 10, 2026 20:00 — with
GitHub Actions
Inactive
paul-nechifor
force-pushed
the
paul/feat/lcm-encoding
branch
from
September 11, 2026 05:20
4965d45 to
7957a40
Compare
A Channel declared without an encoding now compiles to <msg_name>.lcm.v1
for rx DimOS messages (json.v1 otherwise): the frame is msg.lcm_encode()
and the manifest record carries the message's LCM schema in params.lcm,
exported from the generated dimos_lcm class. The SDK compiles a decoder
from that schema once per adopted manifest (DecoderRegistry.resolve), so
any DimOS message decodes in the browser with no generated code, and the
cockpit channel table previews it.
- dimos/web/lcm_codec.py: default rule, schema resolution through
msg_name (the overlay's own fingerprint method can be inherited from
another message), schema export, and the worker encoder, which drops a
sample whose fingerprint is not the one the schema promised.
- Image has no default (raw pixels): Channel("snap", Image) names
jpeg.v1; an explicit sensor_msgs.Image.lcm.v1 still works.
- web/sdk/src/decoders/lcm.ts: schema-driven decoder (typed arrays,
zero-copy byte[]/int8_t[] views, bigint int64) plus a bounded preview.
- Golden lcm_frames.json generated from Python, pinned by pytest and
vitest; a manifests.json vector pins nested params; browser e2e added.
leshy
force-pushed
the
paul/feat/lcm-encoding
branch
from
September 11, 2026 10:55
7957a40 to
386fb85
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.