View my account

How do I record a .bag file using the MATLAB RealSense wrapper?

Comments

2 comments

  • MartyG

    Hi Yalwis  Discussions in the links below about recording a bag file in the RealSense MATLAB wrapper recommend using cfg.enable_record_to_file('FILEPATH'); which your script already basically does.

     

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

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

     

    I note that in your pipe.start line, you have not placed cfg in the brackets.  Doing so is usually necessary to inform the script that it should use the cfg instructions provided in the lines above the pipe.start instruction, otherwise the cfg instructions will be ignored by the script and it would not use cfg.enable_record_to_file.  So please try changing the pipe.start line to the one below.

     

    profile = pipe.start(cfg);

    0
    Comment actions Permalink
  • Yalwis

    Thank you, that seems to do the trick!

    0
    Comment actions Permalink

Please sign in to leave a comment.