ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Not getting autocomplete

asked 2023-06-04 00:36:58 -0600

nyck3333 gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-04 11:08:19 -0600

130s gravatar image

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
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-06-04 00:36:58 -0600

Seen: 282 times

Last updated: Jun 04 '23