Ask Your Question
0

roscd: No such package/stack 'turtle'

asked 2019-03-01 15:38:51 -0500

willydlw gravatar image

updated 2019-03-01 16:00:50 -0500

gvdhoorn gravatar image

I am following the Navigating the ROS file system tutorial and have followed the prior tutorials in order. Everything has worked correctly until the step

roscd turtle

returns

roscd: No such package/stack 'turtle'

This command was run from /opt/ros/melodic/share/roscpp_tutorials directory. I am in that directory as a result of following the prior commands.

Operating system: Ubuntu 18.04, kernel 4.15.0-45-generic ROS version: melodic

Tutorial link: http://wiki.ros.org/ROS/Tutorials/Nav...

env | grep ROS produces the following:

ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=melodic
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-03-01 16:11:03 -0500

They aren't asking you to run roscd turtle... They are demonstrating how TAB completion works. They want you to type roscd turtle and then hit TAB twice to see all packages that start with the word turtle. They eventually want you to run roscd turtlesim/ which should change directory to the turtlesim package's root directory.

The "No such package/stack" error is because you are trying to change to the root directory of a package called turtle, but there is no package called turtle.

edit flag offensive delete link more

Comments

Guess I should have been more patient. I type roscd turtle and press the tab key once, nothing happens. I then hit the enter key and got that message. If I press the tab key twice I do get the list. Your answer helped me to be more patient and pay closer attention. Thank you.

willydlw gravatar imagewillydlw ( 2019-03-01 16:26:27 -0500 )edit

Glad everything worked out! If your question is answered, it would be great if you marked this as the correct answer.

jarvisschultz gravatar imagejarvisschultz ( 2019-03-01 17:48:44 -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: 2019-03-01 15:38:51 -0500

Seen: 251 times

Last updated: Mar 01