ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

tab completion

asked 2014-10-10 10:24:17 -0600

candidcypher gravatar image

I am on Ubuntu 12.04 running Hydro and with roscd I can't tab complete. Is there something wrong with my install or is that just not a feature available with the ROS file navigation tools.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-10-10 10:58:04 -0600

ahendrix gravatar image

roscd should tab-complete ROS package names.

If this isn't working, you should check:

  • That you're sourcing the setup.bash and not in your workspace. ( is for posix-compliant shells that don't have any fancy features.)
  • That your ROS_PACKAGE_PATH and CMAKE_PREFIX_PATH are set properly (The setup files should do this automatically when you source them, but there's always a possibility that something is overwriting them later)
edit flag offensive delete link more


Yeah, my source is correct: $source /opt/ros/hydro/setup.bash Not sure what is preventing it... Just strange. Thanks for the quick feedback!

candidcypher gravatar image candidcypher  ( 2014-10-10 11:18:11 -0600 )edit

Are you using a shell other than bash?

ahendrix gravatar image ahendrix  ( 2014-10-10 11:21:41 -0600 )edit

Note that ahendrix was referring to the setup.bash in your catkin workspace (i.e. "source ~/catkin_ws/devel/setup.bash"), which is another script than the one you mention (in /opt/ros/). You need to run BOTH scripts (first /opt/ros/... then the one in your catkin workspace) to get it to work.

wouter_tnl gravatar image wouter_tnl  ( 2014-10-20 03:56:22 -0600 )edit

Thanks guys! That makes a lot of sense.

candidcypher gravatar image candidcypher  ( 2014-10-20 10:20:30 -0600 )edit

answered 2014-10-17 09:34:46 -0600

candidcypher gravatar image

After thinking about it, and again I apologize for being such a noob, but could it be that roscd only navigates within ROS packages once you have navigated to them? I believe I may have been misusing roscd to navigate to a directory I created in a workspace but it wasn't fully added to my packages.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2014-10-10 10:24:17 -0600

Seen: 3,007 times

Last updated: Oct 17 '14