View my account

Callback function does not provide color frames with depth frames

Comments

4 comments

  • Zulkifli Halim

    Hello Contrix,

     

    Thank you for contacting us.

     

    Can you share with us the screenshot of the output that you get for both rs2_pipeline_start_with_config_and_callback and rs2_pipeline_start_with_config?

     

    Sincerely,

    Zulkifli Halim

    Intel Customer Support 

    0
    Comment actions Permalink
  • Contrix Hanaji

    Hello Zulkifli,

    the output with rs2_pipeline_start_with_config is like:

    Depth
    Color
    Depth
    Color
    Depth
    Color
    Depth
    Color
    Depth

    the output with rs2_pipeline_start_with_config_and_callback is like:

    Depth
    Depth
    Depth
    Depth
    Depth
    Depth
    Depth
    0
    Comment actions Permalink
  • Michael Tandy
        rs2_config_enable_stream(
    config, RS2_STREAM_COLOR, 0, 960, 540, RS2_FORMAT_RGB8, 6, &e);
    check_rs_error(e);

    rs2_config_enable_stream(
    config, RS2_STREAM_DEPTH, 0, 320, 240, RS2_FORMAT_Z16, 30, &e);
    check_rs_error(e);

    Looks like you're running your colour stream at 6fps while your depth stream runs at 30fps. Does the problem remain if you run them both at 30fps?

    0
    Comment actions Permalink
  • Contrix Hanaji

    Of course the streams were running for some times. The result is the same for same frequency 30 Hz.

    I tested the approximately same program (different resolution and fps) with D455 and the result is same - no color frames with callback function.

    0
    Comment actions Permalink

Please sign in to leave a comment.