Skip to content
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

Implement __rmw_take_serialized. #113

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Conversation

clalancette
Copy link
Collaborator

This allows us to implement rmw_take_serialized_message and rmw_take_serialize_message_with_info, both of which are required for rosbag2.

Note that this implementation copies some parts of __rmw_take. Given the different types involved (void * ros_message vs. rmw_serialize_message_t *), I didn't see a readable way to reduce this duplication.

Tested by running ros2 bag record -a. Before this PR, that would throw many errors, while after this PR it works as expected and can play back data.

This allows us to implement rmw_take_serialized_message
and rmw_take_serialize_message_with_info, both of which
are required for rosbag2.

Note that this implementation copies some parts of __rmw_take.
Given the different types involved (void * ros_message
vs. rmw_serialize_message_t *), I didn't see a readable way
to reduce this duplication.

Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Yadunund <[email protected]>
Copy link
Member

@Yadunund Yadunund left a comment

Choose a reason for hiding this comment

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

LGTM!

@Yadunund Yadunund merged commit 08f5c30 into rolling Feb 19, 2024
5 checks passed
@delete-merged-branch delete-merged-branch bot deleted the clalancette/take-serialized branch February 19, 2024 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants