参考链接:https://kkgithub.com/Unity-Technologies/Unity-Robotics-Hub/blob/main/tutorials/pick_and_place/0_ros_setup.md

                 https://fishros.org.cn/forum/topic/1844/%E5%88%86%E4%BA%AB-%E4%BD%BF%E7%94%A8unity%E8%BF%9B%E8%A1%8C%E6%9C%BA%E5%99%A8%E4%BA%BA%E7%9A%84%E4%BB%BF%E7%9C%9F

在学习Unity-Robotics-Hub的过程中,创建工作空间编译时出错,教程中使用的是ROS Melodic和ROS Noetic,尝试用ros2humble版本复现,编译报错:

[0.388s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
    'moveit_msgs' is in: /opt/ros/humble
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.

If you understand the risks and want to override a package anyways, add the following to the command line:
    --allow-overriding moveit_msgs

This may be promoted to an error in a future release of colcon-override-check.
Starting >>> moveit_msgs
Starting >>> dynamixel_sdk
Starting >>> mcp_can_rpi
Starting >>> niryo_one_description
Starting >>> ros_tcp_endpoint
Starting >>> niryo_one
Starting >>> niryo_one_bringup
Starting >>> niryo_one_camera
Starting >>> niryo_one_urdf
--- stderr: moveit_msgs                                          
CMake Error at CMakeLists.txt:14 (find_package):
  By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "catkin", but
  CMake did not find one.

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

    catkinConfig.cmake
    catkin-config.cmake

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


---
Failed   <<< moveit_msgs [0.52s, exited with code 1]
Aborted  <<< mcp_can_rpi [0.51s]
Aborted  <<< ros_tcp_endpoint [0.49s]
Aborted  <<< niryo_one_description [0.50s]
Aborted  <<< niryo_one [0.49s]
Aborted  <<< niryo_one_urdf [0.47s]
Aborted  <<< niryo_one_camera [0.48s]
Aborted  <<< niryo_one_bringup [0.48s]
Aborted  <<< dynamixel_sdk [0.52s]

Summary: 0 packages finished [0.85s]
  1 package failed: moveit_msgs
  8 packages aborted: dynamixel_sdk mcp_can_rpi niryo_one niryo_one_bringup niryo_one_camera niryo_one_description niryo_one_urdf ros_tcp_endpoint
  9 packages had stderr output: dynamixel_sdk mcp_can_rpi moveit_msgs niryo_one niryo_one_bringup niryo_one_camera niryo_one_description niryo_one_urdf ros_tcp_endpoint
  14 packages not processed