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

Support of hardware timestamps #1294

Closed
TheMikeyR opened this issue Mar 7, 2018 · 4 comments
Closed

Support of hardware timestamps #1294

TheMikeyR opened this issue Mar 7, 2018 · 4 comments

Comments

@TheMikeyR
Copy link


Required Info
Camera Model D415
Firmware Version 05.08.15.00
Operating System & Version Linux (Ubuntu 16.04.4)
Kernel Version (Linux Only) 4.14.13-041413-generic / 4.4.38-tegra
Platform PC / Nvidia Jetson
SDK Version v2.10.0

Issue Description

Currently I only have System Time available from the realsense-viewer, it might be due to wrong kernel on pc, but the Jetson have a correct kernel version (though tegra version). Can you tell about plans on supporting more kernels / platforms? So I'm able to know which devices I'm able to use as a host to retrieve hardware timestamps for more reliable sync purposes.

The funny thing is that when running rs-save-to-disk.cpp I get a timestamp out for the color camera but not the depth stream, in the realsense-viewer it shows system time when clicking on info when showing the color stream. I assume backend timestamp is hardware timestamp or am I wrong?

I don't have any issues when following the installation guide for linux, no errors and all libraries installed.

@ev-mp
Copy link
Collaborator

ev-mp commented Mar 7, 2018

Hi @TheMikeyR ,
In order to get HW timestamp on Linux you need to apply metadata kernel patch, in addition to the Depth Formats patch to Tegra kernel as part of the Video4Linux backend preparations.

You can see how it's done for Ubuntu here : https://github.com/IntelRealSense/librealsense/blob/development/scripts/patch-realsense-ubuntu-xenial.sh#L71

Editing:
The above kernel patch would probably fail when applied "as-is" due differences imposed by vendors (Ubuntu/NVidia), so you'll have to manually adjust it

@TheMikeyR
Copy link
Author

@ev-mp so it should work out of box with my Ubuntu laptop right? The weird thing is that I still see "System Time" when looking through realsense-viewer and I've tried to run the script several times, and also followed the Video4Linux backend preparations Is it due to my kernel is not supported? 4.14.13-041413-generic

@ev-mp
Copy link
Collaborator

ev-mp commented Mar 8, 2018

Hi @TheMikeyR , We provide kernel patches for Ubuntu LTS kernels, currently 4.4, 4.10 and 4.13 as part of the manual installation guide or DKMS.
The patches were not verified with 4.14, as according to Ubuntu sources this version is not going to receive LTS stamp.

Nevertheless, porting from 4.13 to 4.14 should be relatively straight-forward.
Let us know whether you encounter specific issues and we will try to assist.

@ev-mp
Copy link
Collaborator

ev-mp commented Mar 25, 2018

Hello @TheMikeyR , I'm closing it as answered.
Feel free to reopen if you have issues with patching LTS kernels.

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

No branches or pull requests

4 participants