librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

multi cameras problem of something that can be used as sync recognized number

Open sbnn123456 opened this issue 7 years ago • 4 comments

Required Info
Camera Model { D400 }
Firmware Version latest version
Operating System & Version {Win (10)
Kernel Version (Linux Only)
Platform PC
SDK Version
Language VC++
Segment VR

Issue Description

Hello , We are using two D415 cams and two PCs which can be sync to get the image in HW sync mode.

We are using the devices as follows: image

As the question is how we can recognized the same frame from two PCs saved images. Can we use "RS2_FRAME_METADATA_BACKEND_TIMESTAMP" as a flag to ensure that two frames from different PCs are synchronized?

sbnn123456 avatar Mar 15 '19 05:03 sbnn123456

One way would be to find an initial correspondence and then group the frames every t ( t = 1/FPS ) interval. Another way is to synchronize the clocks of the two PC and group them by the clock, but personally I do not prefer this way, since clocks are drifting, so you have to make really short recordings or have frequent synchronizations. Waiting for Intel's answer.

vladsterz avatar Mar 15 '19 13:03 vladsterz

One way would be to find an initial correspondence and then group the frames every t ( t = 1/FPS ) interval. Another way is to synchronize the clocks of the two PC and group them by the clock, but personally I do not prefer this way, since clocks are drifting, so you have to make really short recordings or have frequent synchronizations. Waiting for Intel's answer.

Hi,vladsterz

thank for your answering. suggestion from you is very helpful. Considering that we will change our mind to design the system in another way. thank u again.

sbnn123456 avatar Mar 18 '19 02:03 sbnn123456

Glad to be helpful. Just keep in mind that you have to have a grouping policy that has to be resilient to missing frames.

vladsterz avatar Mar 18 '19 08:03 vladsterz


Hi @sbnn123456, Great suggestion from @vladsterz. thank you. One thing I would like to add is to minimize the frame queue size if not using the pipeline. Please see: https://github.com/IntelRealSense/librealsense/wiki/Frame-Buffering-Management-in-RealSense-SDK-2.0#pipeline