Commit 5e941489 authored by limingbo's avatar limingbo

u

parent 11051c33
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.5.2, 2022-02-28T19:02:00. --> <!-- Written by QtCreator 4.5.2, 2022-03-04T11:51:45. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>
......
...@@ -91,6 +91,8 @@ bool getTaskInfo( ...@@ -91,6 +91,8 @@ bool getTaskInfo(
if(exists(meshOutPath)){ if(exists(meshOutPath)){
taskInfo.meshOutPath = meshOutPath; taskInfo.meshOutPath = meshOutPath;
} }
taskInfo.meshId =
stoi(boost::filesystem::path(taskPath).filename().string());
return true; return true;
} }
...@@ -173,9 +175,9 @@ vector<pair<string, vector<pair<uint64_t, uint64_t>>>> crossFilter( ...@@ -173,9 +175,9 @@ vector<pair<string, vector<pair<uint64_t, uint64_t>>>> 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();
pcl::io::savePCDFileBinary("/home/juefx/0.pcd", *pointClouds[0]); pcl::io::savePCDFileBinary("/home/juefx/" + 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++){
pcl::io::savePCDFileBinary("/home/juefx/" + to_string(pcIndex) + ".pcd", *pointClouds[pcIndex]); pcl::io::savePCDFileBinary("/home/juefx/" + to_string(filteredTaskInfo[i].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;
......
...@@ -9,6 +9,7 @@ struct TaskInfo{ ...@@ -9,6 +9,7 @@ struct TaskInfo{
string taskPath = ""; string taskPath = "";
string trajPath = ""; string trajPath = "";
string meshOutPath = ""; string meshOutPath = "";
uint32_t meshId = 0;
}; };
vector<string> getActiveTraces( vector<string> getActiveTraces(
......
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