Skip to content

Updated deprecated ament_index_cpp API - #3011

Merged
ahcorde merged 2 commits into
rollingfrom
ahcorde/rolling/update_ament_index_cpp_api
Dec 23, 2025
Merged

ahcorde merged 2 commits into
rollingfrom
ahcorde/rolling/update_ament_index_cpp_api

Conversation

@ahcorde

@ahcorde ahcorde commented Dec 18, 2025

Copy link
Copy Markdown
Contributor

Related with ament/ament_index#104

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

ahcorde commented Dec 18, 2025

Copy link
Copy Markdown
Contributor Author

@ahcorde

ahcorde commented Dec 19, 2025

Copy link
Copy Markdown
Contributor Author

@jmachowinski

Copy link
Copy Markdown
Collaborator

As stated in ament/ament_index#104 I don't like the return type of the new API.
I find that the usage of std::pair instead of a custum struct with good named members reduces the readability of the code a lot.
E.g.

std::vector<std::string> lines = rcpputils::split(result.second, '\n', true);

is way less readable than

std::vector<std::string> lines = rcpputils::split(result.content, '\n', true);

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

ahcorde commented Dec 23, 2025

Copy link
Copy Markdown
Contributor Author
  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde
ahcorde merged commit 6cbb994 into rolling Dec 23, 2025
@ahcorde
ahcorde deleted the ahcorde/rolling/update_ament_index_cpp_api branch December 23, 2025 09:55
bartalor pushed a commit to bartalor/rclcpp that referenced this pull request Jul 15, 2026
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
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.

4 participants