mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Updated MATLAB scripts for showing logs
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@222 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -52,7 +52,8 @@
|
||||
#include <QtGui/QSplashScreen>
|
||||
|
||||
#define LOG_FILE_NAME "LogRtabmap.txt"
|
||||
#define SHARE_SHOW_LOG_FILE "share/rtabmap/ShowLogs.m"
|
||||
#define SHARE_SHOW_LOG_FILE "share/rtabmap/showlogs.m"
|
||||
#define SHARE_GET_PRECISION_RECALL_FILE "share/rtabmap/getPrecisionRecall.m"
|
||||
#define SHARE_IMPORT_FILE "share/rtabmap/importfile.m"
|
||||
|
||||
using namespace rtabmap;
|
||||
@@ -1020,7 +1021,7 @@ void MainWindow::stopDetection()
|
||||
emit stateChanged(kIdle);
|
||||
}
|
||||
|
||||
//Copy ShowLogs.m from appDirPath/../share/rtabmap/ShowLogs.m to working directory. (appDirPath is in bin)
|
||||
//Copy showlogs.m from appDirPath/../share/rtabmap/ShowLogs.m to working directory. (appDirPath is in bin)
|
||||
QString showLogFileSrc = (QApplication::applicationDirPath()+"/../")+SHARE_SHOW_LOG_FILE;
|
||||
QString showLogFileTarget = (_preferencesDialog->getWorkingDirectory()+"/")+UFile::getName(SHARE_SHOW_LOG_FILE).c_str();
|
||||
if(!QFile::exists(showLogFileTarget) && QFile::exists(showLogFileSrc))
|
||||
@@ -1035,6 +1036,14 @@ void MainWindow::stopDetection()
|
||||
{
|
||||
QFile::copy(importFileSrc, importFileTarget);
|
||||
}
|
||||
|
||||
// copy getPrecisionRecall.m
|
||||
QString getPrFileSrc = (QApplication::applicationDirPath()+"/../")+SHARE_GET_PRECISION_RECALL_FILE;
|
||||
QString getPrFileTarget = (_preferencesDialog->getWorkingDirectory()+"/")+UFile::getName(SHARE_GET_PRECISION_RECALL_FILE).c_str();
|
||||
if(!QFile::exists(getPrFileTarget) && QFile::exists(getPrFileSrc))
|
||||
{
|
||||
QFile::copy(getPrFileSrc, getPrFileTarget);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::generateMap()
|
||||
|
||||
Reference in New Issue
Block a user