mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-07 02:07:45 +08:00
Preferences: backward compatibility with Icp/PM (bool) now Icp/Strategy (int)
This commit is contained in:
@@ -148,6 +148,19 @@ bool PreferencesDialogROS::readCoreSettings(const QString & filePath)
|
||||
std::string value;
|
||||
if(nh.getParam(i->first,value))
|
||||
{
|
||||
//backward compatibility
|
||||
if(i->first.compare(Parameters::kIcpStrategy()) == 0)
|
||||
{
|
||||
if(value.compare("true") == 0)
|
||||
{
|
||||
value = "1";
|
||||
}
|
||||
else if(value.compare("false") == 0)
|
||||
{
|
||||
value = "0";
|
||||
}
|
||||
}
|
||||
|
||||
PreferencesDialog::setParameter(i->first, value);
|
||||
++readCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user