MainWindow: added "Edit->Anchor clouds to ground truth" action. Graph::importPoses() Fixed error when loading RGBD-SLAM poses.

This commit is contained in:
matlabbe
2016-01-07 15:48:18 -05:00
parent 78b37a4b0d
commit b8c9f32fd8
6 changed files with 53 additions and 2 deletions

View File

@@ -285,6 +285,7 @@ bool CameraImages::init(const std::string & calibrationFolder, const std::string
}
else if(_groundTruthFormat == 1)
{
UDEBUG("");
//Match ground truth values with images
groundTruth_.clear();
std::map<double, int> stampsToIds;
@@ -339,6 +340,7 @@ bool CameraImages::init(const std::string & calibrationFolder, const std::string
}
else
{
UDEBUG("");
groundTruth_ = uValuesList(poses);
}
UASSERT_MSG(groundTruth_.size() == stamps_.size(), uFormat("%d vs %d", (int)groundTruth_.size(), (int)stamps_.size()).c_str());

View File

@@ -192,7 +192,7 @@ bool importPoses(
std::string str;
std::getline(file, str);
if(str.at(0) == '#' || str.empty())
if(str.empty() || str.at(0) == '#')
{
continue;
}