- 在/opt/ros/humble/setup.zsh中最后加上
# argcomplete for ros2 & colcon
eval "$(register-python-argcomplete3 ros2)"
eval "$(register-python-argcomplete3 colcon)"
- 在~/.zshrc中
source自己ws的source语句要放在
source /opt/ros/humble/setup.zsh
之前
- 打开新终端尝试即可
# argcomplete for ros2 & colcon
eval "$(register-python-argcomplete3 ros2)"
eval "$(register-python-argcomplete3 colcon)"
source /opt/ros/humble/setup.zsh
之前