Commit 4aeefc54 authored by wangdawei's avatar wangdawei

map dir

parent f83d0907
...@@ -546,7 +546,7 @@ void AdjustPPK::Compress(const vector<PCDPathInfo> &pcdPathVec, ...@@ -546,7 +546,7 @@ void AdjustPPK::Compress(const vector<PCDPathInfo> &pcdPathVec,
{ {
PointCloudExport::Ptr pointcloud(new PointCloudExport); PointCloudExport::Ptr pointcloud(new PointCloudExport);
for(const auto &pcdInfo : pcdPathVec){ for(const auto &pcdInfo : pcdPathVec){
LOG(INFO) << "taskName" << pcdInfo.taskName LOG(INFO) << "taskName: " << pcdInfo.taskName
<< " pcdPath: " << pcdInfo.pcdPath << " pcdPath: " << pcdInfo.pcdPath
<< " taskCenter: " << pcdInfo.taskCenter.transpose(); << " taskCenter: " << pcdInfo.taskCenter.transpose();
PointCloudExport pc; PointCloudExport pc;
...@@ -578,6 +578,16 @@ void AdjustPPK::Compress(const vector<PCDPathInfo> &pcdPathVec, ...@@ -578,6 +578,16 @@ void AdjustPPK::Compress(const vector<PCDPathInfo> &pcdPathVec,
*pointcloud += pc; *pointcloud += pc;
} }
LOG(INFO) << "pointcloud->size() to dispatch: " << pointcloud->size(); LOG(INFO) << "pointcloud->size() to dispatch: " << pointcloud->size();
PointCloudExport downSampledPc;
downSampledPc.reserve(pointcloud->size() * 0.25);
for(size_t i = 0; i < pointcloud->size(); i++){
if(i % 5 != 0){
continue;
}
const auto& p = pointcloud->at(i);
downSampledPc.push_back(p);
}
pcl::io::savePCDFileBinary(ieBaseDir_ + "/downSampledPc.pcd", downSampledPc);
boost::shared_ptr<Dispatch> dispatch(new Dispatch(pointcloud)); boost::shared_ptr<Dispatch> dispatch(new Dispatch(pointcloud));
// dispatch.setMeshId(meshId); // dispatch.setMeshId(meshId);
dispatch->configOffset(); dispatch->configOffset();
......
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