WARNING: package "moveit_opw_kinematics_plugin" should not depend on metapackage "moveit_resources" but on its packages instead -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 4 packages in topological order: -- ~~ - opencv_tests (unknown) CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:89 (message): Unknown build type 'ament_python' for package 'opencv_tests' Call Stack (most recent call first): CMakeLists.txt:69 (catkin_workspace) -- ~~ - vision_opencv (plain cmake) -- ~~ - cv_bridge (plain cmake) -- ~~ - image_geometry (plain cmake) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:100 (message): This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Try the 'catkin_make_isolated' command instead. Call Stack (most recent call first): CMakeLists.txt:69 (catkin_workspace) -- Configuring incomplete, errors occurred! See also "/home/wheeltec/Desktop/cv_bridge_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/wheeltec/Desktop/cv_bridge_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed
这个错误是因为在catkin工作空间中包含了非catkin包,而catkin无法构建非同构的工作空间。你可以尝试使用`catkin_make_isolated`命令来解决这个问题。
首先,确保你已经安装了`catkin_tools`:
```bash
sudo apt-get install python-catkin-tools
```
然后,使用`catkin_make_isolated`命令重新构建工作空间:
```bash
cd ~/Desktop/cv_bridge_ws
catkin init
catkin build --cmake-args -DPYTHON_EXECUTABLE=/usr/bin/python3
source devel/setup.bash
```