Skip to content

fix(autoware_vehicle_info_utils): replace deprecated share-directory API in test for Lyrical - #1

Merged
mdlopezme merged 1 commit into
art-lyricalfrom
moises/lyrical
Sep 25, 2026
Merged

mdlopezme merged 1 commit into
art-lyricalfrom
moises/lyrical

Conversation

@mdlopezme

@mdlopezme mdlopezme commented Sep 25, 2026 •

Copy link
Copy Markdown

Description

This makes autoware_vehicle_info_utils' unit test compile on ROS 2 Lyrical.

autoware_cmake 1.4.0 compiles with -Werror. On Lyrical, ament_index_cpp::get_package_share_directory() is deprecated in favour of get_package_share_path(), which returns a std::filesystem::path. The test called the deprecated function to find its param file, so the package failed to build whenever BUILD_TESTING=ON.

The test now builds that path with get_package_share_path("autoware_vehicle_info_utils") / "config/vehicle_info.param.yaml".

This is a test-only change; the library itself is untouched.

Related links

  • The ART race_common migration to ROS 2 Lyrical (awsim profile): the simulator depends on autoware_vehicle_info_utils.
  • Upstream autowarefoundation/autoware_core main still has the deprecated call, so this change could be offered upstream too.

How was this PR tested?

The environment was Ubuntu 26.04, ROS 2 Lyrical, GCC 15.2, CMake 4.2 and autoware_cmake 1.4.0.

  • colcon build --packages-select autoware_vehicle_info_utils (Release, BUILD_TESTING=ON) passes.
  • colcon test: 42 tests, 0 errors, 0 failures, 8 skipped.
  • It also builds as part of race_common's make awsim (all 47 packages).

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions

Copy link
Copy Markdown

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@mdlopezme mdlopezme changed the title fix(test_vehicle_info_utils): update include for package share path r… fix(autoware_vehicle_info_utils): replace deprecated share-directory API in test for Lyrical Sep 25, 2026
@mdlopezme
mdlopezme merged commit ca29e6f into art-lyrical Sep 25, 2026
23 of 25 checks passed
@mdlopezme
mdlopezme deleted the moises/lyrical branch September 25, 2026 03:18
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.

1 participant