New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ros2 pkg executables #23
Conversation
Related to this: this function would be very useful to have available for launchfiles (rather than https://github.com/ros2/turtlebot2_demo/pull/46/files#diff-cbb1fb4c24441aafc45b0e5bd453b316R37). |
The Python module |
I think it would be better if every package that has a launch file doesn't need to depend on the command line tool (doesn't make a whole lot of sense imo). So I would be in favor of a shared location for the logic and have both the launch files and command line tool use that. That being said, we can ticket it and fix it later. |
I agree with @wjwwood, I'm fine with adressing it now or later. As soon as we have consensus of the state it'll be in the beta I'll update the launchfiles accordingly |
All cli packages have an API module atm. A refactoring like this should be considered for after the beta 2. |
Waiting for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes lgtm, I haven't tried it. Maybe we should wait for one of the reporters to try it out.
code looks good, I'm about to try it with some changes depending on it. Will approve once it's tested |
Maybe it's me not understanding what the initial request was but I was expecting a list of executable names not their absolute path. I think this should be either
I'd vote for the first one |
Getting from the full path to the filename is trivial. Getting from the filename to the full path is not possible (without using the code from these Python modules). Therefore I would argue this verb must be able to return the full paths. It would be ok to have an option to only return the filenames. Or showing the filename by default and having an option for showing the full path. |
👍 |
Added in 10f3be9ced31ce7c2cd954ae862e897afdeb7dfa. Note when printing the basenames of the executables across all packages they are sorted by package name and only as a secondary criteria by the basename. Not sure if that should be a global sort instead. |
I think it does make sense to print them sorted by package name (I mean the current sorting scheme). I'm wondering if we have a way to hint the package it's coming from to the user ( it will make it easier to know what the corresponding ros2 run invocation would be). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and it works fine thanks for iterating! Except my question for the sorting of the list of all executables this looks good to me
The script could print each line as |
yeah that would be great |
10f3be9
to
05b8116
Compare
Please try the updated patch: 05b8116 |
New patch works fine. Do you think that the help or the output should add explaination of what the output means ? (I mean indicating that its in the form |
I would think it should be clear. Please feel free to propose anything specific. |
I don't have a great idea hence the question. Feel free to merge it as is and we can iterate on it if we find a clarification is needed and a good way to carry the additional information |
…ckage substitution (ros2#23) Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Fixes #21.
I ran the nosetests locally rather than triggering full CI builds.
Ready for review.