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

Fix how total_count and total_count_change are calculated for matched events #287

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

Yadunund
Copy link
Member

@Yadunund Yadunund commented Sep 27, 2024

RCL tests expect total_count and total_count_change to only be incremented when new matches are found. Previously I was also incrementing them when matches were lost. current_count_change needs to be int32_t as seen here.

Also added API to remove_qos_event_callbacks but this is just to clean up memory and does not fix the test expecations.

With these changes, I am getting rclcpp/test_qos_events to pass with this PR ros2/rclcpp#2626

@Yadunund Yadunund force-pushed the yadu/fix_matched_events branch from e143578 to 9dece91 Compare September 27, 2024 06:41
@Yadunund Yadunund changed the title Fix how total_count and change are calculated for matched events Fix how total_count and total_count_change are calculated for matched events Sep 27, 2024
@Yadunund Yadunund merged commit 8e883bc into rolling Sep 27, 2024
8 checks passed
@Yadunund Yadunund deleted the yadu/fix_matched_events branch September 27, 2024 13:23
YuanYuYuan pushed a commit to ZettaScaleLabs/rmw_zenoh that referenced this pull request Sep 30, 2024
… events (ros2#287)

* Fix how total_count and change are calculated

Signed-off-by: Yadunund <[email protected]>

* Ensure key expressions match

Signed-off-by: Yadunund <[email protected]>

---------

Signed-off-by: Yadunund <[email protected]>
imstevenpmwork pushed a commit to ZettaScaleLabs/rmw_zenoh that referenced this pull request Sep 30, 2024
… events (ros2#287)

* Fix how total_count and change are calculated

Signed-off-by: Yadunund <[email protected]>

* Ensure key expressions match

Signed-off-by: Yadunund <[email protected]>

---------

Signed-off-by: Yadunund <[email protected]>
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