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

Question about creating a package tutorial

asked 2015-01-07 11:45:01 -0600

aadkinz gravatar image

I'm currently learning how to use ros right now and going through the tutorials and I'm on this one

Everything works fine until I get to step 5.1 when it comes to First Order Dependencies

I use catkin_create_pkg beginner_tutorials std_msgs rospy roscpp

However when I try the next command rospack depends1 beginner_tutorials, it doesn't work.

Here's is the long from my terminal

angelo@angelo-Satellite-S55t-B:~/catkin_ws/src$ 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/angelo/catkin_ws/src/beginner_tutorials. Please adjust the values in package.xml.
angelo@angelo-Satellite-S55t-B:~/catkin_ws/src$ rospack depends1 beginner_tutorials
[rospack] Error: no such package beginner_tutorials

I should be getting this instead, but I'm not


I'm currently using ROS Indigo and Ubuntu 14.04. I also realize there is a bug that's reported in the tutorial, but I believe the bug was referring to a segmentation fault.

What should I do next?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-01-07 12:22:38 -0600

Dirk Thomas gravatar image

It seems that the tutorials missed a crucial step. Before you are able to use your ROS package you need to build the workspace and also source the generated setup file. This will especially add you source folder to the ROS_PACKAGE_PATH.

I have updated the tutorial:

Please try it with the newly added step:

edit flag offensive delete link more


Ok that worked.


aadkinz gravatar image aadkinz  ( 2015-01-07 13:35:22 -0600 )edit

Question Tools

1 follower


Asked: 2015-01-07 11:45:01 -0600

Seen: 260 times

Last updated: Jan 07 '15