/***************************************************************** * * This file is part of the GMAPPING project * * GMAPPING Copyright (c) 2004 Giorgio Grisetti, * Cyrill Stachniss, and Wolfram Burgard * * This software is licensed under the 3-Clause BSD License * and is copyrighted by Giorgio Grisetti, Cyrill Stachniss, * and Wolfram Burgard. * * Further information on this license can be found at: * https://opensource.org/licenses/BSD-3-Clause * * GMAPPING is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * *****************************************************************/ #include <qapplication.h> #include "gmapping/gui/qparticleviewer.h" int main (int argc, char ** argv){ QApplication app(argc, argv); QParticleViewer * pviewer=new QParticleViewer(0); app.setMainWidget(pviewer); pviewer->show(); FILE* f=fopen(argv[1], "r"); if (!f) return -1; QTextIStream is(f); pviewer->tis=&is; pviewer->start(10); return app.exec(); std::cout << "DONE: " << argv[1] <<endl; }