MapsManager: added a check if memory is set

This commit is contained in:
matlabbe
2018-04-25 16:39:35 -04:00
parent a89e0322d6
commit 06c85188d5
+1 -1
View File
@@ -495,7 +495,7 @@ std::map<int, rtabmap::Transform> MapsManager::updateMapCaches(
"save them back in the database for next sessions. This warning is only shown once.", "save them back in the database for next sessions. This warning is only shown once.",
data.id(), Parameters::kRGBDCreateOccupancyGrid().c_str()); data.id(), Parameters::kRGBDCreateOccupancyGrid().c_str());
} }
if(occupancySavedInDB) if(memory && occupancySavedInDB)
{ {
// if we are here, it is because we loaded a database with old nodes not having occupancy grid set // if we are here, it is because we loaded a database with old nodes not having occupancy grid set
// try reload again // try reload again