mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
0.11.1: Added "ground_truth_pose" field to database in Node table. MainWindow: alignment of the map to ground truth (if ground truth is present).
This commit is contained in:
@@ -295,7 +295,6 @@ bool CameraImages::init(const std::string & calibrationFolder, const std::string
|
||||
}
|
||||
std::vector<double> values = uValues(stamps);
|
||||
|
||||
Transform firstPoseInv;
|
||||
for(std::list<double>::iterator ster=stamps_.begin(); ster!=stamps_.end(); ++ster)
|
||||
{
|
||||
Transform pose; // null transform
|
||||
@@ -323,17 +322,9 @@ bool CameraImages::init(const std::string & calibrationFolder, const std::string
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!pose.isNull())
|
||||
if(pose.isNull())
|
||||
{
|
||||
if(firstPoseInv.isNull())
|
||||
{
|
||||
firstPoseInv = pose.inverse();
|
||||
pose.setIdentity();
|
||||
}
|
||||
else
|
||||
{
|
||||
pose = firstPoseInv * pose;
|
||||
}
|
||||
UWARN("Ground truth pose not found for stamp %f", *ster);
|
||||
}
|
||||
groundTruth_.push_back(pose);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user