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

> 原文链接：https://robotics.hellobike.com/pitfalls/2026-10-23-realsense-ros-3456
> 频道：pitfalls | 更新日期：2026-10-23 | 标签：auto, github-issue, realsense-ros
> 核心摘要：D435i启动Y16红外流报profile错误，需改用infra_profile参数并仅支持Y16格式获取未校正图像。

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

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[Acquire the raw distorted image from the D435i camera](https://github.com/realsenseai/realsense-ros/issues/3456)（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 等，版权归原作者所有。
:::

## 原始参考来源 (Sources)

- [GitHub IntelRealSense/realsense-ros #3456：Acquire the raw distorted image from the D435i camera](https://github.com/realsenseai/realsense-ros/issues/3456)