refactor(autoware_pointcloud_preprocessor/launch): use launch substitution instead of get_package_share_directory#12395
Merged
paulsohn merged 2 commits intoautowarefoundation:mainfrom Apr 9, 2026
Conversation
Signed-off-by: Taeseung Sohn <taeseung.sohn@tier4.jp>
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12395 +/- ##
===========================================
- Coverage 18.73% 14.12% -4.62%
===========================================
Files 1904 182 -1722
Lines 129993 11718 -118275
Branches 43951 4484 -39467
===========================================
- Hits 24355 1655 -22700
+ Misses 85645 8809 -76836
+ Partials 19993 1254 -18739
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Use high-level API:
FindPackageSharefromlaunch.substitutionsandPathJointSubstitutionfromlaunch_ros.substitutionsinlaunch.pyfiles, instead of rawament_index_pythonandos.path.join.This PR aims to follow proper (opaque) semantics of launcher system, separating from the python semantics itself.
Related links
autowarefoundation/autoware_launch#1762
autowarefoundation/autoware_launch#1799
How was this PR tested?
Ran all three with defaults:
$ ros2 launch autoware_pointcloud_preprocessor pointcloud_densifier.launch.py $ ros2 launch autoware_pointcloud_preprocessor polygon_remover.launch.py $ ros2 launch autoware_pointcloud_preprocessor preprocessor.launch.py # errorsOnly the last one errors but this is likely irrelevant to this PR. It fails on main as well. I won't do the fix in this PR.
The other two launcher do not have any launcher-side errors.
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None. When launched with standard
ros2 launch, this should give identical result before and after the PR.