Add functions for getting interface names and paths #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The implementation was copied from ros2/ros2cli (0de8f53) and then refactored (1ce5a76).
Since these functions are specific to rosidl, this package seems like a more appropriate place for them to live.
This will also let them be easier reused by several of the ros2cli packages (and potentially elsewhere in the future).
I'll follow-up shortly with a PR to ros2/ros2cli to make use of the implementation in this package.
I'm opening for visibility and early review while I add unit tests.(unit tests added)I should add that this should resolve many TODOs in the ros2cli repository, for example:
https://github.com/ros2/ros2cli/blob/80921ce1577277ef4a68184d6c2cba7d63c74b95/ros2topic/ros2topic/api/__init__.py#L60
https://github.com/ros2/ros2cli/blob/80921ce1577277ef4a68184d6c2cba7d63c74b95/ros2interface/ros2interface/api/__init__.py#L99
https://github.com/ros2/ros2cli/blob/80921ce1577277ef4a68184d6c2cba7d63c74b95/ros2interface/ros2interface/api/__init__.py#L124
https://github.com/ros2/ros2cli/blob/80921ce1577277ef4a68184d6c2cba7d63c74b95/ros2interface/ros2interface/api/__init__.py#L149
https://github.com/ros2/ros2cli/blob/80921ce1577277ef4a68184d6c2cba7d63c74b95/ros2interface/ros2interface/api/__init__.py#L162