ros2 argument completion #1676
Replies: 1 comment 3 replies
|
It looks like the bash completion comes from https://github.com/colcon/colcon-argcomplete . However that isn't part of the ROS Index (https://index.ros.org/?pkgs=argcomplete&search_packages=true) and we don't have it as a recipe in OpenEmbedded (https://layers.openembedded.org/layerindex/branch/master/recipes/?q=argcomplete) I would gladly accept a recipe for colcon-argcomplete in meta-ros-common. ros2cli does exist in both ROS Index and has a recipe in each ROS distro layer (eg. meta-ros-jazzy). However, I suspect that it is not being sourced automatically. I see signs that folks need to add this to their .bashrc or .zshrc: argcomplete for ros2 & colconeval "$(register-python-argcomplete ros2)" However, I suspect that it should be sufficient to just have ros2cli installed. If it is installed and doesn't work, I wonder if it is neglecting to install the argcomplete file. |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
In my build, the argument completion for ros2 does not work. I have bash completion for all kinds of other services like nmcli or journalctl so the mechanism should work. I install "bash-completion bash-completion-extra" and also added "bash-completion-pkgs" to the features. I am using the jazzy scarthgap layer.
Should it work or how can I test it?
All reactions