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:
matlabbe
2013-01-10 20:29:01 +00:00
parent 0f4e24233c
commit b032699860
8 changed files with 205 additions and 129 deletions

View File

@@ -548,7 +548,12 @@ QString PreferencesDialog::getWorkingDirectory()
QString PreferencesDialog::getIniFilePath()
{
return Rtabmap::getIniFilePath().c_str();
QString privatePath = QDir::homePath() + "/.rtabmap";
if(!QDir(privatePath).exists())
{
QDir::home().mkdir(".rtabmap");
}
return privatePath + "/rtabmap.ini";
}
void PreferencesDialog::loadConfigFrom()