feat: Added new statistics interface / removed statistics publisher - #3203
Open
jmachowinski wants to merge 1 commit into
Open
feat: Added new statistics interface / removed statistics publisher#3203jmachowinski wants to merge 1 commit into
jmachowinski wants to merge 1 commit into
Conversation
This removes the half backed statistics implementation and replaces it with a interface that can be implemented by a third party pkg to archive the same functionality. Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
Collaborator
Author
|
Pulls: #3203 |
Collaborator
Author
|
This reduced the compile time of a node with 1 sub and 1 publisher from 6.32s to 4.91s on a Ryzen 9900X |
skyegalaxy
self-requested a review
July 23, 2026 16:47
fujitatomoya
left a comment
Collaborator
There was a problem hiding this comment.
I am not against this approach, imo old implementation clearly wasn't pulling its weight anyway. a few comments below.
- should we not give deprecation period before removal? statistics has been there for a long time, there would be some users who might use the statistics.
- no default implementation provided by mainline? i think user can still do enable/disable the statistics feature on the subscription, and then mainline provides the default collector?
- this still supports rclcpp-only, so rclpy and other client libraries can't benefit. we know that this is the same limitation the old design had. probably this is next step after this PR, for longer term I think that statistics hooks is an
rcl-level event/emission API, which would give all client libraries and all entity types (publishers, services, actions) a shared mechanism, with a default implementation maintained and tested in mainline.
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.
Description
This removes the half backed statistics implementation and replaces it with a interface that can be implemented by a third party pkg to archive the same functionality.
Is this user-facing behavior change?
Yes, we remove an existing feature. Due to recent bug reports I believe almost nobody was using it.
But as states, this also enables community pkgs to replicate the existing behavior.
Did you use Generative AI?
Yes, SWE-1.7