Skip to content

Use get_package_share_path - #391

Merged
ahcorde merged 2 commits into
rollingfrom
ahcorde/rolling/get_package_share_path
Feb 25, 2026
Merged

ahcorde merged 2 commits into
rollingfrom
ahcorde/rolling/get_package_share_path

Conversation

@ahcorde

@ahcorde ahcorde commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator

Related with ament/ament_index#112

FYI @Timple

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
@ahcorde

ahcorde commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator Author

Comment on lines +182 to +183
std::filesystem::path pkgPath;
ament_index_cpp::get_package_share_directory(package, pkgPath);
ament_index_cpp::get_package_share_path(package);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this look like this?

Suggested change
std::filesystem::path pkgPath;
ament_index_cpp::get_package_share_directory(package, pkgPath);
ament_index_cpp::get_package_share_path(package);
std::filesystem::path pkgPath = ament_index_cpp::get_package_share_path(package);

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
@ahcorde

ahcorde commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator Author

@ahcorde
ahcorde merged commit b9df4e4 into rolling Feb 25, 2026
1 check passed
@ahcorde
ahcorde deleted the ahcorde/rolling/get_package_share_path branch February 25, 2026 09:53
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.

3 participants