Ask Your Question
0

Problem package tutorial

asked 2014-10-21 09:51:38 -0600

JacoPisa gravatar image

updated 2014-10-21 10:59:02 -0600

ahendrix gravatar image

Hi, after the creation of my beginner_tutorials package:

catkin_create_pkg beginner_tutorials std_msgs rospy roscpp
Created file beginner_tutorials/CMakeLists.txt
Created file beginner_tutorials/package.xml
Created folder beginner_tutorials/include/beginner_tutorials
Created folder beginner_tutorials/src
Successfully created files in /home/jacopo/catkin_ws/beginner_tutorials. Please adjust the values in package.xml.

if i use for example the rospack find, it say me this:

rospack find beginner_tutorials
[rospack] Error: stack/package beginner_tutorials not found

where is the problem??

Jacopo

edit retag flag offensive close merge delete

Comments

Did you build your project with catkin_make?

If yes, have you sourced the workspace?

source ~/catkin_ws/devel/setup.bash

EDIT: fixed path

Gary Servin gravatar imageGary Servin ( 2014-10-21 11:24:53 -0600 )edit

I believe Gary's command should actually have said source ~/catkin_ws/devel/setup.bash. Also, your beginner_tutorials package should be in ~/catkin_ws/src/. It looks like you put it in the root of your workspace ~/catkin_ws/.

jarvisschultz gravatar imagejarvisschultz ( 2014-10-21 11:46:16 -0600 )edit

If your package is in the right spot, your setup.bash is properly sourced, and catkin_make built the package with no errors, and you are still having the issue, then you could try running the command rospack profile. That forces rebuilding of the cache that tells the system where packages are.

jarvisschultz gravatar imagejarvisschultz ( 2014-10-21 11:48:21 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-21 11:38:46 -0600

JacoPisa gravatar image

updated 2014-10-21 11:43:59 -0600

yes i made the catkin_make, if i use:

source beginner_tutorials/devel/setup.bash

it give me this:

source beginner_tutorials/devel/setup.bash
bash: beginner_tutorials/devel/setup.bash: No such file or directory

for create the package i've done exactly what the tutorial said, so:

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
cd ~/catkin_ws/src
catkin_create_pkg beginner_tutorials std_msgs rospy roscpp
edit flag offensive delete link more

Comments

can you try

source ~/catkin_ws/devel/setup.bash
Gary Servin gravatar imageGary Servin ( 2014-10-21 11:44:55 -0600 )edit

Please don't create answers to provide more information. In the future, add this extra information as an edit to your original question. Otherwise, people think your question is answered when it's really not.

jarvisschultz gravatar imagejarvisschultz ( 2014-10-21 11:49:14 -0600 )edit

ok sorry for the wrong type of posting.

you are right, dont know why but my ros put the beginner_tutorials in the root and not in src. now i've correct that and it works!

thank you guys and sorry for some mistakes

Jacopo

JacoPisa gravatar imageJacoPisa ( 2014-10-21 11:59:49 -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

Stats

Asked: 2014-10-21 09:51:38 -0600

Seen: 132 times

Last updated: Oct 21 '14