Skip to content

Driver should support IR-RGB and RGB colorization #13

@shaun-edwards

Description

@shaun-edwards

A recent change was made to support IR-RGB publishing/pointcloud colorization (#12). This change inadvertently broke other usage (#12 (comment)).

The change was introduced to address synchronization issues between the realsense RGB camera and the pointcloud. In the prior version, the pointcloud and RGB were generated by different cameras. Synchronization was performed by timestamp syncing, which sometimes meant frames were mismatched by as much as 1/2 the frame rate. This is problematic when dealing with moving captures.
Because the IR-RGB image is directly used in generating the pointcloud, the two are exactly synchronized. An additional side benefit is that the image and pointcloud are represented in the same frame, making pixel to pixel mapping very efficient. The only downside, is that the IR-RGB image has some small IR artifacts that cause the image to look slightly different from the RGB image. Mainly, the IR-RGB image is less sensitive to red color.

I recommend that all applications switch to the IR-RGB image from the RGB image for the improvements stated above. However, to support older usage, we should consider modifying the driver to support both. Allowing both RGB and IR-RGB image streams and some kind of switch to control which is used for colorized pointcloud mapping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions