Ask Your Question
0

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
4

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 setup.sh in your workspace. (setup.sh 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

Comments

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 imagecandidcypher ( 2014-10-10 11:18:11 -0600 )edit
1

Are you using a shell other than bash?

ahendrix gravatar imageahendrix ( 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 imagewouter_tnl ( 2014-10-20 03:56:22 -0600 )edit

Thanks guys! That makes a lot of sense.

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

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

2 followers

Stats

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

Seen: 1,694 times

Last updated: Oct 17 '14