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

chore(hesai,velodyne): combine connection-related parameters into connection_mode #211

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mojomex
Copy link
Collaborator

@mojomex mojomex commented Oct 25, 2024

PR Type

  • Improvement

Related Links

Description

With #210, the connection-related parameters for Hesai and Velodyne sensors became a total of three each (udp_only, launch_hw and setup_sensor), resulting in 8 possible combinations, of which only four were valid:

  • launch_hw && setup_sensor && !udp_only -- fullly connected
  • launch_hw && !setup_sensor && !udp_only -- skip sensor setup but otherwise fully connected
  • launch_hw && !setup_sensor && udp_only -- UDP-only mode
  • !launch_hw -- offline mode

This PR combines the three parameters into one enum, connection_mode, which can be one of offline, udp_only, skip_setup and full.

Sensors that do not have TCP support and which do not support sensor setup are left untouched. They remain having one launch_hw parameter.

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 October 25, 2024 06:54
@mojomex mojomex self-assigned this Oct 25, 2024
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

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

Project coverage is 25.87%. Comparing base (214373a) to head (e29d0cd).

Files with missing lines Patch % Lines
nebula_ros/src/hesai/hesai_ros_wrapper.cpp 0.00% 14 Missing ⚠️
nebula_ros/src/velodyne/velodyne_ros_wrapper.cpp 0.00% 7 Missing ⚠️
nebula_ros/src/velodyne/hw_interface_wrapper.cpp 0.00% 6 Missing ⚠️
...ula_common/include/nebula_common/nebula_common.hpp 0.00% 5 Missing ⚠️
nebula_ros/src/hesai/hw_interface_wrapper.cpp 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #211      +/-   ##
==========================================
- Coverage   25.88%   25.87%   -0.02%     
==========================================
  Files          99       99              
  Lines        9190     9195       +5     
  Branches     2211     2215       +4     
==========================================
  Hits         2379     2379              
- Misses       6426     6431       +5     
  Partials      385      385              
Flag Coverage Δ
differential 25.87% <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.

@mojomex mojomex changed the title Connection mode chore(hesai,velodyne): combine connection-related parameters into connection_mode Oct 25, 2024
@msz-rai
Copy link
Contributor

msz-rai commented Oct 25, 2024

Just a small comment from me after a quick look at the PR:
It seems that the launch files should also be modified.

Overall, nice work 👍

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.

2 participants