# D435i外部触发下Color与Depth无法硬件同步及FPS配置报错

> 原文链接：https://robotics.hellobike.com/pitfalls/2026-10-23-realsense-ros-3444
> 频道：pitfalls | 更新日期：2026-10-23 | 标签：auto, github-issue, realsense-ros
> 核心摘要：D435i因RGB传感器独立无法直接硬件同步，需匹配Color/Depth FPS并调整外部触发频率至相机FPS的一半以实现Genlock同步。

# D435i外部触发下Color与Depth无法硬件同步及FPS配置报错

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[d435i hardware sync in color image with external trigger](https://github.com/realsenseai/realsense-ros/issues/3444)（GitHub IntelRealSense/realsense-ros #3444）

**状态**：已解决

## 问题

在realsense-ros中使用D435i外部触发时，设置`inter_cam_sync_mode: 4`仅同步Depth流，Color流不受控。将depth_fps和color_fps设为15时报错`Given stream configuration is not supported`并回退默认30FPS。即使关闭自动曝光优先级，Color帧率仍无法与外部触发对齐，导致双色深数据不同步。

## 环境

Intel RealSense D435i, realsense-ros (ROS1), 外部触发源

## 解决办法

1. 修正Launch参数：自定义流配置时必须同时指定width、height和fps三个参数（如`depth_width:=848 depth_height:=480 depth_fps:=15 color_width:=1280 color_height:=720 color_fps:=15`），否则设备拒绝配置并回退默认值。
2. 强制FPS匹配：D435i的RGB与Depth同步依赖两路流FPS严格一致，必须将color_fps与depth_fps设为相同支持值（6/15/30/60）。
3. 启用Genlock模式：设置`/camera/stereo_module/inter_cam_sync_mode`为4（Genlock Slave），此时外部触发频率需设为相机FPS的一半（如相机30FPS对应触发7.5Hz，15FPS对应7.5Hz或尝试10Hz）。
4. 辅助同步设置：保持`enable_auto_exposure: true`且`auto_exposure_prior…

讨论原作者：@DannyLi001 等，版权归原作者所有。
:::

## 原始参考来源 (Sources)

- [GitHub IntelRealSense/realsense-ros #3444：d435i hardware sync in color image with external trigger](https://github.com/realsenseai/realsense-ros/issues/3444)