add more commands - #3
Conversation
There was a problem hiding this comment.
is it on purpose that none of the new packages run the pep257 test ?
There was a problem hiding this comment.
Yes, pep257 linting is provided by a flake8 plugin.
There was a problem hiding this comment.
I don't think we ever installed this plugin because not available from debian packages (only via pip like import-order). Can't find any trace of it in the ci scripts either... Is there a PR I missed that was adding it ?
There was a problem hiding this comment.
Should we install flake8-docstrings in the CI jobs then (as we do for flake8-import-order)? Or should we add pep257 tests explicitly?
There was a problem hiding this comment.
flake8-docstrings is not available via apt so I'd lean towards using pep257 explicitely as we do everywhere else. But I don't feel very strongly about it.
There was a problem hiding this comment.
Sounds good to me. I will add them for all packages in this repo.
There was a problem hiding this comment.
I updated this PR and created #5 for the already merged packages.
7d451da to
ba4e596
Compare
|
That's pretty cool! While testing a few things surprised me:
Same terminal |
|
Regarding |
ba4e596 to
a6da23a
Compare
mikaelarguedas
left a comment
There was a problem hiding this comment.
Great! thanks foor iterating on this, lgtm
|
Note: I tried to install my executables in |
|
Did you install the executables in |
|
I got it to work with this patch to diff --git a/demo_nodes_cpp/CMakeLists.txt b/demo_nodes_cpp/CMakeLists.txt
index 0e4f484..f6b0034 100644
--- a/demo_nodes_cpp/CMakeLists.txt
+++ b/demo_nodes_cpp/CMakeLists.txt
@@ -22,7 +22,7 @@ function(custom_executable subfolder target)
"rcutils"
"std_msgs")
install(TARGETS ${target}
- DESTINATION bin)
+ DESTINATION lib/${PROJECT_NAME})
endfunction()
# Tutorials of Publish/Subscribe with Topics |
wjwwood
left a comment
There was a problem hiding this comment.
lgtm, with one error case that could be handled better
There was a problem hiding this comment.
I get this:
% ros2 run taco talker
Failed to load entry point 'service': No module named 'ros2service.command.service'
Traceback (most recent call last):
File "/Users/william/ros2_ws/install/bin/ros2", line 11, in <module>
load_entry_point('ros2cli', 'console_scripts', 'ros2')()
File "/Users/william/ros2_ws/build/ros2cli/ros2cli/cli.py", line 64, in main
rc = extension.main(parser=parser, args=args)
File "/Users/william/ros2_ws/build/ros2run/ros2run/command/run.py", line 50, in main
executable_name=args.executable_name)
File "/Users/william/ros2_ws/build/ros2run/ros2run/api/__init__.py", line 45, in get_executable_path
paths = get_executable_paths(node=node, package_name=package_name)
File "/Users/william/ros2_ws/build/ros2run/ros2run/api/__init__.py", line 30, in get_executable_paths
base_path = os.path.join(prefix_path, 'lib', package_name)
File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/posixpath.py", line 78, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
There was a problem hiding this comment.
Fixed: 1232edf609ceaef883221a503ec35a34b6343731
There was a problem hiding this comment.
Now it says No executable found, which to be more accurate, the package was not found. It would be better if it said that.
% ros2 run taco talker
No executable found
1232edf to
c83348d
Compare
c83348d to
ff62530
Compare
This PR adds some more commands:
ros2 msgwith the verbslist,package,packages, andshowros2 srvwith the verbslist,package,packages, andshowros2 runThe CI builds are again not really saying much (beside that the linter tests for the new code are passing):
Ready for review.