CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "duckietown_msgs"
with any of the following names:
duckietown_msgsConfig.cmake
duckietown_msgs-config.cmake
sudo apt-get install ros-noetic-duckietoen-msgs
给的显示是E: 无法定位软件包 ros-noetic-duckietown-msgs
这是一个catkin提供的cmake宏,当我们要给构建系统指定catkin的特定的信息时就需要了,或者反过来利用他产生pkg-config和CMake文件。这个函数必须在声明add_library()或者add_executable()生成target之前使用。