Commit a3a594e7 authored by limingbo's avatar limingbo

change filter by position stratgy and add startTime and endTime

parent 046e5fb8
......@@ -275,6 +275,14 @@ void filterByPosition(
}
}
}
if(inPeriod){
if(end - start > 1){
timePeriods.push_back(make_pair(start, end));
for(auto p : filterdPeriod){
octree.addPointToCloud(p, totalPeriodCloud);
}
}
}
}
if(timePeriods.size()){
auto finalOneRet = oneRet;
......@@ -458,6 +466,9 @@ vector<CloseTrajInfo> crossFilter(
}
if(inPeriod){
timePeriods.push_back(make_pair(start, currTime));
for(auto p : filterdPeriod){
taskOctree.addPointToCloud(p, taskPeriodCloud);
}
}
if(found){
oneRet.index = pcIndex;
......
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