gpt4 book ai didi

colcon build error for rclpy - not providing Findrcl_logging_interface.cmake(Rclpy的COLCON构建错误-未提供FindrCL_Logging_interface.cmake)

转载 作者:bug小助手 更新时间:2023-10-24 17:54:26 26 4
gpt4 key购买 nike



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


更多回答
优秀答案推荐


  1. First things first, please make sure you install ROS2 with the guide provided at https://docs.ros.org/en/foxy/Installation.html.

  2. If installation is fine, then check if you sourced the ROS2 base environment with



source /opt/ros/foxy/setup.bash




  1. If the error still persists, then clone https://github.com/ros2/rcl_logging within src of your workspace,and try again.


更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com