Robotics StackExchange | Archived questions

Troubles compiling because of realsense library

I am using ROS Noetic on Ubuntu 20.04 to control the openManipulator-X with MoveIt 1. We also have attached to it the Intel realsense2 camera. I installed the realsense library thanks to this tutorial. I had some troubles with the fact that the http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo focal InRelease repo is not signed anymore but I managed to control the camera thanks to the python realsense2 module. But now, every time I compile my project with catkin_make, I get the following error on my terminal:

-- +++ processing catkin package: 'realsense_camera'
-- ==> add_subdirectory(realsense/realsense_camera)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at /home/alaborie/catkin_ws/devel/share/librealsense/cmake/librealsenseConfig.cmake:173 (message):
  Project 'realsense_camera' tried to find library 'realsense'.  The library
  is neither a target nor built/installed properly.  Did you compile project
  'librealsense'? Did you find_package() it before the subdirectory
  containing its code is included?
Call Stack (most recent call first):
  /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  realsense/realsense_camera/CMakeLists.txt:39 (find_package)


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

Do you think I should modify the set(libraries "realsense") line in librealsenseConfig.cmake replacing realsense with librealsense?
Thanks in advance

Asked by alexLaborie on 2022-11-16 07:42:04 UTC

Comments

I think you should use the current binary apt repository at https://librealsense.intel.com/Debian/apt-repo. It works fine in noetic. There are both ros-packages and non-ros packages that you need. See http://wiki.ros.org/librealsense2

Asked by Mike Scheutzow on 2022-11-16 21:30:00 UTC

I reinstalled the realsense library from the source, but unfortunately, it did not changed anything.

Asked by alexLaborie on 2022-11-20 21:04:22 UTC

Answers