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

No such package/stack 'beginner_tutorials

asked 2014-03-22 07:47:51 -0500

Morpheus gravatar image

updated 2014-03-23 16:18:37 -0500

I am migrating from ROS Electric, to ROS Hydro. I am struggling with Catkin. I have my Catkin and Beginner_tutorials directories setup. But when I type roscd beginner_tutorials, I get No such package/stack 'beginner_tutorials. I know that I probably do not have it sourced properly. I have been around and around with the tutorials. But still stuck.

Thank you, Morpheus

edit retag flag offensive close merge delete

Comments

Have you source the setup.bash file in catkin/build (or devel I don't have my computer with me and I don't remember) ? I asked a similar question and I didn't source that one.

Maya gravatar image Maya  ( 2014-03-22 11:04:18 -0500 )edit

I can roscd anything in my /opt/ros/hydro directory, but roscd will not find any ros directories in my home directory unless I source it. Morpehus

Morpheus gravatar image Morpheus  ( 2014-03-24 00:50:16 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2014-03-23 03:14:07 -0500

demmeln gravatar image

updated 2014-03-29 10:48:52 -0500

If you have installed ROS hydro, sourced its setup file (/opt/ros/hydro/setup.*sh), the created a new workspace for the tutorials (as described in the wiki), and then run catkin_make at least once, you should be able to find a setup.*sh in the devel folder of your workspace.

If that doesnt help, can you describe how exactly you have your "Catkin and Beginner_tutorials directories setup"?

Edit

I suggest removing everything ROS related from your .bashrc and just place the line source ~/ros_workspace/devel/setup.bash. With this setup you have to be careful however. When you decide to create another workspace in the future, it will overlay ~/ros_workspace and not /opt/ros/hydro/ if you do not manually source /opt/ros/hydro/setup.bash manually before the first call to catkin_make in your new workspace.

edit flag offensive delete link more

Comments

It maybe how my bash.rc is configured. Here is the last part of my bash.rc file: source /opt/ros/hydro/setup.bash export ROS_WORKSPACE=~/ros_workspace export ROS_PACKAGE_PATH=~/ros:${ROS_PACKAGE_PATH} #export ROS_PACKAGE_PATH=~/ros_workspace:$ROS_PACKAGE_PATH #export ROS_HOSTNAME=localhost #export ROS_MASTER_URI=http://localhost:11311

Morpheus gravatar image Morpheus  ( 2014-03-23 16:14:37 -0500 )edit

With catkin you shouldn't manually set ROS_WORKSPACE or ROS_PACKAGE_PATH. Just source the setup.bash of the devel space of your workspace (`source ~/ros_workspace/devel/setup.bash`)

demmeln gravatar image demmeln  ( 2014-03-23 16:57:55 -0500 )edit

Are you saying that I need to comment out ROS_WORKSPACE & ROS_PACKAGE_PATH in my bash.rc file?

Morpheus gravatar image Morpheus  ( 2014-03-23 17:04:51 -0500 )edit

In hydro, working only with catkin packages, there is usually no need to set any of these environment variables manually. If you have set up your workspace correctly, you need to only source one setup.*sh file, namely the one from your devel or install space of that workspace.

demmeln gravatar image demmeln  ( 2014-03-28 01:28:13 -0500 )edit
0

answered 2014-03-29 01:54:19 -0500

Morpheus gravatar image

I can roscd beginner_tutorials by going to my catkin_ws, then sourcing devl/setup.bash everytime. Isn't there away to edit my bash.rc so that I don't have to do this everytime?

edit flag offensive delete link more

Comments

Yes there is. But, this is a question and answer site not a discussion forum. Please open a new question to get your answer.

joq gravatar image joq  ( 2014-03-29 04:26:06 -0500 )edit

Kind of figured I would get in trouble on that one. My apologizes. Morpheus

Morpheus gravatar image Morpheus  ( 2014-03-29 16:44:23 -0500 )edit
-1

answered 2014-03-22 20:13:51 -0500

zsbhaha gravatar image

Recompile the code with catkin_make

edit flag offensive delete link more

Comments

I tried catkin_make, but I still have to source it each time to recognize roscd beginner_tutorials.

Morpheus gravatar image Morpheus  ( 2014-03-31 16:34:58 -0500 )edit

Question Tools

Stats

Asked: 2014-03-22 07:47:51 -0500

Seen: 4,055 times

Last updated: Mar 29 '14