Hook up the inconsistent topic event inside of rclcpp#2069
Merged
clalancette merged 6 commits intorollingfrom Mar 13, 2023
Merged
Hook up the inconsistent topic event inside of rclcpp#2069clalancette merged 6 commits intorollingfrom
clalancette merged 6 commits intorollingfrom
Conversation
ivanpauno
approved these changes
Jan 2, 2023
Member
ivanpauno
left a comment
There was a problem hiding this comment.
LGTM!
I have some minor comments
| using QOSDeadlineOfferedInfo = rmw_offered_deadline_missed_status_t; | ||
| using QOSLivelinessChangedInfo = rmw_liveliness_changed_status_t; | ||
| using QOSLivelinessLostInfo = rmw_liveliness_lost_status_t; | ||
| using QOSMessageLostInfo = rmw_message_lost_status_t; |
Member
There was a problem hiding this comment.
it may be worth to rename this one as MessageLostInfo, as it's not qos related as well
Contributor
Author
There was a problem hiding this comment.
I agree, but I think it is outside the scope of this PR. I can open an issue to track that in a separate PR, if we want.
0f21d43 to
1413c8b
Compare
Collaborator
fujitatomoya
left a comment
There was a problem hiding this comment.
Implementation looks good to me, but i want to know the behavior of this event mechanism in actual use cases.
1413c8b to
d21e1ca
Compare
fujitatomoya
approved these changes
Jan 24, 2023
022162e to
a0b7f6f
Compare
ccc107e to
be40ebf
Compare
be40ebf to
9064da9
Compare
We are going to be using it for more than just QOS events, so rename it to just EventHandler and EventHandlerBase for now. Leave the old names in place but deprecated. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This just reduces the amount of duplicated code. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
9064da9 to
9e47b51
Compare
Barry-Xu-2018
pushed a commit
to Barry-Xu-2018/rclcpp
that referenced
this pull request
Jan 12, 2024
* Rename QOSEventHandler* to EventHandler. We are going to be using it for more than just QOS events, so rename it to just EventHandler and EventHandlerBase for now. Leave the old names in place but deprecated. * Rename qos_event.hpp -> event_handler.hpp * Revamp incompatible_qos callback setting. * Add in incompatible type implementation. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is part of ros2/ros2#1361 . In particular, what this does is take the inconsistent topic event as it comes from the rmw/rcl layer, and allows the user to register for a callback to find that out.
Along the way, some refactoring was in order. In particular, rclcpp assumed that all events were QoS events, which is not really the case. This PR does some renaming of things to make it clear that these events are not just for QoS, but can be for other things as well. With that done, the last patch in the series actually implements the inconsistent topic callback.
Part of ros2/ros2#1361
Depends on ros2/rmw#339
Depends on ros2/rcl#1024