Commit 73ea90e3 authored by limingbo's avatar limingbo

test filterByPosition

parent 21f29d04
...@@ -196,7 +196,7 @@ void filterByPosition( ...@@ -196,7 +196,7 @@ void filterByPosition(
auto period = oneRet.periods.at(periodIndex); auto period = oneRet.periods.at(periodIndex);
PointCloudExport periodCloud = PointCloudExport periodCloud =
getCloudFromPeriod(pointClouds.at(oneRet.index), period); getCloudFromPeriod(pointClouds.at(oneRet.index), period);
LOG(INFO) << "periodCloud.size(): " << periodCloud.size(); // LOG(INFO) << "periodCloud.size(): " << periodCloud.size();
if(0 == periodCloud.size()){ if(0 == periodCloud.size()){
continue; continue;
} }
...@@ -214,6 +214,9 @@ void filterByPosition( ...@@ -214,6 +214,9 @@ void filterByPosition(
auto tarPeriod = tarOneRet.periods.at(tarPeriodIndex); auto tarPeriod = tarOneRet.periods.at(tarPeriodIndex);
PointCloudExport tarPeriodCloud = PointCloudExport tarPeriodCloud =
getCloudFromPeriod(pointClouds.at(tarOneRet.index), tarPeriod); getCloudFromPeriod(pointClouds.at(tarOneRet.index), tarPeriod);
if(0 == tarPeriodCloud.size()){
continue;
}
uint32_t hitCnt = 0; uint32_t hitCnt = 0;
for(const PointExport& query : tarPeriodCloud.points){ for(const PointExport& query : tarPeriodCloud.points){
int result_index; int result_index;
......
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