Skip to content

Allow static and dynamic parts of messages in separate channels - #919

Open
pmai wants to merge 1 commit into
masterfrom
feature/static-data-in-trace-files
Open

pmai wants to merge 1 commit into
masterfrom
feature/static-data-in-trace-files

Conversation

@pmai

@pmai pmai commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

This feature allows the separate storage of dynamic and static parts of messages, similarly to the corresponding feature in OSMP, as discussed in the OSI labeling and linking project.

This feature allows the separate storage of dynamic and static parts of messages, similarly to the corresponding feature in OSMP.

Signed-off-by: Pierre R. Mai <pmai@pmsf.de>
@pmai pmai self-assigned this Nov 19, 2026
@pmai pmai added the FeatureRequest Proposals which enhance the interface or add additional features. label Nov 19, 2026
Comment on lines +190 to +193
`net.asam.osi.trace.channel.content-otherchannel`:::
A reference to another channel that contains the complementary data for this channel, such as a static channel referenced by a dynamic channel or vice versa.
If the complementary channel exists, this field should contain its ID.
If there is no complementary channel, as for channels of combined content, this field must be omitted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this currently limits the feature to one-to-one relationships between static and dynamic channels. At least it doesn't specify how to fill content-otherchannel for a static channel referenced by multiple dynamic channels, because it would have to be a list of channel references. It could be useful to have multiple dynamic channels reference the same static content, e.g. referencing a single GroundTruthInit in multiple SensorView channels. Or is this not intended to be supported?

Also, I believe reciprocal channel ID references (which I understand are not mandatory but recommended) might be a bit annoying with the current mcap library implementations. Both channels would have to know each other's channel ID before registering their respective channels, since channel metadata cannot (safely) be modified after registration, if I understand the C++ and Python implementations correctly. Maybe the recommendation should be to reference the static channel from the dynamic ones?

Generally, this makes the link depend on internal channel IDs which could potentially change when rewriting/reordering data, e.g. when adding other topics. Since the existing OSI specification already requires topic names for OSI channels to be unique within an MCAP file, topic-based references might be the easier option?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FeatureRequest Proposals which enhance the interface or add additional features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants