-
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
Allow unknown types in bag rewrite #1812
Conversation
Signed-off-by: Michael Orlov <[email protected]>
- Unhandled exception was causing rosbag2 converter or recorder to crash if the corresponding package for message type was not found. Signed-off-by: Michael Orlov <[email protected]>
Signed-off-by: Michael Orlov <[email protected]>
Signed-off-by: Michael Orlov <[email protected]>
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.
lgtm with green CI
Pulls: #1812 |
https://github.com/Mergifyio backport jazzy iron humble |
✅ Backports have been created
|
Signed-off-by: Michael Orlov <[email protected]> (cherry picked from commit cd7bd63)
Signed-off-by: Michael Orlov <[email protected]> (cherry picked from commit cd7bd63) # Conflicts: # rosbag2_cpp/src/rosbag2_cpp/message_definitions/local_message_definition_source.cpp
Signed-off-by: Michael Orlov <[email protected]> (cherry picked from commit cd7bd63) # Conflicts: # rosbag2_cpp/src/rosbag2_cpp/message_definitions/local_message_definition_source.cpp # rosbag2_cpp/test/rosbag2_cpp/test_local_message_definition_source.cpp
Signed-off-by: Michael Orlov <[email protected]> (cherry picked from commit cd7bd63) Co-authored-by: Michael Orlov <[email protected]>
* Allow unknown types in bag rewrite (#1812) Signed-off-by: Michael Orlov <[email protected]> (cherry picked from commit cd7bd63)
* Allow unknown types in bag rewrite (#1812) Signed-off-by: Michael Orlov <[email protected]> (cherry picked from commit cd7bd63) # Conflicts: # rosbag2_cpp/src/rosbag2_cpp/message_definitions/local_message_definition_source.cpp * Address merge conflicts during backporting Signed-off-by: Michael Orlov <[email protected]> --------- Signed-off-by: Michael Orlov <[email protected]> Co-authored-by: Michael Orlov <[email protected]> Co-authored-by: Alejandro Hernández Cordero <[email protected]>
This PR will allow
ros2 bag convert
to process bag files with "unknown" message types.Unknown are the types which typesupport is not available during the bag conversion operation.
Also added proper handling for the
ament_index_cpp::PackageNotFoundError
exception throwing from theament_index_cpp::get_package_share_directory(package);
. It was causing abnormal converter or recorder termination if the package for message definition was not found in ament_index.ros2 bag convert
ignoring messages with unknown types #1811