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(hesai_hw_interface): use dependency-injected logger, get rid of RCLCPP dependency #232

Merged
merged 4 commits into from
Nov 26, 2024

Conversation

mojomex
Copy link
Collaborator

@mojomex mojomex commented Nov 22, 2024

PR Type

  • Improvement

Related Links

Description

✔️ #233 has been merged, this PR is ready for merging ✔️

Use the new Nebula logger interface and pass in a concrete logger on instantiation. Output with the RCLCPP logger is identical, except for the tag having gotten longer. This can be changed if desired.

The direct RCLCPP dependency of the HW interface is thus removed 🎉

Before:
image

After:
image

Pre-Review Checklist for the PR Author

PR Author should check the checkboxes below when creating the PR.

  • Assign PR to reviewer

Checklist for the PR Reviewer

Reviewers should check the checkboxes below before approval.

  • Commits are properly organized and messages are according to the guideline
  • (Optional) Unit tests have been written for new behavior
  • PR title describes the changes

Post-Review Checklist for the PR Author

PR Author should check the checkboxes below before merging.

  • All open points are addressed and tracked via issues or tickets

CI Checks

  • Build and test for PR: Required to pass before the merge.

@mojomex mojomex marked this pull request as ready for review November 22, 2024 07:54
@mojomex mojomex self-assigned this Nov 22, 2024
@mojomex mojomex requested a review from drwnz November 22, 2024 07:55
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 56 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (77b4c6c) to head (755d722).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../nebula_hesai_hw_interfaces/hesai_hw_interface.cpp 0.00% 54 Missing ⚠️
nebula_ros/src/hesai/hw_interface_wrapper.cpp 0.00% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (77b4c6c) and HEAD (755d722). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (77b4c6c) HEAD (755d722)
total 2 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #232       +/-   ##
==========================================
- Coverage   26.11%   0.00%   -26.12%     
==========================================
  Files         100      88       -12     
  Lines        9214    7941     -1273     
  Branches     2214     938     -1276     
==========================================
- Hits         2406       0     -2406     
- Misses       6419    7941     +1522     
+ Partials      389       0      -389     
Flag Coverage Δ
differential 0.00% <0.00%> (?)
total ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…remove rclcpp dependency 🎉

Signed-off-by: Max SCHMELLER <[email protected]>
Copy link
Collaborator

@drwnz drwnz left a comment

Choose a reason for hiding this comment

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

LGTM, apart from the header Kenzo found!

@mojomex mojomex requested review from drwnz and knzo25 November 26, 2024 09:43
mojomex added a commit that referenced this pull request Nov 26, 2024
Signed-off-by: Max SCHMELLER <[email protected]>
mojomex added a commit that referenced this pull request Nov 26, 2024
Signed-off-by: Max SCHMELLER <[email protected]>
Copy link
Collaborator

@knzo25 knzo25 left a comment

Choose a reason for hiding this comment

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

LGTM ! 🎉

@mojomex mojomex merged commit 3d42cd0 into main Nov 26, 2024
11 of 13 checks passed
@mojomex mojomex deleted the feat/hesai-di-logger branch November 26, 2024 10:48
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