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

rosdep error view is empty [closed]

asked 2013-06-20 16:58:14 -0600

AlphaSierra gravatar image

updated 2013-06-24 16:58:13 -0600

I'm attempting to go though this tutorial:

http://www.ros.org/wiki/ROS/Tutorials/CreatingPackage

I managed to successfully create the packages, however when I try and run

rospack depends1 beginner_tutorials

Then I got this error:

[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'

After doing both of those things nothing seems to be working. Does anyone know how to go about fixing this? It presents the error no matter what packages I try the command on.

Update:

That's got it. Thanks for the assistance. I'll update my answers in the future, thanks for reminding me!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-05-28 22:20:31.983322

2 Answers

Sort by ยป oldest newest most voted
3

answered 2013-06-22 20:08:49 -0600

Dirk Thomas gravatar image

updated 2013-06-24 12:05:04 -0600

You have likely skipped parts of the installation instructions: especially 1.5 of http://www.ros.org/wiki/groovy/Installation/Ubuntu#Initialize_rosdep

If you have executed the two command to initialize and update rosdep what was the output? Did they failed?

Update:

As your output shows you are calling "rosdep update" with sudo which makes it generate the rosdep database in the home folder of the user root and not in the home folder of your actual user. Just run "rosdep update" (without root) as suggested by the original error message and it should work.

edit flag offensive delete link more

Comments

I didn't miss that step while I was installing. Initializing and updating have never returned errors for me.

AlphaSierra gravatar image AlphaSierra  ( 2013-06-22 23:08:18 -0600 )edit

Can you post the output of the commands? And the content of the file /etc/ros/rosdep/sources.list.d/20-default.list as well as the listing of the folder ~/.ros/rosdep/sources.cache/.

Dirk Thomas gravatar image Dirk Thomas  ( 2013-06-23 08:07:47 -0600 )edit

See the answer below, the output was too long for a comment.

AlphaSierra gravatar image AlphaSierra  ( 2013-06-24 11:52:56 -0600 )edit
1

Please update your question in the future and not post it as an answer.

Dirk Thomas gravatar image Dirk Thomas  ( 2013-06-24 12:01:17 -0600 )edit

Running rosdep update removed my entire ros install.

meropis gravatar image meropis  ( 2022-10-21 06:44:01 -0600 )edit
1

answered 2013-06-24 11:52:20 -0600

AlphaSierra gravatar image

Here is the data you asked for:

vboxuser@debian:~$ sudo rm /etc/ros/rosdep/sources.list.d/20-default.list 
vboxuser@debian:~$ sudo rosdep init
Wrote /etc/ros/rosdep/sources.list.d/20-default.list
Recommended: please run

    rosdep update

vboxuser@debian:~$ sudo rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml
Hit https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml
Hit https://github.com/ros/rosdistro/raw/master/rosdep/base.yaml
Hit https://github.com/ros/rosdistro/raw/master/rosdep/python.yaml
Hit https://github.com/ros/rosdistro/raw/master/rosdep/ruby.yaml
Hit https://github.com/ros/rosdistro/raw/master/releases/fuerte.yaml
Ignore legacy gbpdistro "groovy"
Ignore legacy gbpdistro "hydro"
Query rosdistro index https://raw.github.com/ros/rosdistro/master/index.yaml
Add distro "groovy"
Add distro "hydro"
updated cache in /root/.ros/rosdep/sources.cache
vboxuser@debian:~$ cat /etc/ros/rosdep/sources.list.d/20-default.list
# os-specific listings first
yaml https://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml osx
yaml https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml gentoo

# generic
yaml https://github.com/ros/rosdistro/raw/master/rosdep/base.yaml
yaml https://github.com/ros/rosdistro/raw/master/rosdep/python.yaml
yaml https://github.com/ros/rosdistro/raw/master/rosdep/ruby.yaml
gbpdistro https://github.com/ros/rosdistro/raw/master/releases/fuerte.yaml fuerte
gbpdistro https://github.com/ros/rosdistro/raw/master/releases/groovy.yaml groovy
gbpdistro https://github.com/ros/rosdistro/raw/master/releases/hydro.yaml hydro
vboxuser@debian:~$ cat ~/.ros/rosdep/sources.cache/
cat: /home/vboxuser/.ros/rosdep/sources.cache/: No such file or directory
edit flag offensive delete link more

Comments

2

Please edit your question to add more information.

tfoote gravatar image tfoote  ( 2013-06-24 12:00:05 -0600 )edit

Question Tools

Stats

Asked: 2013-06-20 16:58:14 -0600

Seen: 16,374 times

Last updated: Jun 24 '13