Skip to content

踩坑GitHub IntelRealSense/realsense-ros5 天前

D435i获取原始畸变图报错wrong profile selection ​

本文由 AI 根据公开内容整理,可能有误,请以原文为准:Acquire the raw distorted image from the D435i camera(GitHub IntelRealSense/realsense-ros #3456)

状态:已解决

问题 ​

使用realsense2_camera ROS2节点启动D435i的Y16红外流以获取未去畸变原始图像时,配置depth_module.infra1_format:=Y16与depth_module.profile:=1280x800x15后,节点报错Couldn't open Infra stream due to wrong profile selection,提示分辨率、帧率或格式不匹配,无法打开Infra1/2流。

环境 ​

Intel RealSense D435i相机,realsense2_camera ROS2驱动,ROS2环境,目标流为左右红外Y16格式1280x800@15fps。

解决办法 ​

  1. D435/D415系列RGB流畸变系数恒为零,仅左右红外Y16格式提供未校正原始图像用于标定验证。
  2. 启动命令中移除depth_module.profile参数,改用专用红外参数depth_module.infra_profile:=1280x800x15定义分辨率与帧率。
  3. 保持enable_infra1:=true、enable_infra2:=true及depth_module.infra1_format:=Y16、depth_module.infra2_format:=Y16配置不变。
  4. 若仍报错,运行rs-enumerate-devices命令查询传感器实际支持的Y16 profile组合,确保参数严格匹配硬件能力。
  5. RGB原始数据需通过librealsense获取RAW16帧并用OpenCV转换,ROS话题层无法直接输出未校正RGB。

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

来源

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

  1. GitHub IntelRealSense/realsense-ros #3456:Acquire the raw distorted image from the D435i camera访问 2026-10-26