-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read serialized qos profiles out of the metadata #359
Conversation
This is pretty interesting, how does it work for future changes to the metadata? Do we just add a layer on top of decode? |
You just add if blocks for data added in new versions. That's the way that I have historically seen this done for similar data format parsing. And if you remove fields you send up making it a version range for reading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR LGTM, but this versioning approach is going to explode pretty soon if we continue doing active development. I'd suggest to spend some time post-release thinking about what we should be doing (cough Protobuf cough cough).
rosbag2_storage/test/rosbag2_storage/test_metadata_serialization.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually LGTM'ing the PR
78189f7
to
244755c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending Thomas comments and Green CI
ef07003
to
af9c04a
Compare
@emersonknapp FYI, we're having a windows build issue that just started happening. I cleared a build from the queue and edited your comment to point to the right build number, but I think you might hit the same unrelated build failure in Edit: related issue ros/resource_retriever#38 |
Thanks for the heads up! |
Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Emerson Knapp <[email protected]>
eb8c66f
to
b3ba4c7
Compare
The test failures are clearly unrelated, having to do with typesupport for connext and cyclone, on windows, in the last two runs. We need to fix that, but I'm going to merge this change to unblock the followup work. |
Part of #125
This PR introduces the ability to read the new field
offered_qos_profiles
out of a bag metadata. This required making a way to pass version information to sub-structs of BagMetadata so that backwards compatibility can be maintained.