Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR vendors the dynmsg library from the dynamic_message_introspection repository directly into ros2_medkit_serialization to enable publishing to rosdistro. The vendoring removes the external git submodule dependency that was blocking binary distribution.
Changes:
- Vendored dynmsg C++ API (~1500 lines) with proper Apache 2.0 attribution
- Added message_cleanup wrapper API for simplified memory management
- Removed dynamic_message_introspection git submodule
- Updated all include paths from
dynmsg/toros2_medkit_serialization/vendored/dynmsg/
Reviewed changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ros2_medkit_serialization/src/vendored/dynmsg/*.cpp | Vendored dynmsg C++ implementation files with updated include paths |
| src/ros2_medkit_serialization/include/ros2_medkit_serialization/vendored/dynmsg/*.hpp | Vendored headers with updated include guards and paths |
| src/ros2_medkit_serialization/src/vendored/dynmsg/NOTICE.md | Attribution and modification documentation for vendored code |
| src/ros2_medkit_serialization/src/message_cleanup.cpp | New wrapper API for message cleanup |
| src/ros2_medkit_serialization/include/ros2_medkit_serialization/message_cleanup.hpp | Header for message cleanup wrapper |
| src/ros2_medkit_serialization/CMakeLists.txt | Updated to build vendored sources, disabled linters for vendored code |
| src/ros2_medkit_serialization/package.xml | Replaced dynmsg dependency with underlying ROS dependencies |
| src/ros2_medkit_serialization/src/json_serializer.cpp | Updated include paths to vendored headers |
| src/ros2_medkit_serialization/include/ros2_medkit_serialization/type_cache.hpp | Updated include paths to vendored headers |
| src/ros2_medkit_gateway/src/operation_manager.cpp | Uses new message_cleanup wrapper for consistent memory management |
| src/dynamic_message_introspection | Removed git submodule |
| .gitmodules | Removed submodule configuration |
46cae6a to
6975b88
Compare
bburda
reviewed
Feb 4, 2026
Migrate dynmsg from git submodule to vendored source code within ros2_medkit_serialization. This removes the external dependency blocker for publishing to rosdistro. Changes: - Add vendored dynmsg C++ API (headers + sources) - Add message_cleanup wrapper API for gateway - Update include paths to use vendored headers - Remove dynamic_message_introspection submodule - Update CMakeLists.txt and package.xml dependencies
6975b88 to
e555b99
Compare
bburda
approved these changes
Feb 4, 2026
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.
Pull Request
Summary
Migrate dynmsg from git submodule to vendored source code within ros2_medkit_serialization. This removes the external dependency blocker for publishing to rosdistro.
Changes:
Issue
Link the related issue (required):
Type
Testing
How was this tested / how should reviewers verify it?
Checklist