Items with no label
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
3338 Discussions

How to record multiple realsense (e.g. D415) simultaneously from one computer using bag file?

ZHe00
Beginner
2,067 Views

I want to record both color and depth information from two realsense at the same time. I am using D415 and python. Here is the code I found online. Check here https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/box_dimensioner_multicam/box_dimensioner_multicam_demo.py#121 and https://github.com/IntelRealSense/librealsense/blob/79dda7f00ebde9564f1a2053b8ab95b7ba41ac69/wrappers/python/examples/box_dimensioner_multicam/realsense_device_manager.py#198

 

I found using wait_for_frames will cause lags between two bag files. Then some suggested to use poll_for_frames, like the below. I copied from the examples. However, it reported errors for this function all the time. Anyone has clues for that?

 

streams = device.pipeline_profile.get_streams() frameset = rs.composite_frame(rs.frame()) device.pipeline.poll_for_frames(frameset)

 

0 Kudos
1 Solution
MartyG
Honored Contributor III
1,619 Views

A user who was trying to save the streams from two cameras to a bag identified that in their particular case, their problems were related to their PC's hard disk drive capabilities and not the SDK or their code.

 

https://github.com/IntelRealSense/librealsense/issues/2882#issuecomment-448596230

View solution in original post

0 Kudos
1 Reply
MartyG
Honored Contributor III
1,620 Views

A user who was trying to save the streams from two cameras to a bag identified that in their particular case, their problems were related to their PC's hard disk drive capabilities and not the SDK or their code.

 

https://github.com/IntelRealSense/librealsense/issues/2882#issuecomment-448596230

0 Kudos
Reply