鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    colcon build报错

    已定时 已固定 已锁定 已移动 未解决
    综合问题
    colcon报错 cmake报错
    1
    1
    207
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 10452084111
      网上邻居
      最后由 编辑

      我在编译package。xml文件报错。我的package.xml文件内容为```
      <?xml version="1.0"?>
      <?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
      <package format="3">
      <name>village_interface</name>
      <version>0.0.0</version>
      <description>TODO: Package description</description>
      <maintainer email="robot@todo.todo">robot</maintainer>
      <license>TODO: License declaration</license>

      <buildtool_depend>ament_cmake</buildtool_depend>

      <depend>sensor_msgs</depend>
      <build_depend>rosidl_default_generators</build_depend>
      <exec_depend>rosidl_default_runtime</exec_depend>
      <member_of_group>rosidl_interface_packages</member_of_group>

      <test_depend>ament_lint_auto</test_depend>
      <test_depend>ament_lint_common</test_depend>

      <export>
      <build_type>ament_cmake</build_type>
      </export>
      </package>

      colcon build报错Starting >>> village_interface
      --- stderr: village_interface                         
      Traceback (most recent call last):
        File "/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 22, in <module>
          from catkin_pkg.package import parse_package_string
      ModuleNotFoundError: No module named 'catkin_pkg'
      CMake Error at /opt/ros/humble/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:95 (message):
        execute_process(/home/robot/miniconda3/bin/python3
        /opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py
        /home/robot/ws_town/src/village_interface/package.xml
        /home/robot/ws_town/build/village_interface/ament_cmake_core/package.cmake)
        returned error code 1
      Call Stack (most recent call first):
        /opt/ros/humble/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:49 (_ament_package_xml)
        /opt/ros/humble/share/ament_lint_auto/cmake/ament_lint_auto_find_test_dependencies.cmake:31 (ament_package_xml)
        CMakeLists.txt:22 (ament_lint_auto_find_test_dependencies)请问下是什么原因,应该怎样解决,百度和chatgpt都不能解决
      1 条回复 最后回复 回复 引用 0
      • 第一个帖子
        最后一个帖子
      皖ICP备16016415号-7
      Powered by NodeBB | 鱼香ROS