fixing build without grid_map_msgs

This commit is contained in:
matlabbe
2023-12-19 09:02:57 -08:00
parent 377c9e1a22
commit 5afc069a0a
+2 -2
View File
@@ -1480,7 +1480,7 @@ void MapsManager::publishMaps(
{
latched_.at(&gridProbMapPub_) = false;
}
#if defined(WITH_GRID_MAP_ROS) and defined(RTABMAP_GRIDMAP)
if( elevationMapUpdated_ ||
!latching_ ||
(elevationMapPub_.getNumSubscribers() && !latched_.at(&elevationMapPub_)))
@@ -1500,7 +1500,7 @@ void MapsManager::publishMaps(
{
elevationMap_->clear();
}
#endif
if(!this->hasSubscribers() && mapCacheCleanup_)
{
if(!localMaps_.empty())