Robotics StackExchange | Archived questions

rosrun tab completion ignore certain directory

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

Asked by Hendrik Wiese on 2017-08-15 08:58:49 UTC

Comments

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 ?

Asked by ahendrix on 2017-08-15 14:28:50 UTC

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.

Asked by Hendrik Wiese on 2017-08-16 03:56:19 UTC

Answers