Commit 4b2551ef authored by limingbo's avatar limingbo

test

parent 437dabf0
......@@ -37,22 +37,26 @@ int main(int argc, char *argv[])
vector<string> crossTasks;
getCrossTasks(activeTraces, crossTasks);
if(crossTasks.size() == 0){
LOG(WARNING) << "crossTasks.size() == 0";
}
sort(crossTasks.begin(), crossTasks.end(),
[](const string& query, const string& target) {
return stoi(boost::filesystem::path(query).filename().string()) >
return stoi(boost::filesystem::path(query).filename().string()) <
stoi(boost::filesystem::path(target).filename().string());
});
for(string task : crossTasks){
LOG(INFO) << "cross task chekc in: " << task;
}
// string outputPath = FLAGS_base_dir + "/slam/cartographer.bag.pbstream.interpolated.pose";
// std::ofstream ofs(outputPath);
// if(!ofs){
// LOG(WARNING) << outputPath << " load fail!";
// return 0;
// }
// ofs.close();
string outputPath = FLAGS_base_dir + "/multiTraj.txt";
std::ofstream ofs(outputPath);
if(!ofs){
LOG(WARNING) << outputPath << " load fail!";
return 0;
}
ofs << crossTasks.back() << std::endl;
ofs.close();
return 1;
}
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