Robotics StackExchange | Archived questions

How to get an Orbbec Astra Pro depth camera working on a Raspberry Pi? Unable to locate packages.

Hi all,

I am having a bit of trouble getting an Orbbec Astra Pro depth camera up and running through ROS Kinetic on a Raspberry Pi. These are the instructions I am following:

https://github.com/orbbec/ros_astra_camera

As shown in the terminal info below, I am unable to locate the dependency packages. I have tried sudo apt-get update and then sudo apt-get upgrade as well as rosdep update, but the dependencies still cannot be found.

Does anybody have any ideas on what I could be missing?

Thanks :)

pi@raspberrypi:~ $ sudo apt-get install ros-$ROS_DISTRO-rgbd-launch ros-$ROS_DISTRO-libuvc ros-$ROS_DISTRO-libuvc-camera ros-$ROS_DISTRO-libuvc-ros
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-kinetic-rgbd-launch
E: Unable to locate package ros-kinetic-libuvc
E: Unable to locate package ros-kinetic-libuvc-camera
E: Unable to locate package ros-kinetic-libuvc-ros

Asked by Py on 2019-10-30 10:39:09 UTC

Comments

Which OS is installed on your raspberry ?

Asked by Delb on 2019-10-30 11:06:17 UTC

I believe it's Raspian. This might give a bit more info though:

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux

Asked by Py on 2019-10-30 11:45:46 UTC

Can you show the output of lsb_release -a instead please ?

Asked by Delb on 2019-10-31 03:40:49 UTC

Here you go:

pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 9.11 (stretch)
Release:    9.11
Codename:   stretch

Asked by Py on 2019-10-31 07:50:23 UTC

Did you manage to solve the problem? I have the same issue on Raspbian buster with ROS Melodic. I'm getting the same error messages:

pi@raspberrypi:~ $ sudo apt install ros-$ROS_DISTRO-rgbd-launch ros-$ROS_DISTRO-libuvc ros-$ROS_DISTRO-libuvc-camera ros-$ROS_DISTRO-libuvc-ros
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-melodic-rgbd-launch
E: Unable to locate package ros-melodic-libuvc
E: Unable to locate package ros-melodic-libuvc-camera
E: Unable to locate package ros-melodic-libuvc-ros

Asked by Sokuya on 2021-03-17 10:46:11 UTC

Answers

From the kinetic installation wiki page :

ROS Kinetic ONLY supports Jessie (Debian 8) for debian packages.

Since you have Stretch (Debian 9) you have to use melodic and not kinetic. Your package is compatible with both versions so that won't be an issue but I don't get why the ros env variable $ROS_DISTRO is evaluated as kinetic, have you manually set it ?

Asked by Delb on 2019-10-31 08:12:58 UTC

Comments

I didn't manually set the ROS env variable to $ROS_DISTRO=kinetic To install the OS with ROS packages pre-installed, I followed these instructions, which may give some insight:

(http://emanual.robotis.com/docs/en/platform/turtlebot3/raspberry_pi_3_setup/#install-linux-based-on-raspbian)

Asked by Py on 2019-10-31 08:35:16 UTC

Thanks for pointing the tutorial, so you have installed the raspbian image given in the tutorial ? If so you might not be able to install your package as desired. You should download the official raspbian image instead of their image (you might want to avoid using the latest Raspbian Buster, all packages might not be built for this version yet)

Asked by Delb on 2019-10-31 08:50:15 UTC

Yes that's right. OK great, I'll give that a try.

Asked by Py on 2019-10-31 09:57:39 UTC

So would there a way to convince rosdep and apt to use the "melodic" repo for kinetic ros since it can't find any kinetic package anyhow? I mean the last version for rgbd-launch is listed as jade on github for example, it's not like there's been an actual functional difference in these packages for years. The only thing we need is an ARM compiled version. I'm not really able to switch to melodic for a list of reasons a mile long.

I've been trying to compile these dependencies from source but it's not really possible since two of them don't even have github repos and the rest can't have their own dependencies resolved by rosdep because of the same problem as we have for these

Asked by MoffKalast on 2019-11-16 13:15:44 UTC

If you can't find the kinetic package, then it's just that they aren't available and you need to build them from source.

About the rgbd_launch package it is indeed listed as jade but it's just a branch name. You should look the ros package status for every ros version to find which packages are available or not.

Asked by Delb on 2019-11-16 19:14:12 UTC