refactor(autoware_ground_segmentation/launch, autoware_probabilistic_occupancy_grid_map/launch): use launch substitution instead of get_package_share_directory#12392
Merged
paulsohn merged 6 commits intoautowarefoundation:mainfrom Apr 3, 2026
Conversation
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Signed-off-by: Taeseung Sohn <taeseung.sohn@tier4.jp>
Signed-off-by: Taeseung Sohn <taeseung.sohn@tier4.jp>
b15253d to
ffeb6ba
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12392 +/- ##
==========================================
- Coverage 19.18% 19.12% -0.07%
==========================================
Files 1892 1890 -2
Lines 130117 129796 -321
Branches 46611 48073 +1462
==========================================
- Hits 24965 24823 -142
- Misses 85580 86099 +519
+ Partials 19572 18874 -698
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
badai-nguyen
approved these changes
Mar 31, 2026
Contributor
There was a problem hiding this comment.
confirmed no error when run
$ ros2 launch autoware_ground_segmentation scan_ground_filter.launch.py
$ ros2 launch autoware_probabilistic_occupancy_grid_map laserscan_based_occupancy_grid_map.launch.py
$ ros2 launch autoware_probabilistic_occupancy_grid_map multi_lidar_pointcloud_based_occupancy_grid_map.launch.py
$ ros2 launch autoware_probabilistic_occupancy_grid_map pointcloud_based_occupancy_grid_map.launch.py
LGTM (regarding autowaer_ground_segmentation)
Contributor
technolojin
approved these changes
Apr 3, 2026
xmfcx
pushed a commit
that referenced
this pull request
Apr 4, 2026
…occupancy_grid_map/launch): use launch substitution instead of get_package_share_directory (#12392) * refactor: use launch substitution instead of get_package_share_directory Signed-off-by: Taeseung Sohn <taeseung.sohn@tier4.jp> * use existing file for default Signed-off-by: Taeseung Sohn <taeseung.sohn@tier4.jp> --------- Signed-off-by: Taeseung Sohn <taeseung.sohn@tier4.jp>
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.Also, obsolote default of
updater_param_fileinperception/autoware_probabilistic_occupancy_grid_map/launch/laserscan_based_occupancy_grid_map.launch.pyis updated to"binary_bayes_filter_updater.param.yaml".This PR aims to follow proper semantics of launcher system which is open to the launcher-specific tooling / analysis, without handling the full python semantics itself.
Will make a separate PR for sensing-related refactor.
Related links
autowarefoundation/autoware_launch#1762
autowarefoundation/autoware_launch#1799
How was this PR tested?
Built and ran all four: no launcher-side error was found.
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.The only difference is that default value of
updater_param_fileis no longer"updater.param.yaml"(which is incorrect, as the file does not exist) but existing"binary_bayes_filter_updater.param.yaml".