-
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: allow to launch hardware in listen mode #210
feat: allow to launch hardware in listen mode #210
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #210 +/- ##
==========================================
- Coverage 25.91% 0.00% -25.92%
==========================================
Files 99 86 -13
Lines 9179 7845 -1334
Branches 2205 937 -1268
==========================================
- Hits 2379 0 -2379
- Misses 6415 7845 +1430
+ Partials 385 0 -385
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Thank you for your great work!
The json-schema-check is currently failing, could you add the new parameter ton the affected sensor model and vendor schemas in nebula_ros/schema
?
As for the parameter name, I think that communicate_with_sensor
can easily be confused with launch_hw
, as in, users could think that this affects ALL communication including UDP.
Imho, a more fitting name would be disable_tcp
or udp_only
.
Please also add a info-level log message in the wrappers that is printed when TCP is disabled, noting that checking and synchronizing settings, and diagnostics publishing are disabled.
Otherwise everything looks good to go!
Thank you for the review! I agree that my parameter name suggestion was misleading. I chose I also applied the rest of review suggestions. PR is ready for re-review. |
@msz-rai Thanks for your quick response, |
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!
Before we merge, we had an internal discussion because there's now three connection-related parameters (udp_only
, launch_hw
and setup_sensor
). Having three booleans (= 8 possible combinations) for only four valid parameter combinations (launch_hw && setup_sensor && !udp_only
, launch_hw && !setup_sensor && !udp_only
, launch_hw && !setup_sensor && udp_only
, !launch_hw
) will probably be confusing for users.
We'd like to replace the three parameters with one parameter, connection_mode
, which is one of offline
, udp_only
, skip_setup
, full
, for clarity.
Since this is out of scope for this PR, I'll make that change in another PR immediately after this one is merged. @msz-rai do you have any objections to this?
Everything looks good to me! |
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.
I'll test with a sensor tomorrow and then merge 🙇
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.
👍
PR Type
Related Links
#136
Description
This PR introduces a new parameter to the
hesai_ros_wrapper
andvelodyne_ros_wrapper
nodes, allowing hardware to launch with communication to the sensor disabled. In this configuration, the driver operates in a "listen-only" mode, receiving packet data without sending commands.This functionality is required for the AWSIM simulator, where the LiDAR simulation plugin supports publishing raw packets via UDP but doesn't handle communication from the driver.
Prior to nebula version
0.2.0
, there was a workaround for this behaviour (as outlined in the related issue). However, recent architectural changes have removed the ability to use that workaround (segmentation fault appears).Review Procedure
Code review + test to ensure that the new parameter does not interfere with the normal operation of real-world sensors.
Remarks
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