JakobEngel / dso

Direct Sparse Odometry
GNU General Public License v3.0
2.3k stars 910 forks source link

No timestamp in result when mode=1 or mode=2 #186

Open sanderisbestok opened 5 years ago

sanderisbestok commented 5 years ago

I try to run DSO on the https://daniilidis-group.github.io/penncosyvio/ dataset. It works but when I look at the result I don't see a timestamp, every pose has timestamp 0.

I renamed the files to nanosecond timestamp format but the timestamp will still be zero for all. When I use this mode on the TUM VI dataset with mode 1 or mode 2 I get the same result, no timestamp.

Any ideas how I can fix this? Or is it a bug?

DRAhmadFaraz commented 5 years ago

@sanderisbestok can you able to extract poses of every frame image in results.txt file.? if yes then please show me your changes steps.

Regards

whut-lxy commented 4 years ago

I try to run DSO on the https://daniilidis-group.github.io/penncosyvio/ dataset. It works but when I look at the result I don't see a timestamp, every pose has timestamp 0.

I renamed the files to nanosecond timestamp format but the timestamp will still be zero for all. When I use this mode on the TUM VI dataset with mode 1 or mode 2 I get the same result, no timestamp.

Any ideas how I can fix this? Or is it a bug?

Did you solve it? I also encountered this problem when testing the kitti dataset. I hope the first column shows the id of the frame. I don’t know how to solve it.

QsingHuan commented 1 year ago

I try to run DSO on the https://daniilidis-group.github.io/penncosyvio/ dataset. It works but when I look at the result I don't see a timestamp, every pose has timestamp 0. I renamed the files to nanosecond timestamp format but the timestamp will still be zero for all. When I use this mode on the TUM VI dataset with mode 1 or mode 2 I get the same result, no timestamp. Any ideas how I can fix this? Or is it a bug?

Did you solve it? I also encountered this problem when testing the kitti dataset. I hope the first column shows the id of the frame. I don’t know how to solve it.

It's nothing to do with the mode. You need to provide a times.txt file in the data folder 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 3 months ago

@sanderisbestok fixed?

ashwinjoseph95 commented 1 month ago

when i try that i get:

cv::imread could not read image /home/knnas/dso_ws/DATASET/2011_10_03/2011_10_03/2011_10_03_drive_0027_sync/image_02/data_resized/times.txt! this may segfault. 
Segmentation fault (core dumped)

Apparantly the program thinks the times.txt is an image file