View my account

Read Bag Files

Comments

3 comments

  • MartyX Grover

    Hi Andi Forster  I see that you are using the RealSense SDK's read_bag_example.py Python bag reading example program.

    https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/read_bag_example.py

     

    Please try placing your bag file in the same folder location as your script and inputting the command below:

    read_bag_example.py -i <name of bag>.bag

    For example, if the bag file was called 'test.bag'":

    read_bag_example.py -i test.bag

     

    The above instruction assumes that you have named your script 'read_bag_example.py'.  If your script has a different name then use your own program name.  For example, if you called it 'bagreader.py':

    bagreader.py -i test.bag

    0
    Comment actions Permalink
  • Yadavashwani467

    I have tried to read the bag file using the python wrapper example read bag file but I am not able to read the bag file. I have applied the above specified method but still the command just starts and then stops in split second without showing anything. Could you please provide the way by which I could read .bag file?

    I also want to display the images from the recorded bag file and then save those images. Is it possible to perform that using the above example?

    0
    Comment actions Permalink
  • MartyG

    Hi Yadavashwani467  Do you have access to the RealSense Viewer tool?  If you do then you can test playback of your bag to see whether the file itself is okay by dragging and dropping the bag file into the center panel of the Viewer to automatically initiate playback.

     

    It should playback bag files that were recorded in the RealSense SDK, using the Viewer or a bag recording script.  Bag files recorded in ROS with the command rosbag record will have incompatibility.

    0
    Comment actions Permalink

Please sign in to leave a comment.