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

publish shared_ptr of rcl_serialized_message #541

Merged
merged 2 commits into from
Aug 24, 2018
Merged

publish shared_ptr of rcl_serialized_message #541

merged 2 commits into from
Aug 24, 2018

Conversation

Karsten1987
Copy link
Contributor

fixes #532

@Karsten1987 Karsten1987 added the in review Waiting for review (Kanban column) label Aug 24, 2018
@Karsten1987 Karsten1987 self-assigned this Aug 24, 2018
@@ -289,6 +289,12 @@ class Publisher : public PublisherBase
}
}

void
publish(std::shared_ptr<rcl_serialized_message_t> serialized_msg)
Copy link
Member

Choose a reason for hiding this comment

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

Should the parameter be const to avoid modification?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in 7e5b416

@Karsten1987 Karsten1987 merged commit 354d933 into master Aug 24, 2018
@Karsten1987 Karsten1987 deleted the fix_532 branch August 24, 2018 19:34
@Karsten1987 Karsten1987 removed the in review Waiting for review (Kanban column) label Aug 24, 2018
nnmm pushed a commit to ApexAI/rclcpp that referenced this pull request Jul 9, 2022
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
DensoADAS pushed a commit to DensoADAS/rclcpp that referenced this pull request Aug 5, 2022
…ore shutdown (ros2#541)

fix ros2#540 
* if cache data exists, it needs to flush the data into the storage before shutdown.
* cache_ needs to reset after writing to storage.
* add reset_cache() method.

Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
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.

Remove asymmetry in subscribing/publishing serialized messages
2 participants