Ask Your Question

rospack find foobar

asked 2014-10-10 03:18:04 -0600

fabbro gravatar image

updated 2014-10-10 04:05:20 -0600


I am trying to do the tutorial :

I did already:

 source /home/fschiano/catkin_ws/devel/setup.bash

And I am in the catkin_ws folder.

But when I give the command

rospack find foobar

I get the error:

[rospack] Error: package 'foobar' not found

How can I solve this?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-10-10 04:02:00 -0600

gvdhoorn gravatar image

updated 2014-10-10 13:50:14 -0600

Try a rospack profile (after you've sourced setup.bash).

If that doesn't work, make sure foobar actually is a ROS package (has a manifest: package.xml).

Also make sure there is no CATKIN_IGNORE file in the package directory.

Edit: your last comment does not correspond to what you wrote in your OP. Anyway, these steps should work (in a fresh terminal):

cd /home/fschiano/catkin_ws
source /opt/ros/indigo/setup.bash
source devel/setup.bash
# (this step is optional, only if the next step doesn't immediately work)
rospack profile
rospack find foobar

If rospack cannot find foobar then, something is wrong.

edit flag offensive delete link more


When I type rospack profile I get :

Full tree crawl took 0.014759 seconds.
Directories marked with (*) contain no manifest.  You may
want to delete these directories.
To get just of list of directories without manifests,
re-run the profile with --zombie-only
fabbro gravatar imagefabbro ( 2014-10-10 08:25:17 -0600 )edit

0.014213 /opt/ros/indigo/share 0.000038 * /opt/ros/indigo/share/doc 0.000005 * /opt/ros/indigo/share/doc/liborocos-kdl

I am in the ~/catkin_ws

fabbro gravatar imagefabbro ( 2014-10-10 08:26:02 -0600 )edit

great. Now again try rospack find foobar (in the same terminal).

gvdhoorn gravatar imagegvdhoorn ( 2014-10-10 08:41:46 -0600 )edit

I always get : [rospack] Error: package 'foobar' not found

I am in this folder


and I do first :

source /opt/ros/indigo/setup.bash


rospack profile

and then

rospack find foobar

catkin_ws folder has to stay in the ros folder?

fabbro gravatar imagefabbro ( 2014-10-10 09:11:23 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2014-10-10 03:18:04 -0600

Seen: 488 times

Last updated: Oct 10 '14