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

Using a single rs2::syncer to synchronize between devices? #5044

Closed
evercoast-smm opened this issue Oct 14, 2019 · 6 comments
Closed

Using a single rs2::syncer to synchronize between devices? #5044

evercoast-smm opened this issue Oct 14, 2019 · 6 comments

Comments

@evercoast-smm
Copy link

Camera Model: D415
Firmware Version: 05.11.15.00
OS: Ubuntu 18.04 with kernel 4.18.20-041820-generic
Platform: PC
SDK Version: librealsense-2.29.0
Segment: Telecommunications

https://github.com/IntelRealSense/librealsense/blob/master/doc/frame_lifetime.md

^^ The above doc states:

You can also use a single rs2::syncer to synchronize between devices, assuming it makes sense.

If you could please elaborate on this idea and how it might be utilized? Also, is there any documentation or example code related to the 'syncer' classes?

Thank you!

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Oct 14, 2019

There is a user-contributed script here for using rs2::syncer with multiple cameras:

#4158 (comment)

More documentation on syncer is here:

https://github.com/IntelRealSense/librealsense/wiki/Frame-Buffering-Management-in-RealSense-SDK-2.0#syncer

@dorodnic
Copy link
Contributor

As long as frame timestamp domain equals global time (or system time), it should be possible to use syncer to bundle frames from different sensors. It is problematic when using raw hardware clocks.

@evercoast-smm
Copy link
Author

Thank you @MartyG-RealSense and @dorodnic.

Is there a recommended queue size for the rs2::syncer? The constructor defaults to 1?

@MartyG-RealSense
Copy link
Collaborator

Have you seen the advice Dorodnic provided yesterday in your frame queue best practices post please?

#5041 (comment)

@evercoast-smm
Copy link
Author

evercoast-smm commented Oct 17, 2019

Yes, I have! And thank you for the links; very helpful.

@evercoast-smm
Copy link
Author

We fully understand this now, can close the ticket. Thank you to everyone for your help!

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

No branches or pull requests

3 participants