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

run "rosdep install -r --from-paths ." error when I install iai_kinect2

asked 2016-06-18 22:19:20 -0500

Ziwen Qin gravatar image

updated 2016-06-20 21:08:45 -0500

When I was run rosdep install -r --from-paths ., some errors show me as following:

turtlebot@turtlebot-HP-ZBook-14-G2:~/catkin_ws/src/iai_kinect2$ rosdep install -r --from-paths .

ERROR: the following packages/stacks could not have their rosdep keys resolved

to system dependencies:

kinect2_viewer: Cannot locate rosdep definition for [kinect2_bridge]

kinect2_calibration: Cannot locate rosdep definition for [kinect2_bridge]

kinect2_bridge: Cannot locate rosdep definition for [kinect2_registration]

Continuing to install resolvable dependencies...

All required rosdeps installed successfully

Some assistes show as following writing by author:

rosdep will output errors on not being able to locate [kinect2_bridge] and [depth_registration]. That is fine because they are all part of the iai_kinect2 package and rosdep does not know these packages.

what should I do, my rosdep can just know these packages. Thank you very much!

edit retag flag offensive close merge delete

Comments

Please don't post updates as answers. Only post answers if you are actually answering your own question. I've merged your answer as an update into your OP.

gvdhoorn gravatar image gvdhoorn  ( 2016-06-20 09:43:55 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-06-20 03:04:04 -0500

gvdhoorn gravatar image

updated 2016-06-20 09:42:07 -0500

I would think this is what --ignore-src is meant for.


Edit:

following you, Should I run the command which is " rosdep install --ignore-src" ?

No, the full command should be:

rosdep install --from-paths ~/catkin_ws/src/iai_kinect2 --ignore-src -r

That will make rosdep look for packages in the ~/catkin_ws/src/iai_kinect2 directory, gather all the dependencies, check which you have installed, which are missing, then subtract all packages that it finds in ~/catkin_ws/src/iai_kinect2 (because of --ignore-src), and then install everything that is still missing.

I am running, but terminal show some errors to me:

rosdep: error: no packages or stacks specified

Well, yes. You give it no path and no package name, so it can't do anything for you.

Please also check the output of rosdep --help.

edit flag offensive delete link more

Comments

following you, Should I run the command which is " rosdep install --ignore-src" ?

I am running, but terminal show some errors to me:

rosdep: error: no packages or stacks specified

Ziwen Qin gravatar image Ziwen Qin  ( 2016-06-20 09:32:36 -0500 )edit

I find that this errors can be ignore, however, OpenCL is not optional but integrant when install iai_kinect2.

Ziwen Qin gravatar image Ziwen Qin  ( 2016-06-20 21:08:01 -0500 )edit
1

This is a new question, unrelated to your earlier one. I advise you to open a new one.

Also (and for the last time): please don't post answers if you are not answering your question. ROS Answers is not a normal forum, but an askbot site. It works differently.

gvdhoorn gravatar image gvdhoorn  ( 2016-06-21 01:43:19 -0500 )edit

I find that this errors can be ignore, however, OpenCL is not optional but integrant when install iai_kinect2.

Ziwen Qin gravatar image Ziwen Qin  ( 2016-06-22 21:10:44 -0500 )edit

Hi, openCL is actually optional as you can choose to either use openGL, openCL or CPU. You may read the FAQs on https://github.com/code-iai/iai_kinec... .

Check the website: If one of them works, try out the one that worked with kinect2_bridge:

pallavbakshi gravatar image pallavbakshi  ( 2017-01-17 12:26:49 -0500 )edit
0

answered 2023-01-20 06:51:02 -0500

It is totally ok to see the following error messages and you can safely ignore them.

Test the package by executing the below command from your workspace. Don't forget to source your workspace. $ roslaunch kinect2_bridge kinect2_bridge.launch

If you see the error message [ERROR] [DepthRegistrationOpenCL::init] Build Log: stringInput.cl:190:31: error: call to 'sqrt' is ambiguous.

To fix this, in kinect2_bridge.launch, update depth_method to opengl(Or the one works for you), and reg_method to cpu(reference: https://lubosz.wordpress.com/2016/03/...)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-06-18 22:19:20 -0500

Seen: 5,960 times

Last updated: Jun 23 '16