rdk-x5-camera

配置并启动 RDK X5 上的 MIPI CSI 摄像头、USB 摄像头或双目深度摄像头(RealSense/ZED/Orbbec),通过 Web 浏览器预览实时画面。Use when the user wants to start a camera, preview video, capture images, or troubleshoot camera connection issues on RDK X5. Do NOT use for AI inference on camera feeds (use rdk-x5-ai-detect), audio/video encoding (use rdk-x5-media), or GPIO hardware (use rdk-x5-gpio).

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "rdk-x5-camera" with this command: npx skills add katherineedwards2475/rdk-x5-camera

RDK X5 Camera — 摄像头配置与图像采集

已适配摄像头

类型型号接口
MIPI CSIIMX219, IMX415, IMX477, OV5647, F37, GC4663CAM 0/1
MIPI 双目SC230ai, SC132gsCAM 0 + 1
USB任何 UVC 兼容(MJPEG/YUYV)/dev/videoX
深度相机Intel RealSense, ZED, Orbbec GeminiUSB 3.0

操作步骤

1. 启动 MIPI 摄像头

⚠️ 严禁带电插拔 MIPI 摄像头,否则烧坏模组。先断电再接线。

source /opt/tros/humble/setup.bash

# 单路 MIPI
ros2 launch mipi_cam mipi_cam.launch.py

# 双路 MIPI(需两个 CSI 接口都接上)
ros2 launch mipi_cam mipi_cam_dual_channel.launch.py

# 第二路需要 remap topic
ros2 run mipi_cam mipi_cam --ros-args --remap /image_raw:=/image_raw_alias

2. 启动 USB 摄像头

source /opt/tros/humble/setup.bash

# Step 1: 确认设备节点
ls /dev/video*
v4l2-ctl --list-devices

# Step 2: MJPEG 模式(推荐,低 CPU 占用)
ros2 launch hobot_usb_cam hobot_usb_cam.launch.py \
  usb_video_device:=/dev/video0

# Step 2 备选: YUYV→RGB 模式(兼容性更广)
ros2 launch hobot_usb_cam hobot_usb_cam.launch.py \
  usb_video_device:=/dev/video0 \
  usb_pixel_format:=yuyv2rgb \
  usb_image_width:=640 usb_image_height:=480

3. 启动双目深度摄像头

RealSense:

sudo apt-get install ros-humble-librealsense2* ros-humble-realsense2-* -y
ros2 launch realsense2_camera rs_launch.py \
  enable_rgbd:=true enable_sync:=true \
  align_depth.enable:=true enable_color:=true enable_depth:=true

ZED:

source /opt/tros/humble/setup.bash
ros2 launch hobot_zed_cam pub_stereo_imgs.launch.py need_rectify:=true

4. Web 浏览器预览

source /opt/tros/humble/setup.bash

# 编码 + WebSocket
ros2 launch hobot_codec hobot_codec_encode.launch.py &
ros2 launch websocket websocket.launch.py \
  websocket_image_topic:=/image_jpeg \
  websocket_only_show_image:=true

浏览器访问 http://<RDK_IP>:8000 查看画面。

5. ISP 图像调参

cd /app/multimedia_samples/tuning_tool
make && sudo ./run_tuning.sh

用于调整白平衡、曝光、降噪等 ISP 参数(C 源码需先编译)。

6. 停止所有摄像头服务

pkill -f "ros2.*cam" ; pkill -f "ros2.*websocket" ; pkill -f "ros2.*codec"

排查故障

现象原因解决
/dev/video* 无设备USB 未识别或 MIPI 未接好检查物理连接;dmesg | tail 查看内核日志
启动报 Open camera failed设备节点错误或被占用fuser /dev/video0 查看占用进程,kill 后重试
Web 页面无画面WebSocket 未启动或端口被占确认 websocket 节点运行中:ros2 node list
MIPI 画面全黑排线松动或型号不匹配断电重新插拔排线;检查 dmesg 中 sensor probe 日志
USB 帧率低YUYV 模式 CPU 占用高切换为 MJPEG 模式,或降低分辨率

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Rdk X5 Tros

使用 RDK X5 上的 TogetheROS.Bot (tros.b) Humble 框架:启动 43 个预装 ROS2 算法包、管理 ROS2 话题/节点/服务、构建摄像头+AI+输出(Web/语音/HDMI)集成 pipeline、创建自定义 ROS2 工作空间。Use when the user ment...

Registry SourceRecently Updated
2670Profile unavailable
Automation

Rdk X5 Ai Detect

在 RDK X5 的 10TOPS BPU 上运行单个 AI 推理算法:YOLO 目标检测、图像分类、语义分割、人脸识别、手势识别、人体关键点、开放词汇检测(DOSOD/YOLO-World)、双目深度估计、语音识别、端侧轻量 LLM(≤2B 参数量化模型)。Use when the user wants to...

Registry SourceRecently Updated
2500Profile unavailable
Automation

Rdk X5 System

修改和管理 RDK X5 系统配置:查看系统版本/硬件信息/系统日志、rdk-backup 一键备份与恢复、apt OTA 升级、miniboot 固件更新、CPU/BPU 频率调节与温度阈值设置、config.txt 配置修改、实时内核切换、systemd 开机自启动、存储扩容。Use when the use...

Registry SourceRecently Updated
2620Profile unavailable
Automation

Rdk X5 Gpio

控制 RDK X5 40pin 排针接口:GPIO 数字输入/输出、PWM 舵机/电机/LED 呼吸灯、I2C 传感器通信、SPI 总线、UART 串口、CAN 总线。Use when the user wants to control GPIO pins, drive servos/motors/LEDs wi...

Registry SourceRecently Updated
2911Profile unavailable