-
Notifications
You must be signed in to change notification settings - Fork 58
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): add support for xt16 #241
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Evaluation
Code Review
Everything looks really god, thank you! I left some small suggestions, XT16 was missing in two switch statements.
Unit Tests
Decoder tests are well formed and passing 👍
PCAP Replay
Using a currently closed-source tool, I instantiated a dummy XT16 using the information in the PCAP. Nebula connects without a problem and pointcloud and diagnostics output work without a problem (see screenshot)
It seems that, just like XT32, tthe power diagnostics have garbage values in them. Since we don't have the newest TCP protocol specification, this is curently a won't fix in Nebula, so as far as your PR is concerned, it's ok to leave as-is 🙆♂️
Documentation
Could you add XT16 to the list of supported sensors, and add a parameter page for the model?
My apologies, the develop
branch was a bit behind main
, so not all doc changes were reflected there. Could you rebase your PR onto the updated develop
? 🙇
nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/pandar_xt16.hpp
Outdated
Show resolved
Hide resolved
nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/pandar_xt16.hpp
Outdated
Show resolved
Hide resolved
All review comments done, submitting for review |
@jemmmel Looks good, thanks! |
@mojomex Yeah no worries, I think my method was bad. Do you know how to do this without pulling in the unneeded history?
|
80046d6
to
ca3ed68
Compare
…ms and correction files. TO DO: - Check nebula_tests/hesai/hesai_ros_decoder_test_main.cpp - Check hardware and launch files - Run tests Signed-off-by: jemmmel <[email protected]>
Signed-off-by: jemmmel <[email protected]>
ca3ed68
to
0a2c921
Compare
@jemmmel Rebasing something with merge commits inbetween is quite painful, so the easiest method is to git fetch --all
git reset --soft upstream/develop and then re-create the commits by hand. It doesn't have to be the exact same commit history, just roughly divided into the different steps (add parameter file, add to nebula_common etc, add tests). The rebase you tried just now lost a few changes, e.g. in |
Hey @mojomex, thanks for the tips. Since the changes were minor and I was making a mess of the rebase, I have done some dectructive pushing, sorry about that. I also had an issue with signing commits. Anyway I think I have fixed it now, sorry about that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for this missing import 🙇
nebula_decoders/include/nebula_decoders/nebula_decoders_hesai/decoders/pandar_xt16.hpp
Show resolved
Hide resolved
Co-authored-by: Max Schmeller <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, will merge when CI passes 🎉
Thanks for your contribution!
Great, glad to be a part of it! Thanks for your help as well @mojomex |
Signed-off-by: jemmmel <[email protected]>
Added missing vendor file to fix the JSON schema check failing |
@jemmmel Could you do diff nebula_ros/schema/PandarXT16.schema.json nebula_ros/schema/PandarXT32.schema.json And migrate over the slight differences from XT32? Sensor model enum value and some references to other schemas changed. Then schema check should pass 🙂 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #241 +/- ##
===========================================
+ Coverage 26.11% 26.23% +0.11%
===========================================
Files 101 102 +1
Lines 9212 9233 +21
Branches 2211 2220 +9
===========================================
+ Hits 2406 2422 +16
- Misses 6417 6420 +3
- Partials 389 391 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: jemmmel <[email protected]>
Done now, missed some changes from the rebase! |
PR Type
Related Links
PCAP data
Description
Added support for XT16 LiDAR, based on existing XT32
Remarks
Related to #137
Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.
Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.
Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.
CI Checks