forked from MRPT/mrpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobot-map-gui_main.cpp
42 lines (33 loc) · 1.47 KB
/
robot-map-gui_main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
| See: https://www.mrpt.org/Authors - All rights reserved. |
| Released under BSD License. See: https://www.mrpt.org/License |
+------------------------------------------------------------------------+ */
/*---------------------------------------------------------------
APPLICATION: robot-map-gui
FILE: robot-map-gui_main.cpp
AUTHOR: LisGein <alred402@gmail.com>
See README.txt for instructions.
---------------------------------------------------------------*/
#include <QApplication>
#include <QCommandLineParser>
#include "gui/CMainWindow.h"
int main(int argc, char** argv)
{
setlocale(LC_NUMERIC, "C");
QLocale::setDefault(QLocale::C);
QApplication app(argc, argv);
QApplication::setOrganizationName("MRPT");
QApplication::setOrganizationDomain("mrpt.org");
QApplication::setApplicationName("robot-map-gui");
QCommandLineParser parser;
parser.parse(QApplication::arguments());
const QStringList args = parser.positionalArguments();
CMainWindow mainWindow;
if (!args.isEmpty()) mainWindow.loadMap(args.first());
mainWindow.show();
return app.exec();
}