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

How to check which package depends on ros-kinetic-librealsense2

asked 2019-07-02 04:35:47 -0500

fitter gravatar image

updated 2019-07-02 21:55:01 -0500

jayess gravatar image

Hi, I stumbled upon an annoying problem. I'm building quite big docker image containing robot's workspace. Docker build process fails on step where I'm trying to resolve and install missing dependencies using rosdep. Looks like one of the packages depends on ros-kinetic-librealsense2 package which simply does not exists and kills my building process. I'm getting:

apt: command [sudo -H apt-get install -y ros-kinetic-librealsense2] failed

apt: Failed to detect successful installation of [ros-kinetic-librealsense2]

How to locate that problematic package? I tried

rosdep which-depends

but it returns nothing.

Thx!

edit retag flag offensive close merge delete

Comments

1

Using grep to search your code base for any occurrence of the string librealsense2 would probably a good way to start.

grep "librealsense2" . -r

From the root of your code base will show you a list of files which contain that string.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-07-03 05:15:50 -0500 )edit

Thx, I did that, but in fact I checked for "ros-kinetic-librealsense2". I didn't knew that dependencies are defined without "ros-kinetic" prefix, so I received nothing.

fitter gravatar image fitter  ( 2019-07-03 06:59:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-07-03 07:12:38 -0500

fitter gravatar image

After some searching I found this discussion: https://github.com/IntelRealSense/rea...

Looks like the librealsense2 got deleted from ROS repositories, but for some reason realsense package still depends on it, which blocks rosdep install. There is a PR with fix waiting for acceptance.

The workaround for now is to use rosdep install with -r flag, and, if you are using docker, end the RUN command which spawns rosdep install with ; exit 0 to continue after rosdep returns 1.

Just remember its not a proper solution and it should be reverted after realsense PR got merged or librealsense2 lib comes back to repository.

Hope it's going to help someone with similar problem

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-07-02 04:35:47 -0500

Seen: 462 times

Last updated: Jul 03 '19