Commit fa2bb80e authored by wangdawei's avatar wangdawei

test

parent 5f7704c3
......@@ -11,6 +11,11 @@ AdjustPPK::AdjustPPK(const string &ieBaseDir, const string &mapDir)
{
LOG(INFO) << "ieBaseDir_: " << ieBaseDir_;
LOG(INFO) << "mapDir_: " << mapDir_;
if(!boost::filesystem::exists(ieBaseDir_ + "/baseCloud/")){
boost::filesystem::create_directory(ieBaseDir_ + "/baseCloud/");
}else{
system(string("rm " + ieBaseDir_ + "/baseCloud/*").c_str());
}
ReadCenter();
LoadPPK();
LoadMapInfo();
......@@ -340,7 +345,7 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
guessPose.rotation = fabs(increaseRpy.z());
guessPose.use_gnss = false;
guessPose.precision_type = MATCH_PRECISION_FULL;
pcl::io::savePCDFileBinary(ieBaseDir_ + "/baseCloud/" + to_string(cloudInfo.timestamp) + ".pcd", *cloudInfo.frame);
GnssPoint finalGnssPose;
if(!currMatcher_->IsMapLoaded(mapPose.translation().cast<double>())){
currMatcher_->loadArea(mapPose.translation().cast<double>());
......
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