MRXT: The Multi-Robot eXploration Tool
Multi-Robot autonomous exploration and mapping simulator.
|
00001 00002 #include "team.h" 00003 #include "simulatedModel.h" 00004 #include "time.h" 00005 #include <opencv2/opencv.hpp> 00006 #include <QApplication> 00007 //#include "ui_mainWindow.h" 00008 #include "mainwindow.h" 00009 #include <QFile> 00010 #include <QDir> 00011 00012 using namespace std; 00013 00014 00015 /*! \mainpage Multi-Robot eXploration Tool Documentation 00016 * 00017 * This is source code documentation. 00018 * 00019 * Visit http://arvc.umh.es/~mjulia/mrxt for a general description of the application. 00020 * 00021 */ 00022 int main(int argc, char **argv) 00023 { 00024 00025 if(!QFile::exists( QDir::homePath()+="/.mrxt")){ 00026 printf("initializing the config folder...\n"); 00027 QDir::home().mkdir(".mrxt"); 00028 QDir currentfolder(QDir::homePath()); 00029 currentfolder.cd(".mrxt"); 00030 currentfolder.mkdir("maps"); 00031 currentfolder.mkdir("config"); 00032 currentfolder.mkdir("outfiles"); 00033 00034 QFile::copy( "/usr/share/mrxt/maps/scene1.map", QDir::homePath()+="/.mrxt/maps/scene1.map"); 00035 QFile::copy( "/usr/share/mrxt/maps/scene1.omap", QDir::homePath()+="/.mrxt/maps/scene1.omap"); 00036 QFile::copy( "/usr/share/mrxt/maps/scene1.jpg", QDir::homePath()+="/.mrxt/maps/scene1.jpg"); 00037 QFile::copy( "/usr/share/mrxt/maps/scene2.map", QDir::homePath()+="/.mrxt/maps/scene2.map"); 00038 QFile::copy( "/usr/share/mrxt/maps/scene2.omap", QDir::homePath()+="/.mrxt/maps/scene2.omap"); 00039 QFile::copy( "/usr/share/mrxt/maps/scene2.jpg", QDir::homePath()+="/.mrxt/maps/scene2.jpg"); 00040 QFile::copy( "/usr/share/mrxt/config/app.config", QDir::homePath()+="/.mrxt/config/app.config"); 00041 QFile::copy( "/usr/share/mrxt/config/slam.config", QDir::homePath()+="/.mrxt/config/slam.config"); 00042 QFile::copy( "/usr/share/mrxt/config/tec0.config", QDir::homePath()+="/.mrxt/config/tec0.config"); 00043 QFile::copy( "/usr/share/mrxt/config/tec1.config", QDir::homePath()+="/.mrxt/config/tec1.config"); 00044 QFile::copy( "/usr/share/mrxt/config/tec2.config", QDir::homePath()+="/.mrxt/config/tec2.config"); 00045 QFile::copy( "/usr/share/mrxt/config/tec3.config", QDir::homePath()+="/.mrxt/config/tec3.config"); 00046 QFile::copy( "/usr/share/mrxt/config/tec4.config", QDir::homePath()+="/.mrxt/config/tec4.config"); 00047 QFile::copy( "/usr/share/mrxt/config/tec5.config", QDir::homePath()+="/.mrxt/config/tec5.config"); 00048 QFile::copy( "/usr/share/mrxt/config/tec6.config", QDir::homePath()+="/.mrxt/config/tec6.config"); 00049 //exit(0); 00050 } 00051 00052 QApplication app( argc, argv ); 00053 00054 MainWindow mywin; 00055 00056 app.exec(); 00057 00058 00059 return (0); 00060 } 00061