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: [https://moveit.ros.org/install-moveit...]

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

Comments

Hey, I'm running into the same issue. Were you able to resolve it?

agaggar gravatar image agaggar  ( 2023-06-12 12:36:30 -0500 )edit

In your workspace root folder, install the package dependencies using the command

rosdep install -r --from-paths . --ignore-src --rosdistro foxy -y
Mstarn gravatar image Mstarn  ( 2023-06-16 08:24:39 -0500 )edit