Documentation / Gemini 330 series /
ROS 1 Tutorial Depth & Colot Alignment

ROS 1 Tutorial Depth & Colot Alignment

This section explains how to align depth images with color images to create an overlay image using ROS. This is particularly useful for applications requiring synchronized visual information from different sensor modalities.



Commands to Align and View Depth and Color Images


  1. Basic Depth to Color Alignment:To simply align the depth image to the color image, use the following command:
    roslaunch orbbec_camera gemini2R.launch depth_registration:=true

    This command activates the depth registration feature without opening a viewer.

  2. Viewing Depth to Color Overlay:If you wish to view the depth to color overlay, you need to enable the viewer by using the command below:
    roslaunch orbbec_camera gemini2R.launch depth_registration:=true enable_d2c_viewer:=true

    This launches the camera node with depth to color registration and opens a viewer to display the overlay image.



Selecting Topics in RViz


To visualize the aligned images in RViz:

  1. Launch RViz after running one of the above commands.
  2. Select the topic for the depth to color overlay image. An example topic selection is shown here:



Example of Depth to Color Overlay


After selecting the appropriate topic in RViz, you will be able to see the depth to color overlay image. Here’s what it might look like:

Stay updated

Be the first to learn about our new
products and updates.