ROS 1 教程 启动设备节点

ROS 1 教程 启动设备节点

ROS中启动摄像头节点

本指南提供了如何使用ROS启动启用彩色点云功能的摄像头节点的说明。

启动节点的命令

要启动摄像头节点,请在终端执行以下命令:

roslaunch orbbec_camera gemini_330_series.launch enable_colored_point_cloud:=true enable_left_ir:=true enable_right_ir:=true

此命令启动摄像头节点并启用彩色点云。

发布的主题

一旦摄像头节点运行,它将在多个ROS主题上发布数据。以下是可用主题的列表:

● IMU数据和信息:

○ camera/accel/imu_info

○ camera/gyro/imu_info

○ camera/gyro_accel/sample

● 彩色摄像头主题:

○ /camera/color/camera_info

○ /camera/color/image_raw

○ /camera/color/image_raw/compressed

○ /camera/color/image_raw/compressedDepth

○ /camera/color/image_raw/theora

○ /camera/color/metadata

● 深度摄像头主题:

○ /camera/depth/camera_info

○ /camera/depth/image_raw

○ /camera/depth/image_raw/compressed

○ /camera/depth/image_raw/compressedDepth

○ /camera/depth/image_raw/theora

○ /camera/depth/metadata

○ /camera/depth/points

○ /camera/depth_filter_status

○ /camera/depth_registered/points

○ /camera/depth_to_color

○ /camera/depth_to_left_ir

○ /camera/depth_to_right_ir

● 红外摄像头主题:

○ /camera/left_ir/camera_info

○ /camera/left_ir/image_raw

○ /camera/left_ir/image_raw/compressed

○ /camera/left_ir/image_raw/compressedDepth

○ /camera/left_ir/image_raw/theora

○ /camera/left_ir/metadata

○ /camera/right_ir/camera_info

○ /camera/right_ir/image_raw

○ /camera/right_ir/image_raw/compressed

○ /camera/right_ir/image_raw/compressedDepth

○ /camera/right_ir/image_raw/theora

○ /camera/right_ir/metadata

● 其他主题:

○ /diagnostics

○ /parameter_events

○ /rosout

○ /rosout_agg

RViz中可视化数据

要查看PointCloud或图像数据,请使用RViz:

1. 启动RViz。

2. 从已发布主题列表中选择您希望可视化的主题。

3. 将选定的主题添加到RViz以开始查看数据。

示例可视化

以下是在RViz中可视化可能出现的示例:

● 点云可视化

 image.png

● 图像数据可视化

 image.png