View my account

realSense 435i Matlab Error

Comments

17 comments

  • MartyX Grover

    Hi Rlt1  There was a case involving Error using librealsense_mex  Frame didn't arrive within 15000 with the depth_example.m example program in January 2021.  It was thought that the likely cause was using a MATLAB version other than the 2017b version recommended by the MATLAB wrapper's documentation (such as MATLAB 2020a).

    https://github.com/IntelRealSense/librealsense/issues/8113

    Which MATLAB version are you using please?

    0
    Comment actions Permalink
  • Rlt1

    Marty

    One more thing.  I did not build from source.  I did the exe install with Intel.RealSense.SDK-WIN10-2.41.0.2657

    0
    Comment actions Permalink
  • MartyX Grover

    The MATLAB version being used is likely to be the main cause of the problem, rather than the method by which librealsense was installed.  An official feature request was submitted to Intel in January 2021 to support MATLAB 2020b but there is no time schedule available for if / when it may be implemented.  In the meantime, using MATLAB 2017b with the RealSense MATLAB wrapper may be the only solution. 

    0
    Comment actions Permalink
  • Rlt1

    Don't have 2017b .  Do you see the same problem with running Matlab in a Linux environment Ubuntu 18.04

    0
    Comment actions Permalink
  • MartyX Grover

    The RealSense MATLAB wrapper is only for Windows 10, so there would be no way to test it in Ubuntu.

    0
    Comment actions Permalink
  • Rlt1

    Marty

    Is there any documentation for the Mex file construction.  That may be a possible solution for both OS's . I've done that before.

    Thanks

     

    0
    Comment actions Permalink
  • MartyX Grover

    I am not aware of an official documentation for mex file creation, though there was a RealSense user who attempted to do so.

    https://github.com/IntelRealSense/librealsense/issues/4385

    0
    Comment actions Permalink
  • Rlt1

    Marty

    Wouldn't the group that built the SDK have the information for the MEX file generation

    Thanks for the Help

    0
    Comment actions Permalink
  • MartyG

    The developer called lramati was the main programmer on the non-example core files of the MATLAB wrapper, including the mex related files, according to the GitHub details associated with the files.  

    https://github.com/lramati

     

    0
    Comment actions Permalink
  • Rlt1

    Marty

    Installed Matlab 2017b and still have the same problem.  Is there a way on github to get Iramati's email address.

    Thanks

     

    0
    Comment actions Permalink
  • MartyG

    An email contact is on the GitHub profile link above, under his name in the small side-panel.

    0
    Comment actions Permalink
  • Jbutle60

    Is this issue still unresolved and the only solution is to use Matlab 2017?

    0
    Comment actions Permalink
  • MartyG

    Hi Jbutle60  You mentioned in a deleted post on this forum that you had the error Unable to resolve the name realsense.pipeline when using depth_example.  The link below has information about resolving that issue.

    https://github.com/IntelRealSense/librealsense/issues/5376

     

    MATLAB versions newer than 2017 have been able to be used with RealSense cameras.

    https://support.intelrealsense.com/hc/en-us/community/posts/1500000577481/comments/1500000640542

     

     

    0
    Comment actions Permalink
  • Jbutle60

    Hi MartyG,

    The behavior I am seeing with Matlab 2022b is that I can run a Matlab example once and then when I try to run an example a second time I see the error 'Frame didn't arrive within 15000'. Sometimes Matlab will completely freeze and I will need to kill it with Task Manager.

    0
    Comment actions Permalink
  • MartyG

    There have been a few past cases of this error with depth_example.m.  The RealSense users in those cases found that the error disappeared if the 2017b version of MATLAB was used.

     

    Are you able to successfully use any of the wrapper's other example programs without the error occurring?

    advanced_mode_example.m
    capture_example.m
    depth_view_example.m
    pointcloud_example.m
    rosbag_example.m

     

    One RealSense user with this error created their own MATLAB depth script that worked for them.

    https://github.com/IntelRealSense/librealsense/issues/9773#issuecomment-925553900

    0
    Comment actions Permalink
  • Jbutle60

    I have the same issue with the capture_example.m to.

    0
    Comment actions Permalink
  • MartyG

    The RealSense MATLAB wrapper only has official support for MATLAB 2017b.  The wrapper has been able to work with newer versions (2019, 2020, 2021) without official support in the wrapper for those versions, though sometimes with errors.

     

    Do you have the option of trying the examples with an older MATLAB version such as 2020b or 2021b to determine whether the problem is with 2022b specifically, please?

    0
    Comment actions Permalink

Please sign in to leave a comment.