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

rospack find foobar

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

fabbro gravatar image

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

Hi,

I am trying to do the tutorial : http://wiki.ros.org/ROS/Tutorials/Cre...

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?

thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

gvdhoorn gravatar image

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

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
catkin_make
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

Comments

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 image fabbro  ( 2014-10-10 08:25:17 -0500 )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 image fabbro  ( 2014-10-10 08:26:02 -0500 )edit

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

gvdhoorn gravatar image gvdhoorn  ( 2014-10-10 08:41:46 -0500 )edit

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

I am in this folder

/home/fschiano/catkin_ws

and I do first :

source /opt/ros/indigo/setup.bash

then

rospack profile

and then

rospack find foobar

catkin_ws folder has to stay in the ros folder?

fabbro gravatar image fabbro  ( 2014-10-10 09:11:23 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 845 times

Last updated: Oct 10 '14