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

Problem package tutorial

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

JacoPisa gravatar image

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

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 image Gary Servin  ( 2014-10-21 11:24:53 -0500 )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 image jarvisschultz  ( 2014-10-21 11:46:16 -0500 )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 image jarvisschultz  ( 2014-10-21 11:48:21 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

JacoPisa gravatar image

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

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 image Gary Servin  ( 2014-10-21 11:44:55 -0500 )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 image jarvisschultz  ( 2014-10-21 11:49:14 -0500 )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 image JacoPisa  ( 2014-10-21 11:59:49 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 10,479 times

Last updated: Oct 21 '14