Commit 6daaa8b5 authored by limingbo's avatar limingbo

check pc size

parent f7f1cef4
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.5.2, 2022-04-20T15:34:59. -->
<!-- Written by QtCreator 4.5.2, 2022-07-04T13:50:33. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
......
......@@ -323,9 +323,11 @@ vector<CloseTrajInfo> crossFilter(
PointCloudExport periodCloud =
getCloudFromPeriod(pointClouds.at(oneRet.index), oneRet.periods.at(periodIndex));
pcl::io::savePCDFileBinary("/tmp/" + to_string(filteredTaskInfo[oneRet.index].meshId) +
"_" + to_string(oneRet.periods.at(periodIndex).first) +
".pcd", periodCloud);
if(periodCloud.size()){
pcl::io::savePCDFileBinary("/tmp/" + to_string(filteredTaskInfo[oneRet.index].meshId) +
"_" + to_string(oneRet.periods.at(periodIndex).first) +
".pcd", periodCloud);
}
}
}
return ret;
......
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