You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Drake-ros:通过Bazel WORKSPACE拉取rviz_2d_overlay_plugins失败求助

问题:无法通过Bazel WORKSPACE机制在drake_ros_viz中拉取rviz_2d_overlay_plugins包

此问题关联Drake-ros的#142议题。在focal和jammy版本下的rolling/humble发行版中,尝试通过Bazel WORKSPACE拉取rviz_2d_overlay_plugins包时,出现以下错误:

ERROR: no such package '@ros2//': Failed to setup @ros2 repository: './run.bash /home/arrowhead/.cache/bazel/_bazel_arrowhead/90cc0dfb7c9efd65bbcc1ee9dd934f8e/external/bazel_ros2_rules/ros2/scrape_distribution.py -i geometry_msgs -i rclcpp -i rclpy -i tf2_ros -i tf2_ros_py -i visualization_msgs -i rviz_2d_overlay_plugins -o distro_metadata.json' exited with 1
--- captured stderr ---
Traceback (most recent call last):
  File "/home/arrowhead/.cache/bazel/_bazel_arrowhead/90cc0dfb7c9efd65bbcc1ee9dd934f8e/external/bazel_ros2_rules/ros2/scrape_distribution.py", line 54, in <module>
    main()
  File "/home/arrowhead/.cache/bazel/_bazel_arrowhead/90cc0dfb7c9efd65bbcc1ee9dd934f8e/external/bazel_ros2_rules/ros2/scrape_distribution.py", line 46, in main
    distro = scrape_distribution(
  File "/home/arrowhead/.cache/bazel/_bazel_arrowhead/90cc0dfb7c9efd65bbcc1ee9dd934f8e/external/ros2/resources/ros2bzl/scraping/__init__.py", line 90, in scrape_distribution
    packages, dependency_graph = build_dependency_graph(
  File "/home/arrowhead/.cache/bazel/_bazel_arrowhead/90cc0dfb7c9efd65bbcc1ee9dd934f8e/external/ros2/resources/ros2bzl/scraping/__init__.py", line 50, in build_dependency_graph
    raise RuntimeError(msg)
RuntimeError: Cannont find package 'rviz_2d_overlay_plugins'

已确认该包在ROS Index上存在,以下是相关的Bazel WORKSPACE代码片段:

ros2_archive(
    name = "ros2",
    include_packages = [
        "geometry_msgs",
        "rclcpp",
        "rclpy",
        "tf2_ros",
        "tf2_ros_py",
        "visualization_msgs",
        "rviz_2d_overlay_plugins"
    ],

    sha256_url = "https://build.ros2.org/view/Hci/job/Hci__nightly-cyclonedds_ubuntu_jammy_amd64/lastSuccessfulBuild/artifact/ros2-humble-linux-jammy-amd64-ci-CHECKSUM",  # noqa
    strip_prefix = "ros2-linux",
    url = "https://build.ros2.org/view/Hci/job/Hci__nightly-cyclonedds_ubuntu_jammy_amd64/lastSuccessfulBuild/artifact/ros2-humble-linux-jammy-amd64-ci.tar.bz2",  # noqa
)

内容的提问来源于stack exchange,提问作者ali

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.04 07:10:46