mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-06 10:07:47 +08:00
Windows CI: make vcpkg download compatible with draft release (#1727)
* Windows CI: make vcpkg download compatible with draft release * forcing nvdia driver dll to be ignored in fixup_bundle * disabling opencv cudec and python * disabling rtabmap-console --version on cuda build * Added assert when bad imu data is provided. Added checks when zed sdk is returning nan imu data. * Updated zed sdk5 resolution and quality * Updated zed sdk5 resolution and quality * Fixing parameters reloaded when testing camera. Also fixed app freezing when closing Preferences dialog after using test camera dialog * cleanup and debug logs * Added dialogs when starting/stopping sensors/detection. Fixed nullptr bug on MainWindow::handleEvents * renamed * found a way to expose ZED model downloads * Updated default config path on Windows * Fixed extra endline in file logging (windows) * Fixed camera local transform when used with lidar and odomSensor * CI(macos): build g2o from source with OpenMP (libomp include/link fix) * Mac: added ceres dep, fixed omp not found by cmake * Mac: bundle orbbec extensions * stripping rpath of orbbec's extensions * cleanup * Realsense2 error as error (not warning) * Fixed config ownership changed to root when sarting in sudo. LidarVLP16: fixed crash on Mac by reimplementing our own socket threading * LidarVLP16: own socket implementation only for Mac (linux and windows use original PCL's reader)
This commit is contained in:
@@ -39,6 +39,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <QtCore/QTextStream>
|
||||
#include <QtCore/QDateTime>
|
||||
#include <QtCore/QSettings>
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QFile>
|
||||
#include <QtCore/QStandardPaths>
|
||||
#include <QThread>
|
||||
#include <rtabmap/utilite/ULogger.h>
|
||||
#include <rtabmap/utilite/UDirectory.h>
|
||||
@@ -583,12 +586,33 @@ QString DatabaseViewer::getIniFilePath() const
|
||||
{
|
||||
return iniFilePath_;
|
||||
}
|
||||
#ifdef WIN32
|
||||
// Windows: store settings in the standard per-user config location (%LOCALAPPDATA%\rtabmap)
|
||||
// instead of a Unix-style dotfile in the home root. A fixed "rtabmap" folder (not the app name)
|
||||
// is used so the main GUI and DatabaseViewer share the same rtabmap.ini. Other platforms keep
|
||||
// ~/.rtabmap for consistency.
|
||||
QString privatePath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/rtabmap";
|
||||
#else
|
||||
QString privatePath = QDir::homePath() + "/.rtabmap";
|
||||
#endif
|
||||
if(!QDir(privatePath).exists())
|
||||
{
|
||||
QDir::home().mkdir(".rtabmap");
|
||||
QDir().mkpath(privatePath);
|
||||
}
|
||||
return privatePath + "/rtabmap.ini";
|
||||
QString iniPath = privatePath + "/rtabmap.ini";
|
||||
#ifdef WIN32
|
||||
// One-time migration: if there's no ini at the new location but the legacy ~/.rtabmap/rtabmap.ini
|
||||
// exists, copy it over so users keep their existing settings.
|
||||
if(!QFile::exists(iniPath))
|
||||
{
|
||||
QString legacyIni = QDir::homePath() + "/.rtabmap/rtabmap.ini";
|
||||
if(QFile::exists(legacyIni))
|
||||
{
|
||||
QFile::copy(legacyIni, iniPath);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return iniPath;
|
||||
}
|
||||
|
||||
void DatabaseViewer::readSettings()
|
||||
|
||||
Reference in New Issue
Block a user