如何获取当前时间戳 Tango SDK

How to get current timestamp Tango SDK

C++ Tango SDK 中的所有事件都带有时间戳。有什么办法可以询问当前时间戳吗?我试过使用 OS 的单调时钟,但有一个偏移量,我不知道如何在与 Tango 事件相同的参考中获取当前时间。

Project Tango 平板电脑使用不同于系统时间的时间戳通道来确保时间戳的正确性。没有在任意帧查询 Tango 时间戳的方法..

如果你想做数据同步,你可能会看看这个question的答案。

如果你想获取当前帧的 Tango 时间戳,你可以在配置中使用 TangoService_getPoseAtTime and set the timestamp to 0, it will basically return you the latest pose of the system's estimate, the timestamp in that pose would be the latest timestamp. Also, to get fastest estimation, you could also turn on the config_enable_low_latency_imu_integration