Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pack color and depth images into .bag #13181

Closed
jenadzitsiuk opened this issue Jul 22, 2024 · 3 comments
Closed

Pack color and depth images into .bag #13181

jenadzitsiuk opened this issue Jul 22, 2024 · 3 comments

Comments

@jenadzitsiuk
Copy link

Required Info
Camera Model D435i
Operating System & Version Ubuntu 22.04
Kernel Version (Linux Only) 6.5.0-1025-oem
Platform PC
Language {C++/python}

Issue Description

Is it possible to pack color and depth images into a .bag file? I see there is a converter that extracts data from the bag, what the simplest way to make a reverse process?

I want to pack data that comes from another source into RS format, could you please advise how to so this? Is there any info in the bag package formats?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jul 23, 2024

Hi @jenadzitsiuk I hope that the link below will be helpful in regard to SDK bag structure.

https://github.com/IntelRealSense/librealsense/tree/master/src/media/ros

There are a couple of discussions about converting images into a bag file, though I have not previously seen it done with the RealSense SDK's bag format, which has some differences to the ROS rosbag format

https://stackoverflow.com/questions/31432870/how-do-i-convert-a-video-or-a-sequence-of-images-to-a-bag-file

https://stackoverflow.com/questions/38700271/python-converting-image-time-series-to-ros-bag

#7845 (comment) discusses the RealSense SDK's bag format compared to the ROS rosbag format, and has a link to a rosbag parser project.

@jenadzitsiuk
Copy link
Author

Thank you for the links, I will take a look!

@MartyG-RealSense
Copy link
Collaborator

You are very welcome. I'm pleased that I could help. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants