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

rospack not finding installed packages

asked 2016-08-09 19:59:25 -0500

asmodehn gravatar image

updated 2018-05-17 04:33:53 -0500

130s gravatar image

On Ubuntu trusty, I installed ros-indigo-rospack as well as a package I m developing : ros-indigo-catkin-pip from apt-get. Even after sourcing the indigo ROS environment, rospack cannot find the package, or any directory to look into, it seems...

Here is the relevant part of the travis log when building another ROS package with catkin_pip.

CI_ROS_DISTRO here is 'indigo'

$ source /opt/ros/$CI_ROS_DISTRO/setup.bash && rospack profile && rospack find catkin_pip

Full tree crawl took 0.000000 seconds.

Directories marked with (*) contain no manifest.  You may

want to delete these directories.

To get just of list of directories without manifests,

re-run the profile with --zombie-only

-------------------------------------------------------------

[rospack] Error: package 'catkin_pip' not found

The command "source /opt/ros/$CI_ROS_DISTRO/setup.bash && rospack profile && rospack find catkin_pip" exited with 1.

But the package.xml is there :

$ cat /opt/ros/$CI_ROS_DISTRO/share/catkin_pip/package.xml

<?xml version="1.0"?>

<package format="2">

  <name>catkin_pip</name>

  <version>0.1.10</version>

  <description>

    Catkin macros to allow using pure python packages in usual catkin workspaces with normal python workflow.

  </description>

  <maintainer email="asmodehn@gmail.com">AlexV</maintainer>

  <license>BSD</license>

  <url type="website">http://github.com/asmodehn/catkin_pip</url>

  <url type="repository">https://github.com/asmodehn/catkin_pip</url>

  <url type="bugtracker">https://github.com/asmodehn/catkin_pip/issues</url>

  <buildtool_depend>catkin</buildtool_depend>

  <!-- we depend on rospack to dynamically find catkin_pip when generating envhooks for packages using catkin_pip -->

  <depend>rospack</depend>

  <depend version_gte="2.7.5">python</depend>

  <depend version_gte="1.5.4">python-pip</depend>

  <test_depend version_gte="1.9.1">git</test_depend>

</package>

Am I missing something here ?

Note there is only rospack, catkin and catkin_pip installed in my indigo environment. Does rospack needs another package to be able to work ?

Thanks for the help !

edit retag flag offensive close merge delete

Comments

I recently found out that, even if I can source /opt/ros/indigo/setup.bash successfully, the ROS_PACKAGE_PATH environment variable is empty.

So what is the minimum required packages for rospack to works ? ros-base ? It seems rospack doesnt list them as dependencies...

asmodehn gravatar image asmodehn  ( 2016-08-09 20:35:33 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-05-17 04:35:43 -0500

130s gravatar image

Not sure current status, but it used to be roslib that sets ROS_PACKAGE_PATH and that does not get installed automatically by just installing rospack. There's a ticket for this that is already closed, but AFAIUC the patch, the change is only available ROS Kinetic onward.

So since this question is targetted Indigo, it might be safe to say install roslib.

edit flag offensive delete link more

Comments

Looks like ros/ros#166 resolved this @130s.

gvdhoorn gravatar image gvdhoorn  ( 2018-05-17 08:05:01 -0500 )edit

Yeah, we're referencing to the same PR :)

130s gravatar image 130s  ( 2018-05-17 11:52:17 -0500 )edit
0

answered 2016-08-11 08:50:45 -0500

Dimitri Schachmann gravatar image

I think you need to run rosdep update.

See here: http://wiki.ros.org/rosdep

You need to run it each time you install or update packages in /opt/ros

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-09 19:59:25 -0500

Seen: 5,696 times

Last updated: May 17 '18