Robotics StackExchange | Archived questions

Catkin_make can't find package

Hello all,

For a project we want to use the skeleton of a human. Therefor we are using the Orbbec Astra RGB D camera and installed the corresponding software from https://orbbec3d.com/develop/. This package runs fine.

Because we want to have the data into ROS, we also downloaded a package which will publish the data from the SDK into topics. (https://github.com/shinselrobots/astra_body_tracker)a

While running catkin_make we get the following error:

   Path = /home/system/AstraSDK/samples/cmake/
CMake Error at astra_body_tracker/CMakeLists.txt:30 (find_package):
  By not providing "FindAstra.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Astra", but
  CMake did not find one.

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

    AstraConfig.cmake
    astra-config.cmake

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


-- Configuring incomplete, errors occurred!
See also "/home/wouter/catkin2_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/wouter/catkin2_ws/build/CMakeFiles/CMakeError.log".
Makefile:836: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

We are using ROS Kinetic on Ubuntu 16.04. In the SDK folder we can't find a file called AstraConfig.cmake or astra-config.cmake.

Does anyone know how to solve this error?

Tanks in advance!

Asked by wouter1006 on 2018-05-15 13:18:13 UTC

Comments

Did you update the location where CMake should look for the Astra SDK here?

Note: I've never worked with this pkg, but that seems like a suspicious line to me.

Asked by gvdhoorn on 2018-05-15 14:55:03 UTC

Also: if this post is also you, then please refrain from cross-posting issues like that. At best it leads to split discussions, but most of the times it'll actually lead to duplication and waste of effort.

Asked by gvdhoorn on 2018-05-15 14:55:47 UTC

I have updated the location of the Astra SDK in the CMakelists

Asked by wouter1006 on 2018-05-16 04:04:53 UTC

Then I would think this is an issue with this specific package, or how you setup your system. Perhaps the issue you already opened on the pkg's tracker would be more appropriate place to diagnose it.

Asked by gvdhoorn on 2018-05-16 04:11:23 UTC

Answers

As suggested by @gvdhoorn, I was able to fix the exact same problem by updating the locations of the four parameters from line 19 to 22 in the CMakelist file. I had /home/Downloads/astra_sdk/... but the correct ones are /home/my-username/Downlaods/astra_sdk/...

Asked by mugenzebra on 2019-03-09 03:07:55 UTC

Comments