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

fix(nebula_launch): pass correct default path for AT128 correction file #128

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

mojomex
Copy link
Collaborator

@mojomex mojomex commented Mar 26, 2024

PR Type

  • Bug Fix

Description

When AT128 packets are played from ros2 bag and nebula is launched via ros2 launch nebula_ros nebula_launch.py sensor_model:=PandarAT128 launch_hw:=False without having been connected to a sensor before, pointclouds will not be output with the following error:

[component_container-1] [ERROR 1711437207.368933061] [HesaiDriver]: Scanned 624 packets, but no pointclouds were generated. Last azimuth: 959294 (ConvertScanToPointcloud() at /home/maxschmeller/nebula/src/nebula_decoders/src/nebula_decoders_hesai/hesai_driver.cpp:96)
[component_container-1] [WARN 1711437207.368961276] [hesai_driver_ros_wrapper_node]: Empty cloud parsed. (ReceiveScanMsgCallback() at /home/maxschmeller/nebula/src/nebula_ros/src/hesai/hesai_decoder_ros_wrapper.cpp:68)

Launching via the hesai_launch_all_hw.xml file worked with the same parameters.

Investigating via ros2 topic param dump, the correction_file and scan_phase parameters were the only different ones:

<<<<<<
# Launched with nebula_launch.py
correction_file: /home/maxschmeller/nebula/install/nebula_decoders/share/nebula_decoders/calibration/hesai/PandarAT128.csv
scan_phase: 30.0
------
# Launched with hesai_launch_all_hw.xml
correction_file: /home/maxschmeller/nebula/install/nebula_decoders/share/nebula_decoders/calibration/hesai/PandarAT128.dat
scan_phase: 0.0
>>>>>>

The .csv param for the correction file is clearly wrong, so this PR fixes it. This also fixes the missing pointcloud output and the console warnings above.

Review Procedure

Delete all correction files that nebula downloaded from the sensor, then launch nebula with the Python launch file and replay AT128 scan messages from a rosbag.

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 requested a review from drwnz March 26, 2024 07:20
@mojomex mojomex self-assigned this Mar 26, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 5.85%. Comparing base (5e587ba) to head (757cc3a).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##            main    #128      +/-   ##
========================================
- Coverage   7.03%   5.85%   -1.18%     
========================================
  Files        136      28     -108     
  Lines      10211    4130    -6081     
  Branches     869     471     -398     
========================================
- Hits         718     242     -476     
+ Misses      8907    3468    -5439     
+ Partials     586     420     -166     
Flag Coverage Δ
differential 5.85% <ø> (?)
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.

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!

@drwnz drwnz merged commit 18bb03a into main Mar 26, 2024
7 checks passed
@drwnz drwnz deleted the fix-at128-wrong-correction-file branch March 26, 2024 07:43
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