Ask Your Question
0

Question about creating a package tutorial

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

aadkinz gravatar image

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

http://wiki.ros.org/ROS/Tutorials/Cre...

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

std_msgs
rospy
roscpp

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
1

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

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: http://wiki.ros.org/action/diff/ROS/T...

Please try it with the newly added step: http://wiki.ros.org/ROS/Tutorials/Cre...

edit flag offensive delete link more

Comments

Ok that worked.

Thanks!

aadkinz gravatar image aadkinz  ( 2015-01-07 13:35:22 -0500 )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: 2015-01-07 11:45:01 -0500

Seen: 180 times

Last updated: Jan 07 '15