mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
DbViewer tool: added database's parameter overriding from arguments
This commit is contained in:
@@ -809,7 +809,7 @@ void DatabaseViewer::openDatabase()
|
||||
}
|
||||
}
|
||||
|
||||
bool DatabaseViewer::openDatabase(const QString & path)
|
||||
bool DatabaseViewer::openDatabase(const QString & path, const ParametersMap & overriddenParameters)
|
||||
{
|
||||
UDEBUG("Open database \"%s\"", path.toStdString().c_str());
|
||||
if(QFile::exists(path))
|
||||
@@ -844,6 +844,9 @@ bool DatabaseViewer::openDatabase(const QString & path)
|
||||
// look if there are saved parameters
|
||||
ParametersMap parameters = dbDriver_->getLastParameters();
|
||||
|
||||
// add overridden parameters
|
||||
uInsert(parameters, overriddenParameters);
|
||||
|
||||
if(parameters.size())
|
||||
{
|
||||
const ParametersMap & currentParameters = ui_->parameters_toolbox->getParameters();
|
||||
|
||||
Reference in New Issue
Block a user