mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
fixed dereference end iterator assert (#900)
This commit is contained in:
@@ -4830,7 +4830,7 @@ std::map<int, Transform> Rtabmap::optimizeGraph(
|
||||
}
|
||||
else
|
||||
{
|
||||
bool hasLandmarks = edgeConstraints.begin()->first < 0;
|
||||
bool hasLandmarks = !edgeConstraints.empty() && edgeConstraints.begin()->first < 0;
|
||||
if(poses.size() != guessPoses.size() || hasLandmarks)
|
||||
{
|
||||
UDEBUG("recompute poses using only links (robust to multi-session)");
|
||||
|
||||
Reference in New Issue
Block a user