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

Rospack find problems

asked 2015-09-24 21:22:27 -0500

Morpheus gravatar image

updated 2015-09-25 04:29:09 -0500

gvdhoorn gravatar image

I am at the point that I may have to uninstall and reinstall ROS. I had ROS working fine, but now I am having some problems. When I try to run rospack find roscpp this is what I get:

leaf@leaf:~/catkin_ws$ rospack find cpp
[rospack] Warning: error while looking for /opt/ros/hydro/share/cmake_modules/CATKIN_IGNORE: boost::filesystem::status: Permission denied: "/opt/ros/hydro/share/cmake_modules/CATKIN_IGNORE"
[rospack] Warning: error while crawling /opt/ros/hydro/share/cmake_modules: boost::filesystem::directory_iterator::construct: Permission denied: "/opt/ros/hydro/share/cmake_modules"
[rospack] Warning: error while looking for /opt/ros/hydro/share/cmake_modules/rospack_nosubdirs: boost::filesystem::status: Permission denied: "/opt/ros/hydro/share/cmake_modules/rospack_nosubdirs"
[rospack] Warning: error while looking for /opt/ros/hydro/share/cmake_modules/manifest.xml: boost::filesystem::status: Permission denied: "/opt/ros/hydro/share/cmake_modules/manifest.xml"
[rospack] Warning: error while crawling /opt/ros/hydro/share/cmake_modules: boost::filesystem::directory_iterator::construct: Permission denied: "/opt/ros/hydro/share/cmake_modules"
[rospack] Warning: error while looking for /opt/ros/hydro/share/cmake_modules/CATKIN_IGNORE: boost::filesystem::status: Permission denied: "/opt/ros/hydro/share/cmake_modules/CATKIN_IGNORE"
[rospack] Warning: error while crawling /opt/ros/hydro/share/cmake_modules: boost::filesystem::directory_iterator::construct: Permission denied: "/opt/ros/hydro/share/cmake_modules"
[rospack] Warning: error while looking for /opt/ros/hydro/share/cmake_modules/rospack_nosubdirs: boost::filesystem::status: Permission denied: "/opt/ros/hydro/share/cmake_modules/rospack_nosubdirs"
[rospack] Warning: error while looking for /opt/ros/hydro/share/cmake_modules/manifest.xml: boost::filesystem::status: Permission denied: "/opt/ros/hydro/share/cmake_modules/manifest.xml"
[rospack] Warning: error while crawling /opt/ros/hydro/share/cmake_modules: boost::filesystem::directory_iterator::construct: Permission denied: "/opt/ros/hydro/share/cmake_modules"
[rospack] Error: stack/package cpp not found

But I get this when I :

leaf@leaf:~$ roscd roscpp
leaf@leaf:/opt/ros/hydro/share/roscpp$

My path looks ok :

leaf@leaf:~$ echo $ROS_PACKAGE_PATH
/home/leaf/catkin_ws/src:/opt/ros/hydro/share:/opt/ros/hydro/stacks

Any help would be much appreciated.

edit retag flag offensive close merge delete

Comments

[..] but now I am having some problems [..]

In addition to what @ahendrix asked, could you perhaps also think about what you changed (recently)? Did you install any additional packages? Did you do anything with cmake_modules you shouldn't have? Etc.

gvdhoorn gravatar image gvdhoorn  ( 2015-09-25 04:26:57 -0500 )edit
1

Also: you write you want to rospack find roscpp, but the error output you copy/pasted shows you ran rospack find cpp (note the missing ros prefix on cpp).

gvdhoorn gravatar image gvdhoorn  ( 2015-09-25 04:29:43 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-09-24 23:21:20 -0500

ahendrix gravatar image

It looks like the permission on /opt/ros/hydro/share/cmake_modules is wrong.

Try doing an ls -l on that directory and edit your question to include the results:

ls -l /opt/ros/hydro/share/cmake_modules
edit flag offensive delete link more

Comments

That was the problem. Some reason cmake_modules folder was gone on this machine, so I copied and pasted cmake_modules folder from another machine. But I didn't change permission to allow use of folders with the properties. After correcting permission everything seems to work fine. Thank you!

Morpheus gravatar image Morpheus  ( 2015-09-25 05:57:14 -0500 )edit

You should never directly modify the contents of /opt/ros; if cmake_modules was missing, you should have reinstalled it through the package manager. You probably still should. On Ubuntu: sudo apt-get install --reinstall ros-hydro-cmake-modules

ahendrix gravatar image ahendrix  ( 2015-09-25 13:32:39 -0500 )edit

Thanks again!

Morpheus gravatar image Morpheus  ( 2015-09-26 09:19:08 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-09-24 21:22:27 -0500

Seen: 863 times

Last updated: Sep 25 '15