Ask Your Question
1

Astra camera on noetic and Ubuntu Focal

asked 2020-09-14 07:22:38 -0500

ArtUrlWWW gravatar image

Hello.

I am totaly newbie in ROS and I jsut trying to use my ROS camera, that I just receiced :). https://orbbec3d.com/develop/ is down now, so I deciced to use ROS for my ROS camera. I've installed ROS as described in http://wiki.ros.org/Installation/Ubuntu and followed instructions for Astra camera - this http://wiki.ros.org/astra_camera and this https://github.com/orbbec/ros_astra_c... .

First question is that command sudo apt install ros-$ROS_DISTRO-rgbd-launch ros-$ROS_DISTRO-libuvc ros-$ROS_DISTRO-libuvc-camera ros-$ROS_DISTRO-libuvc-ros unable to find libuvc packages for ROS:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ros-noetic-libuvc
E: Unable to locate package ros-noetic-libuvc-camera
E: Unable to locate package ros-noetic-libuvc-ros

How to install them on ROS noetic?

The second one question: When I am running

cd ~/catkin_ws catkin_make --pkg astra_camera

I got build errors, I think, it's because apt unable to install libuvc packages:

devusr@devusr-virtual-machine:~/catkin_ws$ catkin_make --pkg astra_camera
Base path: /home/devusr/catkin_ws
Source space: /home/devusr/catkin_ws/src
Build space: /home/devusr/catkin_ws/build
Devel space: /home/devusr/catkin_ws/devel
Install space: /home/devusr/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/devusr/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/devusr/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/devusr/catkin_ws/devel;/opt/ros/noetic
-- This workspace overlays: /home/devusr/catkin_ws/devel;/opt/ros/noetic
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.2", minimum required is "3") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Using empy: /usr/lib/python3/dist-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/devusr/catkin_ws/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python3 (found version "3.8.2") 
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.8
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - astra_camera
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'astra_camera'
-- ==> add_subdirectory(ros_astra_camera)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at ros_astra_camera/CMakeLists.txt:8 (find_package):
  By not providing "Findlibuvc.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "libuvc", but
  CMake did not find one.

  Could not find a package configuration file provided by "libuvc" with any
  of the following names:

    libuvcConfig.cmake
    libuvc-config.cmake

  Add the installation prefix of "libuvc" to CMAKE_PREFIX_PATH or set
  "libuvc_DIR" to a directory containing one of the above files.  If "libuvc"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/devusr/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/devusr/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:320: cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

Tell me please how to solve this issue?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2020-09-15 23:20:22 -0500

Josh Whitley gravatar image

You are correct that the build errors are due to the missing libuvc_ros package. This is because the package has not bed released for ROS Noetic. However, libuvc_ros is mostly just a wrapper package around the libuvc library, which is available in Ubuntu. Try the following:

  1. Install libuvc-dev with apt.
  2. Clone https://github.com/ros-drivers/libuvc... into your workspace's src folder, along side the Astra driver.
  3. Build the workspace with just catkin_make (which will build all packages in the workspace).

If this works, consider contacting the maintainer of libuvc_ros on Github and asking them to release the package for Noetic.

edit flag offensive delete link more

Comments

Just tried it, and it works. The second step is not even required, because astra_camera doesn't need libuvc_ros, just libuvc-dev. Thanks!

Martin Günther gravatar image Martin Günther  ( 2021-02-10 05:11:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-09-14 07:22:38 -0500

Seen: 1,527 times

Last updated: Sep 15 '20