While jumping from project to project you might want to know what resources are available for discoverability (plugins, config files or other custom resources).
And ament_index_python provide the exact tooling in order to do that. However this is yet another endpoint one user needs to know.
What do we think about having integration with ros2cli. And proposing a new package named ros2index doing exactly what ament_index_python proposes.
And Iād like to have this api also available from ros2cli for having one entrypoint for everything.
e.g.
$ ros2 index list
nav2_amcl__pluginlib__plugin
nav2_core__pluginlib__plugin
nav2_costmap_2d__pluginlib__plugin
nav2_mppi_controller__pluginlib__plugin
nav2_waypoint_follower__pluginlib__plugin
$ ros2 index get nav2_costmap_2d__pluginlib__plugin
nav2_costmap_2d /opt/ros/humble
nonpersistent_voxel_layer /opt/ros/humble
$ ros2 index get nav2_costmap_2d__pluginlib__plugin nav2_costmap_2d
/opt/ros/humble
<<<
share/nav2_costmap_2d/test/regression/order_layer.xml
share/nav2_costmap_2d/costmap_plugins.xml
>>>
And one to list the type of ressources one package index