JakobEngel / dso

Direct Sparse Odometry
GNU General Public License v3.0
2.27k stars 906 forks source link

No timestamps in result file #237

Open dgkntrz opened 3 years ago

dgkntrz commented 3 years ago

Hello,

When I run the algorithm on EuRoC dataset, the timestamps in results.txt are all 0. Any ideas on how to solve this problem?

Thanks in advance!

QsingHuan commented 1 year ago

You need to provide a times.txt file for the timestamp to work https://github.com/JakobEngel/dso/blob/7b0c99f01d238f801c625beaff90240bcb007198/src/util/DatasetReader.h#L294 https://github.com/JakobEngel/dso/blob/7b0c99f01d238f801c625beaff90240bcb007198/src/util/DatasetReader.h#L297 see the times.txt in the sample data for reference

moajouz commented 1 month ago

Okay so turns out, after comparing with TUM's dataset, the times.txt should also have a sequence number for each timestamp. following this format

  1. 0001 timestamp_one
  2. 0002 timestamp_two
  3. 0003 timestamp_three
  4. .
  5. .
  6. .
  7. nth timestamp_nth