Repository navigation
refactor(ndt_scan_matcher): ROS-free hyper parameters and node rename - #1558
sasakisasaki wants to merge 3 commits into
Conversation
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1558 +/- ##
==========================================
+ Coverage 82.34% 82.66% +0.31%
==========================================
Files 421 423 +2
Lines 23903 24476 +573
Branches 147 147
==========================================
+ Hits 19683 20233 +550
- Misses 4190 4213 +23
Partials 30 30
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ndt_scan_matcher): ROS-free hyper parameters and node rename
xmfcx
left a comment
There was a problem hiding this comment.
- This PR should wait until stack of #1527 is merged.
- Related comment: #1552 (comment)
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
…free the name for the core logic Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Junya Sasaki <junya.sasaki@tier4.jp>
a2084cc to
910aa3a
Compare
|
@sasakisasaki cc @xmfcx Commit 1 (
Commit 2 (
Verified locally: Could you review these? |
|
Thanks @motsu -san for your help. @sasakisasaki -san could you create a parent issue for this refactoring task? And link the related PRs (including merged ones) to that issue and vice versa. This way it is easy to track the scope and related PRs and the overall work on this specific task. |
|
(My TODO) @xmfcx san. Thank you for your cooperation, and I'm sorry for interrupting your ongoing PRs deeply. Yes, I'll make the list of steps for refactoring task, without interrupting other ongoing PRs including yours 👍. Hopefully by this Thursday 3rd Dec. (as I'll (we'll) need to organize my some tasks in TIER IV in these days 🙏 ) |
|
@xmfcx I have created the issue for my TODO here 👍 |
Why Currently Draft?
Self-review has not been done yet 🙏
Description
Two preparation steps for the core logic extraction:
HyperParametersbecomes a plain struct. Declaring and reading the ROS parameters moves intodeclare_hyper_parameters(node)in the newhyper_parameters_loader.{hpp,cpp}. This is the only place that knows which ROS parameter fills which field. Code that holds the values no longer depends on rclcpp.NDTScanMatcherbecomesNdtScanMatcherNode, andndt_scan_matcher_core.{hpp,cpp}becomendt_scan_matcher_node.{hpp,cpp}. This frees the nameNdtScanMatcherfor the core class added in PR 4. The test harness, the fixture and the design yaml follow the rename.Related links
Stack (each PR is based on the one before it):
I'll update the list of stack PRs status below, as I like to ensure the step, I'm going to create the PR after merging currently ongoing one.
SmartPoseBufferwithout a logger #1549ndt_scan_matcher): make scan matching diagnostics ROS-free #1552MapUpdateModuleNdtScanMatchercoreHow was this PR tested?
Ran the following command:
$ PACKAGE_NAME=autoware_ndt_scan_matcher \ && colcon build --packages-up-to $PACKAGE_NAME --cmake-args -DCMAKE_BUILD_TYPE=Release \ && colcon test --packages-select $PACKAGE_NAME --event-handlers console_cohesion+All tests, including the characterization tests, pass unchanged.
Notes for reviewers
autoware::ndt_scan_matcher::NDTScanMatchertoautoware::ndt_scan_matcher::NdtScanMatcherNode. The executable nameautoware_ndt_scan_matcher_nodeis unchanged. Autoware launches the node through this package'sndt_scan_matcher.launch.xml, which starts the executable, so the launch files are not affected. Anyone loading the plugin by name into a container would need the new name.Possible Impact Scope
(20th Nov. 2026) Should be none for
autowarefoundation'sautoware_launchandautoware_core:autoware_launchside,autoware_ndt_scan_matcheris launched as follows(Reference)autoware_coreside, theautoware_ndt_scan_matcher_nodeexecutable is used (not component pluginautoware::ndt_scan_matcher::NDTScanMatcher) as follows (Reference)Interface changes
Component plugin name:
autoware::ndt_scan_matcher::NDTScanMatcher→autoware::ndt_scan_matcher::NdtScanMatcherNode. No topic or parameter changes.Effects on system behavior (in entire Autoware)
As above the plugin name changed:
autoware::ndt_scan_matcher::NDTScanMatcher→autoware::ndt_scan_matcher::NdtScanMatcherNode. All places that are usingautoware::ndt_scan_matcher::NDTScanMatcherneed to apply the fix for launch file.