facebookresearch / Aria_data_tools

Aria data tools provide the open-source toolkit in C++ and Python to interact with data from Project Aria
https://facebookresearch.github.io/Aria_data_tools
Apache License 2.0
108 stars 22 forks source link

Question regarding timestamp generation #31

Open Andrew12Liu opened 1 year ago

Andrew12Liu commented 1 year ago

Hi Aria team,

I am currently generating timestamps from a vrs file using two methods:

  1. Using the vrs CLI's command vrs extract-images with no special arguments whereby the jpegs have the timestamps.
  2. Using the aria-data-tool python bindings to loop through the data records to retrieve the timestamps.
while True:
     data_record = player.getDataRecord()
     yield data_record.captureTimestampNs
     if not self.vrs_provider.tryFetchNextData(stream_id, data_record.captureTimestampNs):
          break

Just curious as to why these two methods yield timestamps that are consistently 1 ms (0.001 seconds) different (ie. method 1 returns timestamps all ending in the digit 7 while method 2 returns timestamps all ending in the digit 9)

SeaOtocinclus commented 3 months ago

Hello @Andrew12Liu, aria_data_tools is now deprecated and we refer our community to use https://github.com/facebookresearch/projectaria_tools