Is there an ament version of catkin_topological_order?
I need to be able to get the package names in ament contained in some directory (not using colcon) as I want this for use in an ament_lint script (and therefore it shouldn't depend on colcon). I haven't found anything in the documentation about this use case.
Aditional context:
Specifically, I need to answer the question "What packages are defined in a given repository (recursive search)?"
I'm not trying to answer any question about the environment (like where packages are installed) so ament_index doesn't help me. I'm specifically looking for something to recursively crawl a path and parse package.xml files for package names.
I've found that colcon list --base-paths <repo_path>
gives the same functionality. However I don't believe that will work for me either as I'm trying to contribute a PR to ament_lint
.
What do you mean by
in ament
? Do you mean in the ament resource index? Have you seen the design of how packages are recorded in the resource index? https://github.com/ament/ament_cmake/...ament_index
does not provide the functionality I'm looking for (as far as I can tell). I've updated my question to provide more context.