mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 17:57:45 +08:00
ros-pkg: updated demo_robot_mapping.launch (fixed local loop lcosure detection not working at the end of the sequence because optimization was done outside)
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@2051 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -174,6 +174,7 @@ CoreWrapper::CoreWrapper(bool deleteDbOnStart) :
|
||||
std::list<std::string> oldParameterNames;
|
||||
oldParameterNames.push_back("LccReextract/LoopClosureFeatures");
|
||||
oldParameterNames.push_back("Rtabmap/DetectorStrategy");
|
||||
oldParameterNames.push_back("RGBD/ScanMatchingSize");
|
||||
for(std::list<std::string>::iterator iter=oldParameterNames.begin(); iter!=oldParameterNames.end(); ++iter)
|
||||
{
|
||||
std::string vStr;
|
||||
@@ -191,6 +192,12 @@ CoreWrapper::CoreWrapper(bool deleteDbOnStart) :
|
||||
Parameters::kKpDetectorStrategy().c_str());
|
||||
parameters.at(Parameters::kKpDetectorStrategy())= vStr;
|
||||
}
|
||||
else if(iter->compare("RGBD/ScanMatchingSize") == 0)
|
||||
{
|
||||
ROS_WARN("Parameter name changed: RGBD/ScanMatchingSize -> %s. Please update your launch file accordingly.",
|
||||
Parameters::kRGBDPoseScanMatching().c_str());
|
||||
parameters.at(Parameters::kRGBDPoseScanMatching())= std::atoi(vStr.c_str()) > 0?"true":"false";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user