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

[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' after Building a catkin workspace and sourcing the setup file

asked 2020-12-11 08:37:43 -0500

Mahsoub gravatar image

updated 2020-12-11 11:22:53 -0500

while walking through creating Package tutorials and using the catkin_create_pkg script to create a new package called 'beginner_tutorials' which depends on std_msgs, roscpp, and rospy

$ catkin_create_pkg beginner_tutorials std_msgs rospy roscpp

then Building a catkin workspace and sourcing the setup file

$ cd ~/catkin_ws
$ catkin_make
$ . ~/catkin_ws/devel/setup.bash

while reviewing package dependencies with the rospack tool

$ rospack depends1 beginner_tutorials

the following rspack error was appeared

[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-12-11 10:24:26 -0500

danambrosio gravatar image

Looks like you forgot to initialize and update rosdep, summarized instructions from wiki.ros.org/rosdep:

sudo apt-get install python-rosdep
sudo rosdep init
rosdep update
edit flag offensive delete link more

Question Tools

Stats

Asked: 2020-12-11 08:37:43 -0500

Seen: 240 times

Last updated: Dec 11 '20