在 Ubuntu 20.04 VM 上从源代码安装 MoveIt 2 时出错

Error installing MoveIt 2 from source on Ubuntu 20.04 VM

我正在尝试参与开源并且对机器人技术也很感兴趣,所以我考虑为 MoveIt 2 做贡献。作为第一步,我在 [=21] 上从源代码安装 MoveIt 2 =] VirtualBox 中的 20.04 虚拟机。

我已经 运行 完成了此处的所有说明:https://moveit.ros.org/install-moveit2/source/#:~:text=colcon%20build%20%2D%2Devent%2Dhandlers%20desktop_notification%2D%20status%2D%20%2D%2Dcmake%2Dargs%20%2DDCMAKE_BUILD_TYPE%3DRelease

但是,构建在突出显示的部分失败了。报错信息如下:

Starting >>> geometric_shapes
--- stderr: geometric_shapes
CMake Error at CMakeLists.txt:47 (find_package):
  By not providing "Findeigen3_cmake_module.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "eigen3_cmake_module", but CMake did not find one.

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

    eigen3_cmake_moduleConfig.cmake
    eigen3_cmake_module-config.cmake

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


---
Failed   <<< geometric_shapes [1.20s, exited with code 1]

Summary: 0 packages finished [1.46s]
  1 package failed: geometric_shapes
  1 package had stderr output: geometric_shapes
  33 packages not processed

非常感谢您的帮助。谢谢!

在构建 Move It 2 之前必须安装 ROS2。安装 ROS2 二进制文件后,不会出现错误。