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

Support for deadline, lifespan and liveliness qos #88

Merged
merged 3 commits into from
Jan 31, 2020

Conversation

dpotman
Copy link
Contributor

@dpotman dpotman commented Jan 21, 2020

This PR adds support for events in rmw_wait, which is required for the lifespan and deadline qos to work properly. I've also added code for setting the deadline, lifespan and liveliness qos policies in create_readwrite_qos. And when getting qos properties in get_readwrite_qos, an infinite duration is no longer returned as 0, as test_get_actual_qos__rmw_cyclonedds_cpp expects the value to be >= MAX_INT32

This commit adds support for liveliness, lifespan and deadline missed
qos in rmw, and it adds event support in rmw_wait that is required for
these qos policies to work correctly.
Copy link
Collaborator

@eboasson eboasson 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 to me.

It behaves as expected for me on macOS and Ubuntu and I'm willing to "risk it" with respect to Windows if no one has any objections.

…gered when a writer becomes not-alive and unregisters itself
@eboasson
Copy link
Collaborator

This fixes makes all the rcl tests go green for me locally on macOS in combination with eclipse-cyclonedds/cyclonedds#378 and has no adverse affects that I can see (either from code inspection or building/running locally) without that PR on Cyclone applied. Merging.

@eboasson eboasson merged commit a771f91 into ros2:master Jan 31, 2020
eboasson pushed a commit that referenced this pull request Mar 12, 2020
* Events and liveliness/lifespan/deadline qos support

This commit adds support for liveliness, lifespan and deadline missed
qos in rmw, and it adds event support in rmw_wait that is required for
these qos policies to work correctly.

* Removed redundant empty check in rmw_wait, fix duration 0 vs infinity for qos getter and setter

* Disabled auto-dispose so that deadline-missed on reader is still triggered when a writer becomes not-alive and unregisters itself
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