CMake Error at /home/ros/catkin_ctr/build/ego-planner-swarm/src/uav_simulator/Utils/quadrotor_msgs/cmake/quadrotor_msgs-genmsg.cmake:950 (add_custom_target): add_custom_target cannot create target "quadrotor_msgs_generate_messages_nodejs" because another target with the same name already exists. The existing target is a custom target created in source directory "/home/ros/catkin_ctr/src/precise_land". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): /opt/ros/noetic/share/genmsg/cmake/genmsg-extras.cmake:307 (include) ego-planner-swarm/src/uav_simulator/Utils/quadrotor_msgs/CMakeLists.txt:47 (generate_messages)
时间: 2023-08-13 18:02:39 浏览: 240
LIO-SAM引用的ros2紧耦合激光雷达惯性猛击套件-C/C++开发
这个错误的原因是在生成 `quadrotor_msgs` 消息时,已经存在一个名为 `quadrotor_msgs_generate_messages_nodejs` 的自定义目标。这与 `add_custom_target` 的文档中所述的行为不同。你可以尝试更改该目标的名称或将其删除来解决此问题。此外,你还可以查看 `CMP0002` 策略的文档,以了解有关此错误的更多信息。
阅读全文