mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Making Rtabmap interface easier to use from c++ (Update c++ example usage)
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@695 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -37,19 +37,17 @@ int main(int argc, char* argv[])
|
||||
ULOGGER_INFO("Program started...");
|
||||
|
||||
/* Create tasks */
|
||||
Rtabmap * rtabmap = new Rtabmap();
|
||||
QApplication * app = new QApplication(argc, argv);
|
||||
MainWindow * mainWindow = new MainWindow();
|
||||
|
||||
/* Add handlers to the EventsManager */
|
||||
UEventsManager::addHandler(mainWindow);
|
||||
UEventsManager::addHandler(rtabmap);
|
||||
|
||||
/* Start thread's task */
|
||||
mainWindow->showNormal();
|
||||
|
||||
rtabmap->setWorkingDirectory(mainWindow->getWorkingDirectory().toStdString());
|
||||
rtabmap->start();
|
||||
Rtabmap * rtabmap = new Rtabmap(mainWindow->getWorkingDirectory().toStdString(), false);
|
||||
rtabmap->start(); // start it not initialized... will be initialized by event from the gui
|
||||
UEventsManager::addHandler(rtabmap);
|
||||
|
||||
// Now wait for application to finish
|
||||
app->connect( app, SIGNAL( lastWindowClosed() ),
|
||||
|
||||
Reference in New Issue
Block a user