getting ERROR: Rosdep cannot find all required resources to answer your query after using "rosedep install <package>"
Hello, I'm new to ROS and I'm trying to find my way around. After reading the ROS tutorials I sat to my own project, for that project I downloaded packages from GitHub. After doing git clone https://github.com/<package_path>.git
I tried to do rosdep install <package>
but all I got was that ERROR msg:
ERROR: Rosdep cannot find all required resources to answer your query
Missing resource <package>
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/user/ros/ros-pkg
ROS path [2]=/another/path
I tried to search online for a solution to that problem but couldn't find one.
Thank you for your help!
Asked by m.kleiner on 2020-03-28 09:20:18 UTC
Answers
You're likely to want to use the following command instead:
rosdep update
rosdep install --from-paths /path/to/catkin_ws/src --ignore-src -y --rosdistro=kinetic
The first updates your rosdep
database, the second command looks in the src space for ROS packages, gathers all their dependencies, removes the ones satisfied by packages in your source space and then asks apt
to install everything not present.
Additionally:
ROS path [1]=/home/user/ros/ros-pkg
from this it's not entirely clear to me whether you've actually created a Catkin workspace.
You'll want to create one. See Creating a workspace for catkin for some guidance.
Asked by gvdhoorn on 2020-03-28 11:46:58 UTC
Comments
Hey, I tried to run these commands, But unfortunately I got the same error.
compm@compm-VirtualBox:~/catkin_ws$ rosdep install baxter_demos
ERROR: Rosdep cannot find all required resources to answer your query
Missing resource baxter_demos
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/compm/catkin_ws/src
ROS path [2]=/opt/ros/kinetic/share
I created catkin workspace (following the guide you sent), Therefore I surmise it is not the source of the problem. In the github page of the package i try to install It mentions that I should have the repository cloned into ROS_PACKAGE_PATH which im not sure what it means. Maybe this is the root of the problem.
##Prerequisites
Install dependencies (assumes that you have the repo cloned into your ROS_PACKAGE_PATH):
rosdep install baxter_demos
Thank you in advanced for your help
Asked by m.kleiner on 2020-03-30 15:23:34 UTC
Comments