rosrun tab completion ignore certain directory

asked 2017-08-15 08:58:49 -0600

Hendrik Wiese gravatar image

Hi everyone,

I've got a problem with rosrun. I'm working on a company computer with Ubuntu 16.04. On this system the home folder of my user is located in a path like /home/companyname/username. I certainly have access to this path but not directly to /home/companyname. The result is that tab completion of rosrun always greets me with an error message like

[rospack] Warning: error while crawling /home/companyname: boost::filesystem::directory_iterator::construct: Permission denied: "/home/companyname"

and several other directories that I don't have access to.

Can I somehow teach rosrun to ignore particularly these paths where I know I don't have access?

Thank you

edit retag flag offensive close merge delete

Comments

1

I didn't think tab-completion would try to access directories outside your ROS_PACKAGE_PATH. What is your ROS_PACKAGE_PATH? Does it include /home/companyname ?

ahendrix gravatar image ahendrix  ( 2017-08-15 14:28:50 -0600 )edit

It does include /home/companyname once I source devel/setup.bash in order to activate the current catkin workspace which is in /home/companyname/username/somepath/catkin_ws somewhere. Before that the error does not occur.

Hendrik Wiese gravatar image Hendrik Wiese  ( 2017-08-16 03:56:19 -0600 )edit