mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-09 11:37:02 +08:00
Disabled local loop detection on intermediate nodes
This commit is contained in:
@@ -2243,7 +2243,11 @@ Transform Memory::computeVisualTransform(
|
|||||||
(newS.sensorData().cameraModels().size() != 1 ||
|
(newS.sensorData().cameraModels().size() != 1 ||
|
||||||
!newS.sensorData().cameraModels()[0].isValid()))
|
!newS.sensorData().cameraModels()[0].isValid()))
|
||||||
{
|
{
|
||||||
UERROR("Calibrated camera required (multi-cameras not supported).");
|
UERROR("Calibrated camera required (multi-cameras not supported). Id=%d Models=%d StereoModel=%d weight=%d",
|
||||||
|
newS.id(),
|
||||||
|
(int)newS.sensorData().cameraModels().size(),
|
||||||
|
newS.sensorData().stereoCameraModel().isValid()?1:0,
|
||||||
|
newS.getWeight());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1833,7 +1833,8 @@ bool Rtabmap::process(
|
|||||||
int localSpacePaths = 0;
|
int localSpacePaths = 0;
|
||||||
if(_localLoopClosureDetectionSpace &&
|
if(_localLoopClosureDetectionSpace &&
|
||||||
_localRadius > 0 &&
|
_localRadius > 0 &&
|
||||||
_rgbdSlamMode)
|
_rgbdSlamMode &&
|
||||||
|
signature->getWeight() >= 0) // not an intermediate node
|
||||||
{
|
{
|
||||||
if(_graphOptimizer->iterations() == 0)
|
if(_graphOptimizer->iterations() == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user