-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Frame metadata timestamps #2188
Comments
Hello @Folyz , Backend_timestamp - Host clock applied to kernel-space buffers (URB) when the data from USB controller is copied to OS kernel. (HW->Kernel transition) The relations hold: The clocks of the first pair of timestamps and the second pairs are not related. |
Thanks for your answer, this is very clarifying. I also assume the best way to synchronize frames to the clock is currently using the frame_timestamp and backend_timestamp to translate the FW clock to the host clock? Or is there any other possibility for synchronization of these clocks? |
Is there a way to query the hardware clock of the Realsense module that is used to generate both Sensor_timestamp and Frame_timestamp? I want the ability to correlate the sensor timestamp to my host system timestamp and receiving the this per frame does not give me a reference point. |
I have the same question as bentank, currently there seems to be a time delay between sending the data and receiving thus backend_timestamp - frame_timestamp is inaccurate. |
Unfortunately there is no reliable way to translate HW timestamps to host time without making assumptions regarding USB layer. Such observations, however, would probably hold to a single well-established HW setup and cannot be extrapolated. |
[Realsense Customer Engineering Team Comment] |
Can we please add the functionality to request current sensor timestamp from Realsense firmware? This would mean ability to arbitrarily sample the sensor timestamp from the host. This would allow for correlation of sensor timestamp to a different timebase from the host and should be nearly trivial to implement in FW. |
[Realsense Customer Engineering Team Comment] You can enable "ENFORCE_METADATA" CMAKE option to get the sensor timestamp. |
Please see my comments above. While adding that flag helps to get the sensor timestamp, it does not help with correlating that timestamp to my host's timestamp. Can we please add the functionality to request current sensor timestamp from Realsense firmware? This would mean ability to arbitrarily sample the sensor timestamp from the host. This would allow for correlation of sensor timestamp to a different timebase from the host and should be nearly trivial to implement in FW. |
[Realsense Customer Engineering Team Comment] I can see your point. Will check internally about this feature request. |
@RealSense-Customer-Engineering Is there any update on this request? The same API for getSensorTimeStamp() is requested here as well: #2148 (comment) Thanks! |
@dorodnic, do you have insight or update on this issue? Thanks for all the support on the issues in this repo! |
[Realsense Customer Engineering Team Comment] |
@RealSense-Customer-Engineering - the ball is in your court on this issue. Why are you closing it? Do you know want to implement it? Please add some insight here? |
Very 'interesting' move to promise to "check internally about this feature request", and then close the issue due to inactivity... |
Does the global timestamp resolve this issue? |
Hi @MaheshAbnave The global timestamp generates a common timestamp for all streams by comparing device time and computer time, as described at #3909 |
Hello @ev-mp , can you explain the concept of "time of arrival" more deeply. I guess that means data transfer from kernel to visualization? |
Hi @monson-li The time_of_arrival timestamp is provided by the Host (EPOCH) clock and represents frame transfer from the USB driver to the librealsense SDK. There is further explanation at #6061 (comment) |
Thanks for your reply. |
Question about timestamps
I have a question about how the timestamps that are present in the metadata are generated. I'm using Nuitrack to extract skeletons from the image data and I need to synchronize this data with other devices. My main question is: to what event do the timestamps belong and what is the clock from which they are generated? My guess so far is:
Hopefully you can give me more clarity on this, I couldn't find it anywhere.
The text was updated successfully, but these errors were encountered: