/* * pcddump implementation * * Copyright (C) YuanJun, ZhangLiang, Li Wei, Li Ming, Andreas Nuechter, * * Released under the GPL version 3. * */ /** * @file * @brief Main programm for dynamic Velodyne SLAM * * @author Andreas Nuechter. Jacobs University Bremen, Germany * @author YuanJun, Wuhan University, China * @author ZhangLiang, Wuhan University, China * @author Li Wei, Wuhan University, China * @author Li Ming, Wuhan University, China */ #ifdef _MSC_VER #ifdef OPENMP #define _OPENMP #endif #endif #include using std::ifstream; using std::ofstream; #include using std::cout; using std::cerr; using std::endl; #include using std::stringstream; #include "veloslam/veloscan.h" #include "veloslam/pcddump.h" #ifdef _OPENMP #include #endif #ifdef _MSC_VER #include #else #include #endif #ifdef _MSC_VER #define strcasecmp _stricmp #define strncasecmp _strnicmp #else #include #endif #include using std::flush; void DumpPointtoFile(cluster &gluData1, string filename) { cell* pCell; ofstream redptsout(filename.c_str()); for(int j=0; jpCell; for(int k=0; ksize();++k) { redptsout <<(*pCell)[k]->x << " " <<(*pCell)[k]->y<< " " <<(*pCell)[k]->z<< endl; } } redptsout.close(); redptsout.clear(); } void DumpFeaturetoFile(clusterFeature &glu, string filename) { ofstream redptsout(filename.c_str(), ios::app); redptsout <