Added c++ example of RTAB-Map RGB-D version

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1152 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-02-24 21:04:02 +00:00
parent 510e9cab89
commit 30981b102e
10 changed files with 373 additions and 28 deletions

View File

@@ -21,6 +21,7 @@
#include <QtCore/QDir>
#include "rtabmap/utilite/UEventsManager.h"
#include "rtabmap/core/RtabmapThread.h"
#include "rtabmap/core/Rtabmap.h"
#include "rtabmap/gui/MainWindow.h"
#include <QtGui/QMessageBox>
#include "rtabmap/utilite/UObjDeletionThread.h"
@@ -45,7 +46,7 @@ int main(int argc, char* argv[])
/* Start thread's task */
mainWindow->showNormal();
RtabmapThread * rtabmap = new RtabmapThread();
RtabmapThread * rtabmap = new RtabmapThread(new Rtabmap());
rtabmap->start(); // start it not initialized... will be initialized by event from the gui
UEventsManager::addHandler(rtabmap);