-
Notifications
You must be signed in to change notification settings - Fork 251
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
[iron] Add ROS_DISTRO metadata record to mcap file when opening for writing #1371
Conversation
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.
@emersonknapp In the future I would like to add functionality for saving full serialized metadata and it would be more reasonable to add it at the same place as ROS_DISTRO.
Wouldn't you mind considering moving functionality by saving ROS_DISTRO in the update_metada(metadata)
method as it was made originally on Rolling?
And simple unit tests for getting saved ROS_DISTRO as in SQLite3 backend on Iron with get_ros_distro()
API would be much appreciated.
If we do |
Update - by using the flag I only write this particular metadata value once - so it's fine. I added a unit test but since |
Pulls: #1371 |
@emersonknapp As regards
Yes, this is correct I imply we do similar things as on Rolling. i.e. Look out for the first record of the Metadata record named "rosbag2" and take |
rosbag2_storage_mcap/test/rosbag2_storage_mcap/test_mcap_storage.cpp
Outdated
Show resolved
Hide resolved
008ea3b
to
89b1fe0
Compare
Rebuilds build #12168 |
I expect that the Windows error is a totally unrelated flaky test (which has had attempts to make it reliable in #1012 and #1290 - but I don't think either of them actually fixed it). Rerunning to check, and not block this PR on that issue Windows (just build-up-to rosbag2_cpp and test that package) |
@emersonknapp As regards to the test failure in the rosbag2_cpp.TimeControllerClockTest.unpaused_sleep_returns_true on Windows CI. It seems the root cause of the issue is that |
Note #1384 fixing the test - I'll hold off on merging this one until that is backported to Iron so we can have good happy green CI |
OK - just waiting on #1389 to merge, then will rebase and CI |
…iting Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
89b1fe0
to
8c229c1
Compare
Pulls: #1371 |
@Mergifyio backport humble |
✅ Backports have been created
|
Related to #1239
This is an API/ABI-stable patch to add some of the functionality from #1241 to Iron
Adds ROS_DISTRO metadata record to mcap storage file when opened for writing.
ros2 bag info
will not know about this information, but its presence in the file will be readable by other mcap-reading toolsWhen complete - will backport to Humble