Package not found building Moveit2 from source

asked 2022-08-10 05:49:51 -0500

mikewise1618 gravatar image

I am working on a clean version of Ubunutu 20.04 and previously I built ROS 2 from source and it works fine. I have activated it with install/local_setup.bash.

Now I am trying to follow the instructions for building Moveit2 from source found here: []

It is missing a bunch of packages, so I added various sources from their github repos, the ros2 branch, namely:

  • angles
  • eigen_stl_containers
  • geometric_shapes
  • random_numbers

and after a hiccup with the random_numbers CMake not finding an /include directory (which I added into the root ... yuch), it then pointed out I still was missing the object_recognition_msgs package. As that wouldn't compile from source and didn't really have a ros2 branch I thought I would resolve it with a binary package:

sudo apt-get install ros-foxy-object-recognition-msgs

This however it fails to recognize and still fails with the message:

CMake Error at CMakeLists.txt:24 (find_package):
  By not providing "Findobject_recognition_msgs.cmake" in CMAKE_MODULE_PATH
  this project has asked CMake to find a package configuration file provided
  by "object_recognition_msgs", but CMake did not find one.

So the question is: What am I doing wrong here?

I would think apt-get would have taken care of all this. Also it seems like I shouldn't have had to install all those extra packages.

edit retag flag offensive close merge delete