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

roscd: No such package/stack 'beginner_tutorials'

asked 2013-06-12 22:43:40 -0600

Natti gravatar image

updated 2014-01-28 17:16:53 -0600

ngrennan gravatar image

Hi!

I have found a bunch of questions about the same issue, but I don't think my problem is the same.

So basically, I am super new to ROS and was going through tutorial page ros.org/wiki/ROS/Tutorials/CreatingPackage

I created a package using: ~/catkin_ws/src$ catkin_create_pkg beginner_tutorials std_msgs rospy roscpp

It gave me next lines:

Created file beginner_tutorials/package.xml Created file beginner_tutorials/CMakeLists.txt Created folder beginner_tutorials/include Created folder beginner_tutorials/src Successfully created files in /home/natalia/catkin_ws/src/beginner_tutorials. Please adjust the values in package.xml.

Then I try command like roscd beginner_tutorials and it says: roscd: No such package/stack 'beginner_tutorials'

I have checked my path with echo $ROS_PACKAGE_PATH and got: /home/natalia/catkin_ws/src:/opt/ros/groovy/share:/opt/ros/groovy/stacks

and beginner_tutorials folder is in src, so it seems that path is already correct.

Do you have any suggestions what might be wrong?


So after trying rospack profile --length=200 I got:

0.005637 /opt/ros/groovy/stacks

0.001263 /home/natalia/catkin_ws/src

0.001116 /opt/ros/groovy/stacks/navigation

0.000486 /opt/ros/groovy/stacks/simulator_gazebo

0.000481 /opt/ros/groovy/stacks/navigation_tutorials

0.000405 /opt/ros/groovy/stacks/visualization_tutorials

0.000317 /opt/ros/groovy/stacks/common_tutorials

0.000285 /opt/ros/groovy/stacks/executive_smach

0.000198 /opt/ros/groovy/stacks/physics_ode

0.000185 /opt/ros/groovy/stacks/geometry_tutorials

0.000167 /opt/ros/groovy/stacks/robot_model_tutorials

0.000109 /opt/ros/groovy/stacks/slam_gmapping

0.000107 /opt/ros/groovy/stacks/robot_model_visualization

0.000092 /opt/ros/groovy/stacks/documentation

0.000036 * /opt/ros/groovy/stacks/laser_pipeline

0.000034 * /opt/ros/groovy/stacks/common

So I think that there is nothing wrong with path? But I still cannot use roscd or rospack etc. to packages I create. However, it works fine for roscpp, for example.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
21

answered 2013-06-13 01:12:59 -0600

dornhege gravatar image

Maybe it's just a missing catkin_make and source devel/setup.bash, although given the ROS_PACKAGE_PATH it should work.

You could try something like rospack profile --length=200 to see what it searches.

edit flag offensive delete link more

Comments

2

Ah, tried catkin_make and source devel/setup.bash and now it works!! Thank you ^__^

Natti gravatar image Natti  ( 2013-06-13 16:01:53 -0600 )edit

@Natti please accept this answer using the checkmark at the left.

tfoote gravatar image tfoote  ( 2013-06-13 17:42:13 -0600 )edit

I had the same problem. For step by step beginners: $ cd ~/catkin_ws/ $ catkin_make this will traverse the packages and add a subdirectory. followed by $ source devel/setup.bash

Andres gravatar image Andres  ( 2013-07-27 22:39:54 -0600 )edit
2

You can also create an alias to run all of the commands:

alias cat_make='cd ~/catkin_ws/ && catkin_make && source devel/setup.bash'

so all the commands will be run by just typing cat_make (or another alias name you choose)

Allison gravatar image Allison  ( 2015-03-06 22:11:27 -0600 )edit

Thanks a lot. When i set catkin_make and source devel/setup.bash worked.

Tiago_Dev_Br gravatar image Tiago_Dev_Br  ( 2022-06-29 16:42:46 -0600 )edit
0

answered 2013-09-16 10:52:54 -0600

I have followed the tutorials and have the same issue. Is adding the ~//catkin_ws/src to ROS_PACKAGE_PATH a manual step?

edit flag offensive delete link more

Comments

1

If you source the `setup.bash` file in ~/catkin_ws/devel/ it should automatically set ROS_PACKAGE_PATH (assuming your workspace was created correctly).

jarvisschultz gravatar image jarvisschultz  ( 2013-09-16 16:54:08 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-06-12 22:43:40 -0600

Seen: 42,122 times

Last updated: Sep 16 '13