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

Revision history [back]

click to hide/show revision 1
initial version

My catkin structure is:

hpe@hpe-P5Q-PRO:~/catkin_ws$ ls
beginner_tutorials  build  devel  src

Packages (such as beginner_tutorials) should be placed inside the src directory. By default, that is the only place catkin will look for them, and if you build your workspace as it is right now, no packages should be found (catkin_make probably finished rather quickly, and without compiling any files).

Helpful diagram (from here):

Typical ROS workspace layout

This layout is also suggested / recommended in the Creating a ROS Package tutorial, in the Packages in a catkin Workspace section. Perhaps you've missed the first sentence under Creating a catkin Package:

First change to the source space directory of the catkin workspace you created in the Creating a Workspace for catkin tutorial [..]

See if after moving the beginner_tutorials dir, rebuilding your workspace and re-sourcing devel/setup.bash the rospack find .. command succeeds.