rtabmap: setup working directory and deleting memory is done in init() instead of the Rtabmap constructor.

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@731 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2013-01-13 19:59:53 +00:00
parent 167a839fed
commit 0452aec181
5 changed files with 32 additions and 25 deletions

View File

@@ -45,7 +45,7 @@ int main(int argc, char* argv[])
/* Start thread's task */
mainWindow->showNormal();
Rtabmap * rtabmap = new Rtabmap(mainWindow->getWorkingDirectory().toStdString(), false);
Rtabmap * rtabmap = new Rtabmap();
rtabmap->start(); // start it not initialized... will be initialized by event from the gui
UEventsManager::addHandler(rtabmap);