Commit ba754424 authored by wangdawei's avatar wangdawei

test

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