Commit 6daaa8b5 authored by limingbo's avatar limingbo

check pc size

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