Commit 63ceb967 authored by limingbo's avatar limingbo

fix periodCloud size 0

parent c8401a71
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.5.2, 2022-07-04T15:04:40. -->
<!-- Written by QtCreator 4.5.2, 2023-02-02T11:19:58. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
......
......@@ -195,6 +195,10 @@ void filterByPosition(
auto period = oneRet.periods.at(periodIndex);
PointCloudExport periodCloud =
getCloudFromPeriod(pointClouds.at(oneRet.index), period);
LOG(INFO) << "periodCloud.size(): " << periodCloud.size();
if(0 == periodCloud.size()){
continue;
}
float resolution = 5.f;
pcl::octree::OctreePointCloudSearch<PointExport> octree(resolution);
octree.setInputCloud(boost::make_shared<PointCloudExport>(periodCloud));
......
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