Only convert nanosecond timestamps for new data files

This commit is contained in:
2019-10-01 10:08:37 +02:00
parent deb318e115
commit 5c80f6b61a
2 changed files with 23 additions and 12 deletions

View File

@@ -187,8 +187,8 @@ static CombinedStats<float> run(Settings::DataSetup setup, int walkIdx, std::str
std::string currDir = std::filesystem::current_path().string();
Floorplan::IndoorMap* map = Floorplan::Reader::readFromFile(setup.map);
Offline::FileReader fr(setup.training[walkIdx]);
Offline::FileReader fr(setup.training[walkIdx], setup.NanoSecondTimestamps);
// ground truth
std::vector<int> gtPath = setup.gtPath;
Interpolator<uint64_t, Point3> gtInterpolator = fr.getGroundTruthPath(map, gtPath);