I have a Python program that requires the rclpy library. When I try to run the program I get a module not found error. I found a git repo that outlines the process. I replaced "rolling" with "foxy" to match the version of ros2 that I have installed. During the step for colcon build --symlink-install
, the following error is
我有一个需要rclpy库的Python程序。当我试图运行程序时,我得到一个模块找不到错误。我找到了一份Git回购,上面概述了这一过程。为了与我安装的ros2版本相匹配,我用“foxy”替换了“Rolling”。在colcon构建--symlink-install的步骤中,出现以下错误
CMake Error at CMakeLists.txt:34 (find_package):
By not providing "Findrcl_logging_interface.cmake" in CMAKE_MODULE_PATH
this project has asked CMake to find a package configuration file provided
by "rcl_logging_interface", but CMake did not find one.
Could not find a package configuration file provided by
"rcl_logging_interface" with any of the following names:
rcl_logging_interfaceConfig.cmake
rcl_logging_interface-config.cmake
Add the installation prefix of "rcl_logging_interface" to CMAKE_PREFIX_PATH
or set "rcl_logging_interface_DIR" to a directory containing one of the
above files. If "rcl_logging_interface" provides a separate development
package or SDK, be sure it has been installed.
I'm very new to ros and I don't know how to resolve this issue. What information can I provide to help with diagnostics?
我对ros非常陌生,我不知道如何解决这个问题。我可以提供哪些信息来帮助诊断?
OS: Ubuntu 20.04
操作系统:Ubuntu 20.04
ROS2: Roxy
ROS2:Roxy
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!