mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-12 04:29:49 +08:00
Added warning setting RGBD/ProximityPathMaxNeighbors to 10 when subscribe_scan is enabled
This commit is contained in:
@@ -40,6 +40,7 @@
|
|||||||
<param name="RGBD/NeighborLinkRefining" type="string" value="true"/> <!-- Do odometry correction with consecutive laser scans -->
|
<param name="RGBD/NeighborLinkRefining" type="string" value="true"/> <!-- Do odometry correction with consecutive laser scans -->
|
||||||
<param name="RGBD/ProximityBySpace" type="string" value="true"/> <!-- Local loop closure detection (using estimated position) with locations in WM -->
|
<param name="RGBD/ProximityBySpace" type="string" value="true"/> <!-- Local loop closure detection (using estimated position) with locations in WM -->
|
||||||
<param name="RGBD/ProximityByTime" type="string" value="false"/> <!-- Local loop closure detection with locations in STM -->
|
<param name="RGBD/ProximityByTime" type="string" value="false"/> <!-- Local loop closure detection with locations in STM -->
|
||||||
|
<param name="RGBD/ProximityPathMaxNeighbors" type="string" value="10"/> <!-- Do also proximity detection by space by merging close scans together. -->
|
||||||
<param name="Reg/Strategy" type="string" value="1"/> <!-- 0=Visual, 1=ICP, 2=Visual+ICP -->
|
<param name="Reg/Strategy" type="string" value="1"/> <!-- 0=Visual, 1=ICP, 2=Visual+ICP -->
|
||||||
<param name="Vis/InlierDistance" type="string" value="0.1"/> <!-- 3D visual words correspondence distance -->
|
<param name="Vis/InlierDistance" type="string" value="0.1"/> <!-- 3D visual words correspondence distance -->
|
||||||
<param name="RGBD/OptimizeFromGraphEnd" type="string" value="false"/> <!-- Optimize graph from initial node so /map -> /odom transform will be generated -->
|
<param name="RGBD/OptimizeFromGraphEnd" type="string" value="false"/> <!-- Optimize graph from initial node so /map -> /odom transform will be generated -->
|
||||||
|
|||||||
@@ -332,6 +332,19 @@ void CoreWrapper::onInit()
|
|||||||
Parameters::kGridFromDepth().c_str());
|
Parameters::kGridFromDepth().c_str());
|
||||||
parameters_.insert(ParametersPair(Parameters::kGridFromDepth(), "false"));
|
parameters_.insert(ParametersPair(Parameters::kGridFromDepth(), "false"));
|
||||||
}
|
}
|
||||||
|
if(subscribeScan2d &&
|
||||||
|
parameters_.find(Parameters::kRGBDProximityPathMaxNeighbors()) == parameters_.end() &&
|
||||||
|
(parameters_.find(Parameters::kRGBDProximityBySpace()) == parameters_.end() ||
|
||||||
|
uStr2Bool(parameters_.at(Parameters::kRGBDProximityBySpace()))))
|
||||||
|
{
|
||||||
|
NODELET_WARN("Setting \"%s\" parameter to 10 (default 0) as \"subscribe_scan\" is "
|
||||||
|
"true. Proximity detection by space will be also done by merging close "
|
||||||
|
"scans. To disable, set to 0. To suppress this warning, "
|
||||||
|
"add <param name=\"%s\" type=\"string\" value=\"10\"/>",
|
||||||
|
Parameters::kRGBDProximityPathMaxNeighbors().c_str(),
|
||||||
|
Parameters::kRGBDProximityPathMaxNeighbors().c_str());
|
||||||
|
parameters_.insert(ParametersPair(Parameters::kRGBDProximityPathMaxNeighbors(), "10"));
|
||||||
|
}
|
||||||
|
|
||||||
// modify default parameters with those in the database
|
// modify default parameters with those in the database
|
||||||
if(!deleteDbOnStart)
|
if(!deleteDbOnStart)
|
||||||
|
|||||||
Reference in New Issue
Block a user