IntelRealSense / librealsense

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

Unable to access frame and sensor timestamps #6447

Closed Inffzy99 closed 4 years ago

Inffzy99 commented 4 years ago
Required Info
Camera Model D435
Firmware Version 05.12.03.00
Operating System & Version Win 10
Platform PC
SDK Version 2.0
Language C++
Segment AR

Issue Description

I am having trouble with getting Kinect Fusion to work with Nvidia GPU, so I want to check if the timestamps are correct. From the 4 types of time related RS2_FRAME_METADATA, I am able to get RS2_FRAME_METADATA_TIME_OF_ARRIVAL and RS2_FRAME_METADATA_BACKEND_TIMESTAMP but not RS2_FRAME_METADATA_FRAME_TIMESTAMP or RS2_FRAME_METADATA_SENSOR_TIMESTAMP. Also, get_frame_timestamp_domain() outputs System Time and the outputs from get_timestamp() are all the same. I have two D435 cameras and both are experiencing the same condition. I'm not sure what is wrong.

MojamojaK commented 4 years ago

Have you enabled metadata? https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_windows.md#enabling-metadata-on-windows

rafaelspring commented 4 years ago

Turn off global time: sensor.set_option(RS2_OPTION_GLOBAL_TIME_ENABLED, 0);