Skip to content

Commit

Permalink
FIX: publish local map even when not active
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Dec 20, 2024
1 parent 6c239da commit 9d0ae11
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion module/src/LidarOdometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,13 @@ void LidarOdometry::onNewObservation(const CObservation::Ptr & o)
}

// SLAM enabled?
if (!state_.active) return;
if (!state_.active) {
// Even if it's not, refresh the current map as usual:
doPublishUpdatedMap(o->timestamp);

// and do not process the observation:
return;
}

// Is it an IMU obs?
if (
Expand Down

0 comments on commit 9d0ae11

Please sign in to comment.