IntelRealSense深度相机D455在ROS1运行中的消息内容

本文详细描述了如何在ROS1环境中使用IntelRealSenseD455深度相机,包括启动节点、发布消息到不同topic以及查看关键参数,如相机信息、图像数据和点云数据,以及tf静态信息。

在这里插入图片描述

Physical Port:: /sys/devices/pci0000:00/0000:00:11.0/0000:02:03.0/usb1/1-1/1-1:1.0/video4linux

Start the camera node
To start the camera node in ROS:

通过下面命令所有相关信息通过ros topic的方式发布出去

roslaunch realsense2_camera rs_camera.launch

rosnode查看

/camera/realsense2_camera
/camera/realsense2_camera_manager
/rosout

rqt_graph查看

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

rostopic查看

/camera/color/camera_info
/camera/color/image_raw
/camera/color/image_raw/compressed
/camera/color/image_raw/compressed/parameter_descriptions
/camera/color/image_raw/compressed/parameter_updates
/camera/color/image_raw/compressedDepth
/camera/color/image_raw/compressedDepth/parameter_descriptions
/camera/color/image_raw/compressedDepth/parameter_updates
/camera/color/image_raw/theora
/camera/color/image_raw/theora/parameter_descriptions
/camera/color/image_raw/theora/parameter_updates
/camera/color/metadata
/camera/depth/camera_info
/camera/depth/image_rect_raw
/camera/depth/image_rect_raw/compressed
/camera/depth/image_rect_raw/compressed/parameter_descriptions
/camera/depth/image_rect_raw/compressed/parameter_updates
/camera/depth/image_rect_raw/compressedDepth
/camera/depth/image_rect_raw/compressedDepth/parameter_descriptions
/camera/depth/image_rect_raw/compressedDepth/parameter_updates
/camera/depth/image_rect_raw/theora
/camera/depth/image_rect_raw/theora/parameter_descriptions
/camera/depth/image_rect_raw/theora/parameter_updates
/camera/depth/metadata
/camera/extrinsics/depth_to_color
/camera/motion_module/parameter_descriptions
/camera/motion_module/parameter_updates
/camera/realsense2_camera_manager/bond
/camera/rgb_camera/auto_exposure_roi/parameter_descriptions
/camera/rgb_camera/auto_exposure_roi/parameter_updates
/camera/rgb_camera/parameter_descriptions
/camera/rgb_camera/parameter_updates
/camera/stereo_module/auto_exposure_roi/parameter_descriptions
/camera/stereo_module/auto_exposure_roi/parameter_updates
/camera/stereo_module/parameter_descriptions
/camera/stereo_module/parameter_updates
/diagnostics
/rosout
/rosout_agg
/tf
/tf_static

/camera/color/camera_info的话题消息内容

---
header: 
  seq: 121
  stamp: 
    secs: 1701757644
    nsecs: 890126705
  frame_id: "camera_color_optical_frame"
height: 480
width: 640
distortion_model: "plumb_bob"
D: [-0.05529118701815605, 0.06646831333637238, 0.00021844496950507164, 8.94237746251747e-05, -0.021805301308631897]
K: [386.3393859863281, 0.0, 324.54986572265625, 0.0, 385.8198547363281, 241.42041015625, 0.0, 0.0, 1.0]
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
P: [386.3393859863281, 0.0, 324.54986572265625, 0.0, 0.0, 385.8198547363281, 241.42041015625, 0.0, 0.0, 0.0, 1.0, 0.0]
binning_x: 0
binning_y: 0
roi: 
  x_offset: 0
  y_offset: 0
  height: 0
  width: 0
  do_rectify: False
---

/camera/depth/camera_info的话题消息内容

---
header: 
  seq: 41
  stamp: 
    secs: 1701757805
    nsecs: 683720589
  frame_id: "camera_depth_optical_frame"
height: 480
width: 640
distortion_model: "plumb_bob"
D: [0.0, 0.0, 0.0, 0.0, 0.0]
K: [386.1236267089844, 0.0, 323.4205322265625, 0.0, 386.1236267089844, 240.564453125, 0.0, 0.0, 1.0]
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
P: [386.1236267089844, 0.0, 323.4205322265625, 0.0, 0.0, 386.1236267089844, 240.564453125, 0.0, 0.0, 0.0, 1.0, 0.0]
binning_x: 0
binning_y: 0
roi: 
  x_offset: 0
  y_offset: 0
  height: 0
  width: 0
  do_rectify: False
---

/camera/motion_module/parameter_descriptions /摄像机运动模块参数说明的消息内容

groups: 
  - 
    name: "Default"
    type: ''
    parameters: 
      - 
        name: "frames_queue_size"
        type: "int"
        level: 0
        description: "Max number of frames you can hold at a given time. Increasing this number will reduce\
  \ frame drops but increase latency, and vice versa"
        edit_method: ''
      - 
        name: "enable_motion_correction"
        type: "bool"
        level: 0
        description: "Enable/Disable Automatic Motion Data Correction"
        edit_method: ''
      - 
        name: "global_time_enabled"
        type: "bool"
        level: 0
        description: "Enable/Disable global timestamp"
        edit_method: ''
    parent: 0
    id: 0
max: 
  bools: 
    - 
      name: "enable_motion_correction"
      value: True
    - 
      name: "global_time_enabled"
      value: True
  ints: 
    - 
      name: "frames_queue_size"
      value: 32
  strs: []
  doubles: []
  groups: 
    - 
      name: "Default"
      state: True
      id: 0
      parent: 0
min: 
  bools: 
    - 
      name: "enable_motion_correction"
      value: False
    - 
      name: "global_time_enabled"
      value: False
  ints: 
    - 
      name: "frames_queue_size"
      value: 0
  strs: []
  doubles: []
  groups: 
    - 
      name: "Default"
      state: True
      id: 0
      parent: 0
dflt: 
  bools: 
    - 
      name: "enable_motion_correction"
      value: True
    - 
      name: "global_time_enabled"
      value: True
  ints: 
    - 
      name: "frames_queue_size"
      value: 16
  strs: []
  doubles: []
  groups: 
    - 
      name: "Default"
      state: True
      id: 0
      parent: 0
---

/camera/stereo_module/auto_exposure_roi/parameter_descriptions 相机立体模块自动曝光roi参数说明的消息内容

groups: 
  - 
    name: "Default"
    type: ''
    parameters: 
      - 
        name: "left"
        type: "int"
        level: 0
        description: "auto-exposure left coordinate"
        edit_method: ''
      - 
        name: "right"
        type: "int"
        level: 0
        description: "auto-exposure right coordinate"
        edit_method: ''
      - 
        name: "top"
        type: "int"
        level: 0
        description: "auto-exposure top coordinate"
        edit_method: ''
      - 
        name: "bottom"
        type: "int"
        level: 0
        description: "auto-exposure bottom coordinate"
        edit_method: ''
    parent: 0
    id: 0
max: 
  bools: []
  ints: 
    - 
      name: "left"
      value: 639
    - 
      name: "right"
      value: 639
    - 
      name: "top"
      value: 479
    - 
      name: "bottom"
      value: 479
  strs: []
  doubles: []
  groups: 
    - 
      name: "Default"
      state: True
      id: 0
      parent: 0
min: 
  bools: []
  ints: 
    - 
      name: "left"
      value: 0
    - 
      name: "right"
      value: 0
    - 
      name: "top"
      value: 0
    - 
      name: "bottom"
      value: 0
  strs: []
  doubles: []
  groups: 
    - 
      name: "Default"
      state: True
      id: 0
      parent: 0
dflt: 
  bools: []
  ints: 
    - 
      name: "left"
      value: 0
    - 
      name: "right"
      value: 639
    - 
      name: "top"
      value: 0
    - 
      name: "bottom"
      value: 479
  strs: []
  doubles: []
  groups: 
    - 
      name: "Default"
      state: True
      id: 0
      parent: 0
---

/tf_static的话题消息内容

 - 
    header: 
      seq: 0
      stamp: 
        secs: 1701759021
        nsecs: 810140552
      frame_id: "camera_color_frame"
    child_frame_id: "camera_color_optical_frame"
    transform: 
      translation: 
        x: 0.0
        y: -0.0
        z: -0.0
      rotation: 
        x: -0.5
        y: 0.4999999999999999
        z: -0.5
        w: 0.5000000000000001
---

通过下面命令直接查看RVIZ中点云信息

roslaunch realsense2_camera demo_pointcloud.launch

在这里插入图片描述

rosnode查看

/camera/realsense2_camera
/camera/realsense2_camera_manager
/camera/rviz
/rosout

rqt_graph查看

在这里插入图片描述
在这里插入图片描述

rostopic查看

/camera/color/camera_info
/camera/color/image_raw
/camera/color/image_raw/compressed
/camera/color/image_raw/compressed/parameter_descriptions
/camera/color/image_raw/compressed/parameter_updates
/camera/color/image_raw/compressedDepth
/camera/color/image_raw/compressedDepth/parameter_descriptions
/camera/color/image_raw/compressedDepth/parameter_updates
/camera/color/image_raw/theora
/camera/color/image_raw/theora/parameter_descriptions
/camera/color/image_raw/theora/parameter_updates
/camera/color/metadata
/camera/depth/camera_info
/camera/depth/color/points
/camera/depth/image_rect_raw
/camera/depth/image_rect_raw/compressed
/camera/depth/image_rect_raw/compressed/parameter_descriptions
/camera/depth/image_rect_raw/compressed/parameter_updates
/camera/depth/image_rect_raw/compressedDepth
/camera/depth/image_rect_raw/compressedDepth/parameter_descriptions
/camera/depth/image_rect_raw/compressedDepth/parameter_updates
/camera/depth/image_rect_raw/theora
/camera/depth/image_rect_raw/theora/parameter_descriptions
/camera/depth/image_rect_raw/theora/parameter_updates
/camera/depth/metadata
/camera/extrinsics/depth_to_color
/camera/motion_module/parameter_descriptions
/camera/motion_module/parameter_updates
/camera/pointcloud/parameter_descriptions
/camera/pointcloud/parameter_updates
/camera/realsense2_camera_manager/bond
/camera/rgb_camera/auto_exposure_roi/parameter_descriptions
/camera/rgb_camera/auto_exposure_roi/parameter_updates
/camera/rgb_camera/parameter_descriptions
/camera/rgb_camera/parameter_updates
/camera/stereo_module/auto_exposure_roi/parameter_descriptions
/camera/stereo_module/auto_exposure_roi/parameter_updates
/camera/stereo_module/parameter_descriptions
/camera/stereo_module/parameter_updates
/clicked_point
/diagnostics
/initialpose
/move_base_simple/goal
/rosout
/rosout_agg
/tf
/tf_static

比之前运行多了一些话题

/camera/pointcloud/parameter_descriptions
/camera/pointcloud/parameter_updates
/clicked_point
/initialpose
/move_base_simple/goal
### 关于Intel RealSense D455深度相机 #### 硬件规格 Intel RealSense D455 是一款先进的立体深度摄像头,具有更高的精度和灵活性。以下是其主要硬件规格[^1]: - **传感器类型**: 双目红外传感器搭配 RGB 传感器。 - **分辨率**: - 深度图像: 支持高达 1280×720 的分辨率。 - RGB 图像: 支持高达 1920×1080 的分辨率。 - **视场角 (FOV)**: - 深度 FOV: 水平约 70°, 垂直约 45°。 - RGB FOV: 水平约 69°, 垂直约 42°。 - **工作距离范围**: 近至 0.2 米,远至 10 米(具体取决于场景条件)。 - **内置IMU**: 配置有六轴陀螺仪/加速度计组合,适用于 SLAM 和 VIO 应用。 #### 软件支持与开发工具链 对于开发者而言,D455 提供了全面的支持框架来简化开发流程[^3]: - **SDK 版本**: Intel 提供的 RealSense SDK 2.0 是核心软件组件,它允许访问设备的所有功能并处理复杂的数据流操作。 - **编程接口**: 支持 C++, Python 多种主流语言绑定;其中 Python 接口特别受到初学者欢迎因为语法简洁友好。 - **ROS 集成**: 如果目标是在 ROS 平台下运行,则可以利用 `realsense2_camera` 包完成节点创建和服务调用等功能[^1]。 #### 安装指导概览 为了能够在 Linux 或 Windows 上顺利部署应用程序,请遵循以下基本步骤: 1. 下载最新版 RealSense SDK 2.0,并按照官方说明完成编译安装过程。 2. 对于 Ubuntu 用户来说,在终端执行命令如 `sudo apt install librealsense2-dkms` 来设置驱动层服务可能是一个不错的选择。 3. 当涉及到机器人仿真可视化时,可以通过加载 realsense2_description 包中的 URDF 文件让 RViz 正确渲染出对应型号的机械臂或者移动平台模型[^2]。 ```bash # 更新系统包索引 sudo apt update && sudo apt upgrade -y # 添加librealsense仓库密钥及源地址 curl https://apt.repos.intel.com/realsense/file:///repo.key | sudo apt-key add - echo "deb [arch=amd64] https://apt.repos.intel.com/realsense ubuntu main" | sudo tee /etc/apt/sources.list.d/intel-realsense-latest.list # 执行APT更新后再安装所需软件包 sudo apt update; sudo apt install librealsense2-dev ``` 以上脚本片段展示了如何在基于Debian系统的机器上准备环境以便进一步测试或生产用途。 ---
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

没有余地 Meiyouyudi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值