Extract only IMU data from D435i .bag file
Hello,
I have recorded 400 .bag files and need to extract only the IMU data to synchronize the D435i data stream with my local motion capture system.
Using the command rs-convert.exe -i myfile.bag -v output, I can extract depth, color, IMU, and pose data. However, this generates multiple CSV files per .bag file, which I do not need at the moment. I am only interested in the single CSV file containing the accelerometer and gyroscope data.
Is there a way to extract just this single CSV file?
Thank you kindly,
Maniacco Maximilian
-
Hi Mmaniacco A single specific frame cannot be exported from a bag file using the rs-convert tool, unfortunately.
It is possible to export IMU data to a .csv log file using the rs-data-collect.C++ tool but it is designed to use a live camera. To make it work with a bag file, you may need to edit the program's code to use a bag as its data source instead of a camera and then re-build the code into an executable program. I am not aware of anyone who has previously attempted to convert this program for use with a bag before though.
https://github.com/IntelRealSense/librealsense/tree/master/tools/data-collect
Please sign in to leave a comment.
Comments
1 comment