-
Notifications
You must be signed in to change notification settings - Fork 181
feat: Added check for double usage of entities in rcl_waitset #1206
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
base: rolling
Are you sure you want to change the base?
feat: Added check for double usage of entities in rcl_waitset #1206
Conversation
f2041ac to
13ad17c
Compare
|
Pulls: #1206 |
13ad17c to
53a0d40
Compare
|
Pulls: #1206 |
53a0d40 to
1cdb729
Compare
|
Pulls: #1206 |
|
This need to be merged after ros2/rclcpp#2714, as this contains the fix for the two identical guard conditions added by the executor. |
|
Pulls: #1206 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with green CI.
|
https://ci.ros2.org/job/ci_windows/23361/testReport/junit/(root)/test_launch_ros/pytest_missing_result/ is unrelated. @jmachowinski if you want to wait for more reviews on this, please do that. i will leave this to you. |
|
Besides the minor request to add a comment, could we have a unit-test for this? |
1cdb729 to
d1f6983
Compare
|
Added a test case for duplicate timer and duplicate guard condition. I didn't add tests for subscribers and services, as the boilerplate for setup would be a bit much and it would check the identical code path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and addresses @alsora's request.
One more CI and we are good to go here?
Adding entities twice to a waitset is not allowed, and will introduce subtle bugs. Therefore the rcl_wait function will not explicitly check for duplicated entries in the waitset. Signed-off-by: Janosch Machowinski <[email protected]>
d1f6983 to
ae7e9a3
Compare
|
Pulls: #1206 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind to merge with rolling?
|
@Mergifyio rebase |
❌ Pull request can't be updated with latest base branch changesMergify needs the author permission to update the base branch of the pull request. |
Adding entities twice to a waitset is not allowed, and will introduce subtle bugs. Therefore the rcl_wait function will not explicitly check for duplicated entries in the waitset.
@wjwwood @mjcarroll @alsora This commit adds the check that we agreed on in the last client workgroup meeting