Commit 25cd8a84 authored by wangdawei's avatar wangdawei

check pc size

parent 3ccfd427
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.11.1, 2023-06-26T18:52:18. --> <!-- Written by QtCreator 4.11.1, 2023-06-26T19:12:39. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>
......
...@@ -436,9 +436,15 @@ vector<CloseTrajInfo> crossFilter( ...@@ -436,9 +436,15 @@ vector<CloseTrajInfo> crossFilter(
pcl::octree::OctreePointCloudSearch<PointExport> octree(resolution); pcl::octree::OctreePointCloudSearch<PointExport> octree(resolution);
octree.setInputCloud(pointClouds.front()); octree.setInputCloud(pointClouds.front());
octree.addPointsFromInputCloud(); octree.addPointsFromInputCloud();
LOG(INFO) << "pointClouds[" << 0 << "]->size(): " << pointClouds[0]->size();
if(pointClouds[0]->size()){
pcl::io::savePCDFileBinary("/tmp/" + to_string(filteredTaskInfo[0].meshId) + ".pcd", *pointClouds[0]); pcl::io::savePCDFileBinary("/tmp/" + to_string(filteredTaskInfo[0].meshId) + ".pcd", *pointClouds[0]);
}
for(size_t pcIndex = 1; pcIndex < pointClouds.size(); pcIndex++){ for(size_t pcIndex = 1; pcIndex < pointClouds.size(); pcIndex++){
LOG(INFO) << "pointClouds[" << pcIndex << "]->size(): " << pointClouds[0]->size();
if(pointClouds[0]->size()){
pcl::io::savePCDFileBinary("/tmp/" + to_string(filteredTaskInfo[pcIndex].meshId) + ".pcd", *pointClouds[pcIndex]); pcl::io::savePCDFileBinary("/tmp/" + to_string(filteredTaskInfo[pcIndex].meshId) + ".pcd", *pointClouds[pcIndex]);
}
bool found = false; bool found = false;
bool inPeriod = false; bool inPeriod = false;
uint64_t start = 0, end = 0; uint64_t start = 0, end = 0;
......
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