Ros2 Moveit2 编译安装报错解决方案 - By not providing "Findgz_sim_vendor.cmake" in CMAKE_MODULE_PATH
moveit_resources
--- stderr: gz_ros2_control
CMake Error at CMakeLists.txt:27 (find_package):
By not providing "Findgz_sim_vendor.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"gz_sim_vendor", but CMake did not find one.
Could not find a package configuration file provided by "gz_sim_vendor"
with any of the following names:
gz_sim_vendorConfig.cmake
gz_sim_vendor-config.cmake
Add the installation prefix of "gz_sim_vendor" to CMAKE_PREFIX_PATH or set
"gz_sim_vendor_DIR" to a directory containing one of the above files. If
"gz_sim_vendor" provides a separate development package or SDK, be sure it
has been installed.
---
删除gz_ros2_control 包, 改为直接安装:
sudo apt install ros-humble-ign-ros2-control
sudo apt install libgazebo11=11.10.2+dfsg-1
当然也可以一点点从github下载缺失的依赖包进行编译安装,只是比较麻烦。