Skip to content

踩坑GitHub stereolabs/zed-ros2-wrapper5 个月前

zed-ros2-wrapper在ROS2 Humble编译报错image_transport参数过。 ​

本文由 AI 根据公开内容整理,可能有误,请以原文为准:Breaks compatibility with ROS 2 Humble due to image_transport API changes(GitHub stereolabs/zed-ros2-wrapper #432)

状态:已解决

问题 ​

stereolabs/zed-ros2-wrapper master分支提交a06f53f后,在ROS 2 Humble下编译zed_components包失败。报错显示image_transport::create_publisher仅接受3个参数,但代码传入了包含PublisherOptions的4个参数,导致zed_camera_component_main.cpp等多个文件构建中断。

环境 ​

Ubuntu 22.04, ROS 2 Humble, ZED2i相机, stereolabs/zed-ros2-wrapper master分支

解决办法 ​

  1. 切换至官方修复分支 fix_humble_compatibility 进行编译,该分支已通过用户验证解决兼容性问题。
  2. 若需临时回退,可使用确认正常的旧版本提交 stereolabs/zed-ros2-wrapper@bb9d9cd 。
  3. 避免直接使用当前 master 分支,等待维护者将修复合并至主线后再更新。

讨论原作者:@FrankJhemuel 等,版权归原作者所有。

来源

本页事实对应的公开页面,以原文为准。

  1. GitHub stereolabs/zed-ros2-wrapper #432:Breaks compatibility with ROS 2 Humble due to image_transport API changes访问 2026-10-26