Commit 5809545d authored by limingbo's avatar limingbo

test

parent ef8b655c
...@@ -237,7 +237,7 @@ void filterByPosition( ...@@ -237,7 +237,7 @@ void filterByPosition(
if(filteredOneRet.index == index){ if(filteredOneRet.index == index){
filteredOneRet.periods.push_back(ret.at(index).periods.at(longestIndex.second)); filteredOneRet.periods.push_back(ret.at(index).periods.at(longestIndex.second));
PointCloudExport periodCloud = PointCloudExport periodCloud =
getCloudFromPeriod(pointClouds.at(oneRet.index), filteredOneRet.periods.back()); getCloudFromPeriod(pointClouds.at(ret.at(index).index), filteredOneRet.periods.back());
pcl::io::savePCDFileBinary("/tmp/" + filteredOneRet.trajPath + pcl::io::savePCDFileBinary("/tmp/" + filteredOneRet.trajPath +
"_" + to_string(filteredOneRet.periods.back().first) + "_" + to_string(filteredOneRet.periods.back().first) +
".pcd", periodCloud); ".pcd", periodCloud);
...@@ -252,7 +252,7 @@ void filterByPosition( ...@@ -252,7 +252,7 @@ void filterByPosition(
closeTrajInfo.trajPath = ret.at(index).trajPath; closeTrajInfo.trajPath = ret.at(index).trajPath;
filteredRet.push_back(closeTrajInfo); filteredRet.push_back(closeTrajInfo);
PointCloudExport periodCloud = PointCloudExport periodCloud =
getCloudFromPeriod(pointClouds.at(oneRet.index), closeTrajInfo.periods.back()); getCloudFromPeriod(pointClouds.at(ret.at(index).index), closeTrajInfo.periods.back());
pcl::io::savePCDFileBinary("/tmp/" + closeTrajInfo.trajPath + pcl::io::savePCDFileBinary("/tmp/" + closeTrajInfo.trajPath +
"_" + to_string(closeTrajInfo.periods.back().first) + "_" + to_string(closeTrajInfo.periods.back().first) +
".pcd", periodCloud); ".pcd", 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