View my account

L515 Can't work with OpenNI2.

Comments

5 comments

  • Mien Chen

    I think I found the issue on Rs2Stream.cpp.  

    In L515 it didn't support 640x480. However, code used 640x480 by defualt. It can work on D415 but not L515. The code was marked //TO DO. Any time frame to update the driver?

    Here is the code:

    if (m_oniType == ONI_SENSOR_DEPTH) m_videoMode.pixelFormat = ONI_PIXEL_FORMAT_DEPTH_1_MM;^M
    else if (m_oniType == ONI_SENSOR_COLOR) m_videoMode.pixelFormat = ONI_PIXEL_FORMAT_RGB888;^M
    else m_videoMode.pixelFormat = ONI_PIXEL_FORMAT_GRAY8;^M
    ^M
    // TODO: maybe use default sensor mode?^M
    m_videoMode.resolutionX = 640;^M
    m_videoMode.resolutionY = 480;^M
    m_videoMode.fps = 30;^M

    0
    Comment actions Permalink
  • Mien Chen

    After I add the code,

    if (m_oniType == ONI_SENSOR_COLOR)
    {
    m_videoMode.resolutionX = 960;
    m_videoMode.resolutionY = 540;
    }
    else
    {
    m_videoMode.resolutionX = 640;
    m_videoMode.resolutionY = 480;
    }

    There is no "Segmentation fault". However, it comes out "Error - expect color and depth to be in same resolution: D: 640x480, C: 960x540".

    0
    Comment actions Permalink
  • Jesus Garcia

    Hello Min Chien,

    As you can see in the code tree in librealsense, the OpenNI2 wrapper has not been touched in over 17 months, which was before the L515 was released. Not surprisingly, there are probably many incompatibility issues between the wrapper and the L515. The OpenNI2 wrapper has not been actively maintained and this is not likely to change any time soon. Since the code is open-source, the community may appreciate a pull request that fixes these issues, if possible.

    Sincerely,
    Jesus G.
    Intel Customer Support

    0
    Comment actions Permalink
  • Mien Chen

    Jesus,

    Thank you for comment. Actually we already found solution by repalcing OpenNI2 with Google Mediapipe and performed the same task. We also ported realsense SDK to work with Mediapipe. So there is no issue now.

    Thanks,

    Morris

     

     

    0
    Comment actions Permalink
  • Jesus Garcia

    Thank you for the follow-up, Morris.

    Sincerely,
    Jesus G.
    Intel Customer Support

    0
    Comment actions Permalink

Please sign in to leave a comment.