mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
MainWindow: avoiding PreferencesDialog::getAllParameters() in constructor (rtabmapviz issue)
This commit is contained in:
@@ -488,7 +488,6 @@ MainWindow::MainWindow(PreferencesDialog * prefDialog, QWidget * parent) :
|
||||
connect(_ui->statsToolBox, SIGNAL(figuresSetupChanged()), this, SLOT(configGUIModified()));
|
||||
|
||||
// update loop closure viewer parameters
|
||||
ParametersMap parameters = _preferencesDialog->getAllParameters();
|
||||
_ui->widget_loopClosureViewer->setDecimation(_preferencesDialog->getCloudDecimation(0));
|
||||
_ui->widget_loopClosureViewer->setMaxDepth(_preferencesDialog->getCloudMaxDepth(0));
|
||||
|
||||
|
||||
@@ -2394,7 +2394,8 @@ QString PreferencesDialog::loadCustomConfig(const QString & section, const QStri
|
||||
|
||||
const rtabmap::ParametersMap & PreferencesDialog::getAllParameters() const
|
||||
{
|
||||
UASSERT(_parameters.size() == Parameters::getDefaultParameters().size());
|
||||
UASSERT_MSG(_parameters.size() == Parameters::getDefaultParameters().size(),
|
||||
uFormat("%d vs %d", (int)_parameters.size(), (int)Parameters::getDefaultParameters().size()).c_str());
|
||||
return _parameters;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user