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

feat(GenericSubscription): Add dispatch subscription callback to generic subscription #7

Conversation

ymski
Copy link

@ymski ymski commented Oct 20, 2023

Description

This PR will allow applications using GenericSubscription/GenericPublisher to be analyzed by CARET.
Add trace points to each class that are required for analysis in CARET.
( see https://tier4.github.io/caret_doc/latest/design/trace_points/runtime_trace_points/. )

Added tracepoints

  • GenericPublisher
    • rclcpp_publsih
  • GenericSubscription
    • rclcpp_subscription_init
    • rclcpp_subscription_callback_added
    • rclcpp_callback_register
    • dispatch_subscription_callback
    • callback_start
    • callback_end
    • dispatch_subscription_callback

Related links

Notes for reviewers

Pre-review checklist for the PR author

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR has been properly tested.
  • The PR has been reviewed.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@ymski ymski marked this pull request as ready for review October 23, 2023 09:21
isp-uetsuki
isp-uetsuki previously approved these changes Oct 26, 2023
Copy link

@isp-uetsuki isp-uetsuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: ymski <[email protected]>
isp-uetsuki
isp-uetsuki previously approved these changes Oct 31, 2023
Copy link

@isp-uetsuki isp-uetsuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ymski
Copy link
Author

ymski commented Nov 10, 2023

Remove redundant include in a51c1ab.

Could you review it again? @isp-uetsuki

Copy link

@isp-uetsuki isp-uetsuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@xygyo77 xygyo77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following three PRs, including this PR, were identified.
#7
tier4/caret_trace#228
tier4/caret_trace#220
I confirmed that the graph drawing was the same before and after the application of the above 3 PRs on Pilot.Auto's Psim.

@ymski ymski merged commit 197d048 into tier4:humble_tracepoint_added Nov 14, 2023
@ymski ymski mentioned this pull request Nov 26, 2023
7 tasks
iwatake2222 pushed a commit that referenced this pull request Nov 30, 2023
…ric subscription (#7)

* added initialization tracepoint to generic_subscription

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

* added callback_register

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

* added callback_start/end

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

* added subscription-side trace point

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

* add rclcpp_publish to generic_publisher

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

* removed unused dispatch_subscription_callback trace point

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

* Update rclcpp/src/rclcpp/generic_subscription.cpp

Co-authored-by: isp-uetsuki <[email protected]>

* fix messege addr

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

* remove redundant includes

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

---------

Signed-off-by: yamasaki <[email protected]>
Signed-off-by: ymski <[email protected]>
Co-authored-by: isp-uetsuki <[email protected]>
iwatake2222 added a commit that referenced this pull request Nov 30, 2023
…ric subscription (#7) (#8)

* added initialization tracepoint to generic_subscription



* added callback_register



* added callback_start/end



* added subscription-side trace point



* add rclcpp_publish to generic_publisher



* removed unused dispatch_subscription_callback trace point



* Update rclcpp/src/rclcpp/generic_subscription.cpp



* fix messege addr



* remove redundant includes



---------

Signed-off-by: yamasaki <[email protected]>
Signed-off-by: ymski <[email protected]>
Co-authored-by: ymski <[email protected]>
Co-authored-by: isp-uetsuki <[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.

3 participants