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

Add in a warning for a depth of 0 with KEEP_LAST. #1048

Merged
merged 1 commit into from Nov 30, 2022

Conversation

clalancette
Copy link
Contributor

It really doesn't make much sense to have a KeepLast depth of 0; no data could possibly be stored. Indeed, the underlying DDS implementations don't actually support this. It currently "works" because a KeepLast depth of 0 is assumed to be system default, so the RMW layer typically chooses "1" instead. But this isn't something we should be encouraging users to do, so add a warning.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

This is the rclpy companion PR to ros2/rclcpp#2048

It really doesn't make much sense to have a KeepLast depth of 0;
no data could possibly be stored. Indeed, the underlying DDS
implementations don't actually support this. It currently "works"
because a KeepLast depth of 0 is assumed to be system default, so
the RMW layer typically chooses "1" instead. But this isn't
something we should be encouraging users to do, so add a warning.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Copy link

@adityapande-1995 adityapande-1995 left a comment

Choose a reason for hiding this comment

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

Looks good with green CI

@clalancette
Copy link
Contributor Author

CI for this is in ros2/rclcpp#2048 (comment)

@clalancette
Copy link
Contributor Author

CI for this was clean, so merging.

@clalancette clalancette merged commit 98ab706 into rolling Nov 30, 2022
@delete-merged-branch delete-merged-branch bot deleted the clalancette/add-keeplast-warning branch November 30, 2022 13:32
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.

None yet

3 participants