View my account

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



  • 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.



    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);

    Comment actions Permalink
  • Yalwis

    Thank you, that seems to do the trick!

    Comment actions Permalink

Please sign in to leave a comment.