mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
Fixed PreferencesDialog::getAllParameters() fatal error
This commit is contained in:
@@ -122,25 +122,3 @@ bool PreferencesDialogROS::readCoreSettings(const QString & filePath)
|
||||
|
||||
}
|
||||
|
||||
void PreferencesDialogROS::writeSettings(const QString & filePath)
|
||||
{
|
||||
writeGuiSettings(filePath);
|
||||
|
||||
// This will tell the MainWindow that the
|
||||
//parameters are updated. The MainWindow will send an Event that
|
||||
// will be handled by the GuiWrapper where we will write
|
||||
// parameters in ROS and the rtabmap_node will be notified.
|
||||
if(_parameters.size())
|
||||
{
|
||||
emit settingsChanged(_parameters);
|
||||
}
|
||||
|
||||
if(_obsoletePanels)
|
||||
{
|
||||
emit settingsChanged(_obsoletePanels);
|
||||
}
|
||||
|
||||
_parameters = rtabmap::ParametersMap();
|
||||
_obsoletePanels = kPanelDummy;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,8 @@ protected:
|
||||
|
||||
virtual void readCameraSettings(const QString & filePath);
|
||||
virtual bool readCoreSettings(const QString & filePath);
|
||||
virtual void writeSettings(const QString & filePath);
|
||||
virtual void writeCameraSettings(const QString & filePath) const {}
|
||||
virtual void writeCoreSettings(const QString & filePath) const {}
|
||||
|
||||
virtual QString getTmpIniFilePath() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user