Commit ba754424 authored by wangdawei's avatar wangdawei

test

parent 43e8ce1c
......@@ -385,7 +385,7 @@ void AdjustPPK::LoadMap()
LOG(INFO) << "mesh exist: " << meshId;
}
LoadMesh(streamPath, meshInfo);
LoadMesh(streamPath, meshInfo.matcher);
LOG(INFO) << "mesh loaded: " << meshId;
}
}
......@@ -413,7 +413,7 @@ void AdjustPPK::Compress(const vector<string> &pcdPathVec,
blockSerializer.configSerialization();
}
void AdjustPPK::LoadMesh(const string &streamPath, MashMap &meshMap)
void AdjustPPK::LoadMesh(const string &streamPath, boost::shared_ptr<VoxelMapMatcher> matcher)
{
if(!boost::filesystem::exists(streamPath)){
return;
......@@ -423,8 +423,8 @@ void AdjustPPK::LoadMesh(const string &streamPath, MashMap &meshMap)
option.option.cloud_range = 80;
option.fast_option.accepted_score = 0.45;
option.fast_option.accepted_low_score = 0.55;
meshMap.matcher.reset(new VoxelMapMatcher(option));
meshMap.matcher->SetMapPath(streamPath);
matcher.reset(new VoxelMapMatcher(option));
matcher->SetMapPath(streamPath);
}
} // end of namespace
......@@ -77,7 +77,7 @@ private:
const string &streamPath);
void LoadMesh(const string &streamPath,
MashMap &meshMap);
boost::shared_ptr<VoxelMapMatcher> matcher);
private:
string ieBaseDir_;
......
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