mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-14 23:40:20 +08:00
Output an error if a timestamp file is missing instead of asserting #613
This commit is contained in:
@@ -436,6 +436,11 @@ bool CameraImages::readPoses(std::list<Transform> & outputPoses, std::list<doubl
|
|||||||
UERROR("With Karlsruhe format, timestamps (%d) and poses (%d) should match!", (int)stamps.size(), (int)poses.size());
|
UERROR("With Karlsruhe format, timestamps (%d) and poses (%d) should match!", (int)stamps.size(), (int)poses.size());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if(!outputPoses.empty() && inOutStamps.empty() && stamps.empty())
|
||||||
|
{
|
||||||
|
UERROR("Timestamps are empty (poses=%d)! Forgot the set a timestamp file?", (int)outputPoses.size());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
UASSERT_MSG(outputPoses.size() == inOutStamps.size(), uFormat("%d vs %d", (int)outputPoses.size(), (int)inOutStamps.size()).c_str());
|
UASSERT_MSG(outputPoses.size() == inOutStamps.size(), uFormat("%d vs %d", (int)outputPoses.size(), (int)inOutStamps.size()).c_str());
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user