IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.49k stars 4.8k forks source link

Documentation or example on using the rs2::asynchronous_syncer #2662

Closed yashmanian closed 5 years ago

yashmanian commented 5 years ago

Required Info
Camera Model D400
Operating System & Version Ubuntu 16
Platform PC
Language C++

Issue Description

I am trying to asynchronously get access to frames from the camera. I am defining both the depth and color sensor separately, and I am using the sensor.start() callback to pass in an object that will asynchronously grab frames for me. The problem is that I am unable to get the color and depth frames at the same time. Meaning the frame index on the color frame will be one behind the depth sensor. I was previously told that I could use the rs2::asynchronous_syncer to pass in sensor objects, and it will get me a synced frameset via asynchronous callback. The post can be found here: https://github.com/IntelRealSense/librealsense/issues/2647 I have been unable to find any documentation on using this function to sync frames. It would be great if someone could point me in the direction of more descriptive documentation, suggest an alternative to my problem.

RealSense-Customer-Engineering commented 5 years ago

[Realsense Customer Engineering Team Comment] Hi @yashmanian,

Still need any support for this topic?

yashmanian commented 5 years ago

I have a solution working, but I would like to learn about the rs2::asynchronous_syncer. I still haven't found any good documentation about this. It would be great if you could point me in the direction of some

dorodnic commented 5 years ago

I agree we still need to improve the documentation regarding the syncer.

There are many aspects to this topic:

Hardware

syncer class

Frame-set expansion

Apologize for the delayed response, let me know if you have any questions.