Commit 63796d75 authored by wangdawei's avatar wangdawei

interpolate with no map

parent 0d2bb8d7
......@@ -491,6 +491,15 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
double avgGridCnt = currMatcher_->AreaAvgGridCnt(guess.translation());
if(avgGridCnt < 20000){
LOG(INFO) << "avgGridCnt < 20000! " << "avgGridCnt: " << avgGridCnt;
if(ppkIndex_ > 0){
double radio = 0.01;
const auto &localPPK = localPoseVec_.at(ppkIndex_ - 1);
mapPose_.translation() =
localPPK.pose.translation() * radio +
mapPose_.translation() * (1 - radio);
mapPose_.linear() =
Quaterniond(mapPose_.linear()).slerp(radio, Quaterniond(localPPK.pose.linear())).toRotationMatrix();
}
return false;
}
ofs << setprecision(16) << cloudInfo.timestamp << ", " << guess.translation().x()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment