mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
fixed reset UPlot on rehearsal after small movement detected. GUI: modified color for pose correction (DarkCyan) and small movement (Gray)
This commit is contained in:
@@ -3287,7 +3287,7 @@ bool Memory::rehearsalMerge(int oldId, int newId)
|
||||
UERROR("newId=%d, oldId=%d, Signature %d not found in working/st memories", newId, oldId, oldId);
|
||||
}
|
||||
}
|
||||
return false; // means that the newS can be removed without problem
|
||||
return false;
|
||||
}
|
||||
|
||||
Transform Memory::getOdomPose(int signatureId, bool lookInDatabase) const
|
||||
|
||||
@@ -2222,7 +2222,7 @@ bool Rtabmap::process(
|
||||
if(_loopClosureHypothesis.first || _publishStats)
|
||||
{
|
||||
ULOGGER_INFO("sending stats...");
|
||||
statistics_.setRefImageId(signature->id());
|
||||
statistics_.setRefImageId(_memory->getLastSignatureId()); // Use last id from Memory (in case of rehearsal)
|
||||
if(_loopClosureHypothesis.first != Memory::kIdInvalid)
|
||||
{
|
||||
statistics_.setLoopClosureId(_loopClosureHypothesis.first);
|
||||
@@ -2284,6 +2284,8 @@ bool Rtabmap::process(
|
||||
//Epipolar geometry constraint
|
||||
statistics_.addStatistic(Statistics::kLoopRejectedHypothesis(), rejectedHypothesis?1.0f:0);
|
||||
|
||||
statistics_.addStatistic(Statistics::kMemorySmall_movement(), smallDisplacement?1.0f:0);
|
||||
|
||||
if(_publishLikelihood || _publishPdf)
|
||||
{
|
||||
// Child count by parent signature on the root of the memory ... for statistics
|
||||
|
||||
Reference in New Issue
Block a user