Commit cfea629c authored by wangdawei's avatar wangdawei

fix ppkindex

parent 5a9e1b4c
......@@ -424,11 +424,12 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
guessPose.movement = 2;
guessPose.rotation = 0.01;
guessPose.use_gnss = false;
uint16_t checkCnt = 0;
while(!currMatcher_->IsMapLoaded(guess.translation())){
if(requestQuit_){
std::this_thread::sleep_for(std::chrono::milliseconds(100));
if(++checkCnt > 200){
return false;
}
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
double avgGridCnt = currMatcher_->AreaAvgGridCnt(guess.translation());
// LOG(INFO) << "avgGridCnt: " << avgGridCnt;
......
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