Protected public rtabmap methods with a mutex (to be safe to call when rtabmap thread is started)

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@734 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2013-01-15 16:43:40 +00:00
parent 0452aec181
commit 1041ddd8a5
3 changed files with 61 additions and 43 deletions

View File

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