Not getting autocomplete
I'm taking Ros2 for Beginners by Edouard Renard on O'Reilly (also on Udemy) and he says if I have 3 lines in my .bashrc I should be getting autocomplete for ROS2 commands in the terminal but I am not.
```
to use ROS
source /opt/ros/humble/setup.bash
to use colcon to build packages
source /usr/share/colcon_argcomplete/hook/colcon>
to use the created ws
source ~/ros2_ws/install/setup.bash ``` I'm not sure if my comments are correct but those line are.
Asked by nyck3333 on 2023-06-04 00:36:58 UTC
Answers
Make sure ros2cli package, which provides ros2
command capability, is installed. E.g. on my Ubuntu Focal with ROS Galactic:
# apt-cache policy ros-$ROS_DISTRO-ros2cli
ros-galactic-ros2cli:
Installed: 0.13.5-1focal.20221207.074558
Candidate: 0.13.5-1focal.20221207.074558
If doing so doesn't solve, please edit your question to provide more info e.g.
- OS version by
lsb_release -a
- Type of shell by
echo $0
Asked by 130s on 2023-06-04 11:08:19 UTC
Comments