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_ros): limit cloud_max_angle param to 359 #44 #45

Closed
wants to merge 2 commits into from

Conversation

mebasoglu
Copy link
Collaborator

@mebasoglu mebasoglu commented Aug 4, 2023

PR Type

  • Bug Fix

Related Links

The issue: #44

Description

This PR changes default cloud_max_angle to 359 and also limits cloud_min_angle and cloud_max_angle to 359. By doing those, it fixes #44 .

Review Procedure

Range of the parameters, default values of them and readme can be checked.

Remarks

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.

@mebasoglu mebasoglu changed the title fix(nebula_ros): Limit cloud_max_angle param to 359 #44 fix(nebula_ros): limit cloud_max_angle param to 359 #44 Aug 4, 2023
@drwnz drwnz requested review from drwnz and amc-nu August 7, 2023 11:28
@drwnz
Copy link
Collaborator

drwnz commented Aug 7, 2023

Thank you for the PR! I see you have edited for Hesai and Velodyne - actually, Hesai sensors have a range from [0...360] whereas Velodyne sensors are typically [0...359].

@mebasoglu
Copy link
Collaborator Author

Hello, thank you for the feedback! I discarded Hesai chagnes.

@drwnz
Copy link
Collaborator

drwnz commented Aug 8, 2023

@mebasoglu cc @amc-nu
Thank you for the PR- upon investigation, unfortunately we can't limit Velodyne max angle to 360 degrees as it is used in software clipping so doing so results in a 1 degree gap in the cloud.
I will address this issue in a different PR.

@codecov-commenter
Copy link

Codecov Report

Patch coverage has no change and project coverage change: -2.13% ⚠️

Comparison is base (cb25896) 13.38% compared to head (5cc5164) 11.25%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
- Coverage   13.38%   11.25%   -2.13%     
==========================================
  Files         111       33      -78     
  Lines       10991     4619    -6372     
  Branches     1727     1145     -582     
==========================================
- Hits         1471      520     -951     
+ Misses       8339     3156    -5183     
+ Partials     1181      943     -238     
Flag Coverage Δ
differential 11.25% <0.00%> (?)
total ?

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

Files Changed Coverage Δ
..._ros/src/velodyne/velodyne_decoder_ros_wrapper.cpp 0.00% <0.00%> (ø)
...src/velodyne/velodyne_hw_interface_ros_wrapper.cpp 0.00% <0.00%> (ø)

... and 78 files with indirect coverage changes

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

@drwnz
Copy link
Collaborator

drwnz commented Aug 9, 2023

@mebasoglu
Can you please test with this PR?
#50

If that fixes the issue then we can close this PR. Thank you.

@mebasoglu
Copy link
Collaborator Author

Hello, I tested and it works, thank you.

@mebasoglu mebasoglu closed this Aug 9, 2023
@mebasoglu mebasoglu deleted the 44-fix-cloud-max-angle branch August 10, 2023 12:17
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.

[velodyne_hw_monitor_ros_wrapper_node] dies with default cloud_max_angle param
4 participants